]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mac80211: mlme: allow UHR only with MLO
authorJohannes Berg <johannes.berg@intel.com>
Fri, 29 May 2026 08:25:02 +0000 (10:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jun 2026 12:11:57 +0000 (14:11 +0200)
UHR requires MLO, not just formally but also in order
for the client to understand AP BSS parameter changes,
since the Critical Update Counter is inside the Multi-
Link Element. Require MLO for UHR connections to avoid
otherwise needed complexity such as not enabling any
feature that would require tracking critical updates.

Link: https://patch.msgid.link/20260529102644.43817ce87042.If4562ae9c5ca83339b397d9a344b68631cb17c4a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c

index 2888a382677dcd5df033b93b3227bfe20d5ea379..2b7bb371efee1f0d3a47b89f5a0e2fe9babd279f 100644 (file)
@@ -389,7 +389,7 @@ ieee80211_determine_ap_chan(struct ieee80211_sub_if_data *sdata,
        }
 
 check_uhr:
-       if (conn->mode < IEEE80211_CONN_MODE_UHR || !uhr_oper)
+       if (conn->mode < IEEE80211_CONN_MODE_UHR || !uhr_oper || !elems->ml_basic)
                return IEEE80211_CONN_MODE_EHT;
 
        if (elems->frame_type != (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON)) {