Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/usb Only perform fw rate adaption once.
details: https://anonhg.NetBSD.org/src-all/rev/f8b8153af319
branches: trunk
changeset: 378049:f8b8153af319
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Sat Oct 29 13:49:37 2022 +1100
description:
Only perform fw rate adaption once.
This prevents the firmware from locking up.
diffstat:
sys/dev/usb/if_urtwn.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 7a550e37ec4e -r f8b8153af319 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Sun Oct 16 14:39:58 2022 +0200
+++ b/sys/dev/usb/if_urtwn.c Sat Oct 29 13:49:37 2022 +1100
@@ -2020,6 +2020,8 @@ urtwn_newstate(struct ieee80211vap *vap,
if (ISSET(sc->chip, URTWN_CHIP_88E) ||
ISSET(sc->chip, URTWN_CHIP_92EU))
ni->ni_txrate = ni->ni_rates.rs_nrates - 1;
+ else if (sc->iqk_inited)
+ ni->ni_txrate = ni->ni_rates.rs_nrates - 1;
else
urtwn_ra_init(vap);
Home |
Main Index |
Thread Index |
Old Index