Commit 8cadb207 authored by Daniel Gabay's avatar Daniel Gabay Committed by Johannes Berg
Browse files

mac80211: update condition for HE disablement



Disable HE if the beacon does not contain an HE operation IE.

Signed-off-by: default avatarDaniel Gabay <daniel.gabay@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20200131111300.891737-16-luca@coelho.fi


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4a65cc24
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ out:
		ret |= ieee80211_chandef_downgrade(chandef);
	}

	if (!cfg80211_chandef_usable(sdata->wdev.wiphy, chandef,
	if (!he_oper || !cfg80211_chandef_usable(sdata->wdev.wiphy, chandef,
						 IEEE80211_CHAN_NO_HE))
		ret |= IEEE80211_STA_DISABLE_HE;