mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
UPSTREAM: wifi: cfg80211: reject bad AP MLD address
When trying to authenticate, if the AP MLD address isn't a valid address, mac80211 can throw a warning. Avoid that by rejecting such addresses. Bug: 254441685 Fixes:d648c23024("wifi: nl80211: support MLO in auth/assoc") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230604120651.89188912bd1d.I8dbc6c8ee0cb766138803eec59508ef4ce477709@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> (cherry picked from commit727073ca5e) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: I20872bbd7f27db4fcbcd0b2b40f1835a175247f8
This commit is contained in:
committed by
Treehugger Robot
parent
2e6bf292f3
commit
dc11ed25f7
@@ -10542,6 +10542,8 @@ static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)
|
||||
if (!info->attrs[NL80211_ATTR_MLD_ADDR])
|
||||
return -EINVAL;
|
||||
req.ap_mld_addr = nla_data(info->attrs[NL80211_ATTR_MLD_ADDR]);
|
||||
if (!is_valid_ether_addr(req.ap_mld_addr))
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
req.bss = cfg80211_get_bss(&rdev->wiphy, chan, bssid, ssid, ssid_len,
|
||||
|
||||
Reference in New Issue
Block a user