On Fri, 2022-10-14 at 18:47 +0200, Johannes Berg wrote:
From: Johannes Berg johannes.berg@intel.com
There's no need to parse all elements etc. just to find the authentication challenge - use cfg80211_find_elem() instead. This also allows us to remove WLAN_EID_CHALLENGE handling from the element parsing entirely.
pos = mgmt->u.auth.variable;
- ieee802_11_parse_elems(pos, len - (pos - (u8 *)mgmt), false, &elems,
mgmt->bssid, auth_data->bss->bssid);
And, I probably should've said that in the commit message, the multiple BSSID element isn't valid in this frame either, so need to try to parse it (last argument)
johannes