mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
lookup the protection tx rate index in the rate tables
instead of using a known value MFC after: 2 weeks
This commit is contained in:
parent
8b5341de05
commit
913a1ba103
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155484
|
@ -4542,9 +4542,11 @@ ath_setcurmode(struct ath_softc *sc, enum ieee80211_phymode mode)
|
|||
/*
|
||||
* All protection frames are transmited at 2Mb/s for
|
||||
* 11g, otherwise at 1Mb/s.
|
||||
* XXX select protection rate index from rate table.
|
||||
*/
|
||||
sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 1 : 0);
|
||||
if (mode == IEEE80211_MODE_11G)
|
||||
sc->sc_protrix = ath_tx_findrix(rt, 2*2);
|
||||
else
|
||||
sc->sc_protrix = ath_tx_findrix(rt, 2*1);
|
||||
/* rate index used to send management frames */
|
||||
sc->sc_minrateix = 0;
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue