mac80211: properly remove RX_ENC_FLAG_40MHZ
Somehow I missed this in my RX rate cleanup series, causing some drivers to not report correct bandwidth since this flag isn't used by mac80211 anymore. Fix this, and make hwsim also report higher bandwidths appropriately. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -734,7 +734,9 @@ il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
|
||||
if (rate_n_flags & RATE_MCS_HT_MSK)
|
||||
rx_status.encoding = RX_ENC_HT;
|
||||
if (rate_n_flags & RATE_MCS_HT40_MSK)
|
||||
rx_status.enc_flags |= RX_ENC_FLAG_40MHZ;
|
||||
rx_status.bw = RATE_INFO_BW_40;
|
||||
else
|
||||
rx_status.bw = RATE_INFO_BW_20;
|
||||
if (rate_n_flags & RATE_MCS_SGI_MSK)
|
||||
rx_status.enc_flags |= RX_ENC_FLAG_SHORT_GI;
|
||||
|
||||
|
@@ -889,7 +889,9 @@ static void iwlagn_rx_reply_rx(struct iwl_priv *priv,
|
||||
if (rate_n_flags & RATE_MCS_HT_MSK)
|
||||
rx_status.encoding = RX_ENC_HT;
|
||||
if (rate_n_flags & RATE_MCS_HT40_MSK)
|
||||
rx_status.enc_flags |= RX_ENC_FLAG_40MHZ;
|
||||
rx_status.bw = RATE_INFO_BW_40;
|
||||
else
|
||||
rx_status.bw = RATE_INFO_BW_20;
|
||||
if (rate_n_flags & RATE_MCS_SGI_MSK)
|
||||
rx_status.enc_flags |= RX_ENC_FLAG_SHORT_GI;
|
||||
if (rate_n_flags & RATE_MCS_GF_MSK)
|
||||
|
Reference in New Issue
Block a user