No connection with libertas and broadcom adapters: failure installing additional IEs for scanning

Jouni Malinen j at w1.fi
Thu Dec 26 13:55:16 PST 2024


On Wed, Oct 30, 2024 at 11:44:50AM +0000, Sebastian Priebe wrote:
> Since version 2.10 no connections with libertas cards are possible anymore.
> 
> Root cause is that the wpa_supplicant tries to install additional IEs for scanning while the driver does not support this.
> 
> Please use the patch from here:
> https://gitlab.archlinux.org/archlinux/packaging/packages/wpa_supplicant/-/blob/main/0007-nl80211-add-extra-ies-only-if-allowed-by-driver.patch

Even though that NL80211_ATTR_MAX_SCAN_IE_LEN was added long time ago,
it would be more robust to check whether the running kernel has support
for it and do this limiting of the scan IE configuration only if that
attribute is provided.

I would also make this maximum scan IE limit available to core
wpa_supplicant code so that a more informed determination could be made
to either not run a scan at all or remove a specific IE instead of all
IEs when the driver does not support the preferred option. In other
words, this should not be in src/drivers/driver_nl80211_scan.c but in
wpa_supplicant/scan.c (and potentially some other wpa_supplicant/*.c
files as well).

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list