Browse Source

Add autoscan parameters support in config file

Signed-hostap: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tomasz Bursztyka 12 years ago
parent
commit
b0786fba71
3 changed files with 17 additions and 1 deletions
  1. 3 1
      wpa_supplicant/config.c
  2. 9 0
      wpa_supplicant/config.h
  3. 5 0
      wpa_supplicant/wpa_supplicant.conf

+ 3 - 1
wpa_supplicant/config.c

@@ -1859,6 +1859,7 @@ void wpa_config_free(struct wpa_config *config)
 	os_free(config->p2p_ssid_postfix);
 	os_free(config->pssid);
 	os_free(config->p2p_pref_chan);
+	os_free(config->autoscan);
 	os_free(config);
 }
 
@@ -2882,7 +2883,8 @@ static const struct global_parse_data global_fields[] = {
 	{ INT_RANGE(interworking, 0, 1), 0 },
 	{ FUNC(hessid), 0 },
 	{ INT_RANGE(access_network_type, 0, 15), 0 },
-	{ INT_RANGE(pbc_in_m1, 0, 1), 0 }
+	{ INT_RANGE(pbc_in_m1, 0, 1), 0 },
+	{ STR(autoscan), 0 }
 };
 
 #undef FUNC

+ 9 - 0
wpa_supplicant/config.h

@@ -632,6 +632,15 @@ struct wpa_config {
 	 * a label in the AP).
 	 */
 	int pbc_in_m1;
+
+	/**
+	 * autoscan - Automatic scan parameters or %NULL if none
+	 *
+	 * This is an optional set of parameters for automatic scanning
+	 * within an interface in following format:
+	 * <autoscan module name>:<module parameters>
+	 */
+	char *autoscan;
 };
 
 

+ 5 - 0
wpa_supplicant/wpa_supplicant.conf

@@ -225,6 +225,11 @@ fast_reauth=1
 # of APs when using ap_scan=1 mode.
 #bss_max_count=200
 
+# Automatic scan
+# This is an optional set of parameters for automatic scanning
+# within an interface in following format:
+#autoscan=<autoscan module name>:<module parameters>
+# autoscan is like bgscan but on disconnected or inactive state.
 
 # filter_ssids - SSID-based scan result filtering
 # 0 = do not filter scan results (default)