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 Guess missing rate stuff for hardware vari...



details:   https://anonhg.NetBSD.org/src-all/rev/a31ff108d625
branches:  trunk
changeset: 377142:a31ff108d625
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Sun Oct 16 14:39:58 2022 +0200

description:
Guess missing rate stuff for hardware variants I can't test.

diffstat:

 sys/dev/usb/if_urtwn.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r d5a1e171029b -r a31ff108d625 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    Sun Oct 16 14:39:58 2022 +0200
@@ -1484,20 +1484,15 @@ urtwn_ra_init(struct ieee80211vap *vap)
        DPRINTFN(DBG_INIT, "maxrate=%jd", maxrate, 0, 0, 0);
        urtwn_write_1(sc, R92C_INIDATA_RATE_SEL(RTWN_MACID_BSS), maxrate);
 
-#if notyet
-       /* NNN appears to have no fixed rate anywhere. */
-       rrsr_rate = ic->ic_fixed_rate;
+       rrsr_rate = vap->iv_txparms[mode].mgmtrate;
        if (rrsr_rate == -1)
-#endif
                rrsr_rate = 11;
 
        rrsr_mask = 0xffff >> (15 - rrsr_rate);
        urtwn_write_2(sc, R92C_RRSR, rrsr_mask);
 
-#if notyet
-       /* Indicate highest supported rate. */
-       ni->ni_txrate = rs->rs_nrates - 1;
-#endif
+       ni->ni_txrate = ni->ni_rates.rs_nrates - 1;
+
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index