package/wpa_supplicant: Add optional autoscan support
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Sat, 2 Jul 2016 08:56:04 +0000 (10:56 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 3 Jul 2016 16:09:18 +0000 (18:09 +0200)
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wpa_supplicant/Config.in
package/wpa_supplicant/wpa_supplicant.mk

index f4c4167be50c39459e3802f075f9504842539dc4..1920774a6ec51475fb88e9ef264c25cc98e0c90b 100644 (file)
@@ -38,6 +38,11 @@ config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
          making it bigger but dispensing the need for a separate hostapd
          binary in some applications hence being smaller overall.
 
+config BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN
+       bool "Enable autoscan"
+       help
+         Enable support for the autoscan feature (allow periodic scan)
+
 config BR2_PACKAGE_WPA_SUPPLICANT_EAP
        bool "Enable EAP"
        help
index 21bbd3e5a939be53197e96fd044624ad1548970f..d1d59f74edea8c2acdf87bd594862cc5ed424616 100644 (file)
@@ -68,6 +68,12 @@ WPA_SUPPLICANT_CONFIG_ENABLE += \
        CONFIG_P2P
 endif
 
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN),y)
+WPA_SUPPLICANT_CONFIG_ENABLE += \
+       CONFIG_AUTOSCAN_EXPONENTIAL \
+       CONFIG_AUTOSCAN_PERIODIC
+endif
+
 ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPS),y)
 WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_WPS
 endif