UPSTREAM: wifi: nl80211: check MLO support in authenticate
We should check that MLO connections are supported before
attempting to authenticate with MLO parameters, check that.
Fixes: d648c23024bd ("wifi: nl80211: support MLO in auth/assoc")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Bug: 253289327
Change-Id: Ia6a190a08d4e90a7f80e65a4b000b875cf61f997
(cherry picked from commit 45aaf17c0c3471efa3100dadfc65e3d459821443)
Signed-off-by: Kiran Kumar Lokere <quic_klokere@quicinc.com>
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
@@ -10467,6 +10467,8 @@ static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)
|
||||
req.key_idx = key.idx;
|
||||
req.link_id = nl80211_link_id_or_invalid(info->attrs);
|
||||
if (req.link_id >= 0) {
|
||||
if (!(rdev->wiphy.flags & WIPHY_FLAG_SUPPORTS_MLO))
|
||||
return -EINVAL;
|
||||
if (!info->attrs[NL80211_ATTR_MLD_ADDR])
|
||||
return -EINVAL;
|
||||
req.ap_mld_addr = nla_data(info->attrs[NL80211_ATTR_MLD_ADDR]);
|
||||
|
||||
Reference in New Issue
Block a user