diff options
author | 2025-01-01 07:05:27 +0200 | |
---|---|---|
committer | 2025-01-13 15:26:44 +0100 | |
commit | 2bf502251b3ba0734aad81317d62e13389b89a5d (patch) | |
tree | 5e10cc4558002d7bd9acbbb9efe82075a6ce1457 /net/wireless | |
parent | wifi: cfg80211: scan: skip duplicate RNR entries (diff) | |
download | linux-rng-2bf502251b3ba0734aad81317d62e13389b89a5d.tar.xz linux-rng-2bf502251b3ba0734aad81317d62e13389b89a5d.zip |
wifi: cfg80211: check extended MLD capa/ops in assoc
Check that additionally extended MLD capa/ops for the MLD is
consistent, i.e. the same value is reported by all affiliated
APs/links.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250101070249.e29f42c7ae21.Ib2cdce608321ad154e4b13103cc315c3e3cb6b2b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/mlme.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 9d577523462d..5c09bf4cdc2e 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -352,6 +352,13 @@ cfg80211_mlme_check_mlo_compat(const struct ieee80211_multi_link_elem *mle_a, return -EINVAL; } + if (ieee80211_mle_get_ext_mld_capa_op((const u8 *)mle_a) != + ieee80211_mle_get_ext_mld_capa_op((const u8 *)mle_b)) { + NL_SET_ERR_MSG(extack, + "extended link MLD capabilities/ops mismatch"); + return -EINVAL; + } + return 0; } |