if BR2_PACKAGE_WPA_SUPPLICANT
+config BR2_PACKAGE_WPA_SUPPLICANT_NL80211
+ bool "Enable nl80211 support"
+ default y
+ select BR2_PACKAGE_LIBNL
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
+ help
+ Enable support for nl80211. This is the current wireless
+ API for Linux, supported by all wireless drivers in vanilla
+ Linux, but may not be supported by some out-of-tree Linux
+ wireless drivers. wpa_supplicant will still fall back to
+ using the Wireless Extensions (wext) API with these drivers.
+
+ If this option is disabled, then only the deprecated wext
+ API will be supported, with far less features. Linux may
+ supports using wext with modern drivers using a
+ compatibility layer, but it must be enabled in the kernel
+ configuration.
+
+comment "nl80211 support needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
+
config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
bool "Enable AP mode"
help
# libnl-3 needs -lm (for rint) and -lpthread if linking statically
# And library order matters hence stick -lnl-3 first since it's appended
# in the wpa_supplicant Makefiles as in LIBS+=-lnl-3 ... thus failing
-ifeq ($(BR2_PACKAGE_LIBNL),y)
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_NL80211),y)
ifeq ($(BR2_STATIC_LIBS),y)
WPA_SUPPLICANT_LIBS += -lnl-3 -lm -lpthread
endif