[Bug 264238] wpa_supplicant 2.10 fails to associate to open secondary VAP when primary VAP is WPA

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 03 Jul 2022 10:52:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238

--- Comment #185 from J.R. Oldroyd <fbsd@opal.com> ---
The populated IE which, according to the comments, appears to be intended as a
response to be transmitted, is being handed to wpa_drv_associate() where it is
handed to wpa_driver_bsd_associate().

wpa_driver_bsd_associate() has the following code:

        if (params->wpa_ie_len &&
            set80211param(drv, IEEE80211_IOC_WPA,
                          params->wpa_ie[0] == WLAN_EID_RSN ? 2 : 1) < 0)
                return -1;

In other words, if there is an IE, don't bother looking to see what IE it is,
just set WPA.

Looks like this code needs improving to only set WPA if the IE is a WPA IE.

Or, is it that the Extended Capabilities IE that we just generated as a
response to the AP shouldn't be handed to our own driver?

-- 
You are receiving this mail because:
You are on the CC list for the bug.