Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: mac80211: validate HE 6 GHz operation when EHT is used

When in strict mode, validate that the HE 6 GHz operation is
valid even when EHT operation is used instead. This checks
that APs are advertising correct information for HE clients,
without testing with such clients.

Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260303150832.74b934163b99.If4d1db3f39c37900cf0d0f4669cd5f8b677daaa0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

+18
+18
net/mac80211/mlme.c
··· 216 216 return IEEE80211_CONN_MODE_LEGACY; 217 217 } 218 218 219 + if (eht_oper && ieee80211_hw_check(&sdata->local->hw, STRICT)) { 220 + struct cfg80211_chan_def he_chandef = *chandef; 221 + 222 + if (!ieee80211_chandef_he_6ghz_oper(sdata->local, 223 + he_oper, NULL, 224 + &he_chandef)) { 225 + sdata_info(sdata, 226 + "bad HE operation in EHT AP\n"); 227 + return IEEE80211_CONN_MODE_LEGACY; 228 + } 229 + 230 + if (!cfg80211_chandef_compatible(chandef, 231 + &he_chandef)) { 232 + sdata_info(sdata, "HE/EHT incompatible\n"); 233 + return IEEE80211_CONN_MODE_LEGACY; 234 + } 235 + } 236 + 219 237 if (mode <= IEEE80211_CONN_MODE_EHT) 220 238 return mode; 221 239 goto check_uhr;