wpa_supplicant: explicitly disable libnl by default
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 16 May 2012 00:07:58 +0000 (00:07 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 16 May 2012 13:26:48 +0000 (15:26 +0200)
libnl support is enabled by default since version 1.0, so disable it
to avoid build breakage when there's no libnl.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/wpa_supplicant/wpa_supplicant.mk

index a4978e0059092b517f4aab4ea2c687debff61b95..97210ceee73fb9e22232fe0c5d23e7cb6b91dffe 100644 (file)
@@ -15,9 +15,12 @@ WPA_SUPPLICANT_LDFLAGS = $(TARGET_LDFLAGS)
 ifeq ($(BR2_PACKAGE_LIBNL),y)
        WPA_SUPPLICANT_DEPENDENCIES += libnl
 define WPA_SUPPLICANT_LIBNL_CONFIG
-       $(SED) "s/^#CONFIG_DRIVER_NL80211/CONFIG_DRIVER_NL80211/" $(WPA_SUPPLICANT_CONFIG)
        echo "CONFIG_LIBNL32=y" >>$(WPA_SUPPLICANT_CONFIG)
 endef
+else
+define WPA_SUPPLICANT_LIBNL_CONFIG
+       $(SED) "s/^CONFIG_DRIVER_NL80211/#CONFIG_DRIVER_NL80211/" $(WPA_SUPPLICANT_CONFIG)
+endef
 endif
 
 ifneq ($(BR2_PACKAGE_WPA_SUPPLICANT_EAP),y)