Skip to contentSkip to conversation

wifi: mac80211: Do not clear bw restriction flags in ieee80211_prep_channel

PATCH New [email protected] 1 participant 1 message Apr 28, 2023 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mac80211: Do not clear bw restriction flags in ieee80211_prep_channel

From: Ben Greear <[email protected]>

This code was messing up my attempt to restrict bandwidth options, and appears to not be needed.

---
 net/mac80211/mlme.c | 4 ----
 1 file changed, 4 deletions(-)
net/mac80211/mlme.c +0 -4
index e13a0354c397..2c606d9fc5b3 100644
@@ -4732,10 +4732,6 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
 
 	sband = local->hw.wiphy->bands[cbss->channel->band];
 
-	*conn_flags &= ~(IEEE80211_CONN_DISABLE_40MHZ |
-			 IEEE80211_CONN_DISABLE_80P80MHZ |
-			 IEEE80211_CONN_DISABLE_160MHZ);
-
 	/* disable HT/VHT/HE if we don't support them */
 	if (!sband->ht_cap.ht_supported && !is_6ghz) {
 		mlme_dbg(sdata, "HT not supported, disabling HT/VHT/HE/EHT\n");
Signature · 1 line
2.40.0