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/8a404eaf1224
branches:  trunk
changeset: 372195:8a404eaf1224
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 79313139a215 -r 8a404eaf1224 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Mon Oct 03 11:56:25 2022 +0200
+++ b/sys/dev/usb/if_urtwn.c    Sat Oct 29 13:49:37 2022 +1100
@@ -2025,6 +2025,8 @@
                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