wpa_supplicant: add config option to enable support for WPS
authorSven Neumann <s.neumann@raumfeld.com>
Tue, 7 Feb 2012 10:33:31 +0000 (11:33 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 7 Feb 2012 13:01:56 +0000 (14:01 +0100)
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/wpa_supplicant/Config.in
package/wpa_supplicant/wpa_supplicant.mk

index a4e0fba0f75bcf533d0ed231a44750deaa5cbc69..8ac2576f83b2aaffa80ffe3c8236baae88ee3bde 100644 (file)
@@ -31,3 +31,9 @@ config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
          access point. This can be used for open and WPA2-Personal networks
          (optionally, with WPS); this links in parts of hostapd functionality
          into wpa_supplicant.
+
+config BR2_PACKAGE_WPA_SUPPLICANT_WPS
+       bool "Enable support for WPS"
+       depends on BR2_PACKAGE_WPA_SUPPLICANT
+       help
+         Enable support for Wi-Fi Protected Setup (WPS)
index f722b818dd024e1199d0361618182638152a2da4..0a672eee2844034e32827fca29fda85e75a91abd 100644 (file)
@@ -35,6 +35,12 @@ define WPA_SUPPLICANT_AP_CONFIG
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPS),y)
+define WPA_SUPPLICANT_WPS_CONFIG
+       echo "CONFIG_WPS=y" >>$(WPA_SUPPLICANT_CONFIG)
+endef
+endif
+
 define WPA_SUPPLICANT_CRYPTO_CONFIG
        echo "CONFIG_CRYPTO=internal" >>$(WPA_SUPPLICANT_CONFIG)
        echo "CONFIG_INTERNAL_LIBTOMMATH=y" >>$(WPA_SUPPLICANT_CONFIG)
@@ -77,6 +83,7 @@ define WPA_SUPPLICANT_CONFIGURE_CMDS
        $(WPA_SUPPLICANT_CRYPTO_CONFIG)
        $(WPA_SUPPLICANT_TLS_CONFIG)
        $(WPA_SUPPLICANT_EAP_CONFIG)
+       $(WPA_SUPPLICANT_WPS_CONFIG)
        $(WPA_SUPPLICANT_LIBNL_CONFIG)
        $(WPA_SUPPLICANT_DBUS_CONFIG)
        $(WPA_SUPPLICANT_AP_CONFIG)