[Bug 264238] wpa_supplicant 2.10 fails to associate to open secondary VAP when primary VAP is WPA
Date: Sat, 02 Jul 2022 05:23:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #169 from Cy Schubert <cy@FreeBSD.org> --- Created attachment 235029 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=235029&action=edit Try ext IE first (In reply to J.R. Oldroyd from comment #164) Having had a chance to study this tonight, looks like you've found the bug. The difference between wpa_bss_get_ie() and wpa_bss_get_ie_ext() is that the latter returns and extended IE only if: if (element->id == WLAN_EID_EXTENSION && \ element->datalen > 0 && \ element->data[0] == (extid)) WLAN_EID_EXT_CAPAB can reside in its own element or within WLAN_EID_EXTENSION. The attached patch is more appropriate. Looking for WLAN_EID_EXT_CAPAB within WLAN_EID_EXT_CAPAB *only* will probably cause other bugs. We look for the extended capability in the EID extension first otherwise continue as before. Addresses the problem more elegantly. Thanks for the excellent sleuthing and pointing to an elegant solution! -- You are receiving this mail because: You are on the CC list for the bug.