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/f6ed8b2a56a9
branches:  trunk
changeset: 375287:f6ed8b2a56a9
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 d42099f6360f -r f6ed8b2a56a9 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