mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
fix txparms setup for 108G sta's: ieee80211_iserp_rateset does not
identify a station operating in turbo-boost mode because it has a pure ofdm rate set; add an explicit check for the channel type instead of depending on IEEE80211_NODE_ERP being set
This commit is contained in:
parent
e0769d2dff
commit
c5262b82e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191015
@ -237,16 +237,17 @@ node_setuptxparms(struct ieee80211_node *ni)
|
||||
else
|
||||
mode = IEEE80211_MODE_11NG;
|
||||
} else { /* legacy rate handling */
|
||||
/* NB: 108A/108G should be handled as 11a/11g respectively */
|
||||
if (IEEE80211_IS_CHAN_ST(ni->ni_chan))
|
||||
mode = IEEE80211_MODE_STURBO_A;
|
||||
else if (IEEE80211_IS_CHAN_HALF(ni->ni_chan))
|
||||
mode = IEEE80211_MODE_HALF;
|
||||
else if (IEEE80211_IS_CHAN_QUARTER(ni->ni_chan))
|
||||
mode = IEEE80211_MODE_QUARTER;
|
||||
/* NB: 108A should be handled as 11a */
|
||||
else if (IEEE80211_IS_CHAN_A(ni->ni_chan))
|
||||
mode = IEEE80211_MODE_11A;
|
||||
else if (ni->ni_flags & IEEE80211_NODE_ERP)
|
||||
else if (IEEE80211_IS_CHAN_108G(ni->ni_chan) ||
|
||||
(ni->ni_flags & IEEE80211_NODE_ERP))
|
||||
mode = IEEE80211_MODE_11G;
|
||||
else
|
||||
mode = IEEE80211_MODE_11B;
|
||||
|
Loading…
Reference in New Issue
Block a user