nl80211: Add missing WPA3-SAE auth_data in auth retry case
When wpa_supplicant sends NL80211_CMD_AUTHENTICATE to kernel, it is possible that the cfg80211 in kernel has expired the BSS entry that we are trying to auth with. Then cfg80211 will reject the auth cmd. In this case, wpa_supplicant will trigger a single channel scan to refresh cfg80211 BSS entry, and retry the auth when scan is finished. When this case happens, wpa_supplicant makes a copy of auth params, such as frequency, bssid, ssid, ie and so on. So when we retry auth, the copy of these params will be used. The problem is, a param named auth_data is missed when making the copy. The auth_data is used by NL80211_ATTR_SAE_DATA which is a mandatory field for WPA3-SAE auth. In WPA3-SAE case the auth retry will always fail because auth_data is missing. This patch fixes the issue. Signed-off-by: hongwang.li <hongwang.li@sonos.com>master
parent
71718b628b
commit
41fae6e0bb
Loading…
Reference in New Issue