mac80211: skip legacy rate mask handling for VHT rates
PATCH 1/1 mac80211: skip legacy rate mask handling for VHT rates
The rate mask code currently assumes that a rate is legacy if IEEE80211_TX_RC_MCS is not set. This might be the cause of bogus VHT rates being reported with minstrel_ht.
--- net/mac80211/rate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/rate.c +1 -1
@@ -385,7 +385,7 @@ static void rate_idx_match_mask(struct ieee80211_tx_rate *rate, *rate = alt_rate;return ; } - }else { + }else if (!(rate->flags &IEEE80211_TX_RC_VHT_MCS )) {/* handle legacy rates */ if (rate_idx_match_legacy_mask (rate, sband->n_bitrates, mask))return ;
Signature · 1 line
2.1.2
Quoted 14 lines · Felix Fietkau
The rate mask code currently assumes that a rate is legacy if
IEEE80211_TX_RC_MCSis not set. This might be the cause of bogus VHT rates being reported withminstrel_ht.Signed-off-by Felix Fietkau <[email protected]>--- net/mac80211/rate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/mac80211/rate.c +0
-0
net/mac80211/rate.c static void rate_idx_match_mask(struct ieee80211_tx_rate *rate, · line 391
Quoted 8 lines
net/mac80211/rate.c +1
-1@@ -385,7 +385,7 @@ static void rate_idx_match_mask(struct ieee80211_tx_rate *rate, *rate = alt_rate;return ; } - }else { + }else if (!(rate->flags &IEEE80211_TX_RC_VHT_MCS )) {/* handle legacy rates */ if (rate_idx_match_legacy_mask (rate, sband->n_bitrates, mask))return ;
Does it fix things on your side Jouni ?
Karl
Quoted 9 lines · Karl Beldan
net/mac80211/rate.c static void rate_idx_match_mask(struct ieee80211_tx_rate *rate, · line 388
Quoted 6 lines · Felix Fietkau
The rate mask code currently assumes that a rate is legacy if
IEEE80211_TX_RC_MCSis not set. This might be the cause of bogus VHT rates being reported withminstrel_ht.net/mac80211/rate.c +1
-1- }else { + }else if (!(rate->flags &IEEE80211_TX_RC_VHT_MCS )) {Does it fix things on your side Jouni ?
Yes, it does resolve the nfc_p2p_* test case failures with CONFIG_MAC80211_RC_MINSTREL_VHT=y.
Signature · 1 line
Jouni Malinen PGP id EFC895FA
Quoted 3 lines · Felix Fietkau
The rate mask code currently assumes that a rate is legacy if
IEEE80211_TX_RC_MCSis not set. This might be the cause of bogus VHT rates being reported withminstrel_ht.
Applied.
johannes