Patchwork [1/5] Adding autoscan parameters support in config file

login
register
mail settings
Submitter Tomasz Bursztyka
Date April 4, 2012, 6:39 a.m.
Message ID <1333521602-6216-2-git-send-email-tomasz.bursztyka@linux.intel.com>
Download mbox | patch
Permalink /patch/150605/
State Superseded
Headers show

Comments

Tomasz Bursztyka - April 4, 2012, 6:39 a.m.
---
 wpa_supplicant/config.c |    2 ++
 wpa_supplicant/config.h |    9 +++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

Patch

diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 1ca9de3..c5f1365 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -1821,6 +1821,7 @@  void wpa_config_free(struct wpa_config *config)
 	os_free(config->home_ca_cert);
 	os_free(config->home_imsi);
 	os_free(config->home_milenage);
+	os_free(config->autoscan);
 	os_free(config);
 }
 
@@ -2583,6 +2584,7 @@  static const struct global_parse_data global_fields[] = {
 	{ STR(home_ca_cert), 0 },
 	{ STR(home_imsi), 0 },
 	{ STR(home_milenage), 0 },
+	{ STR(autoscan), 0 },
 	{ INT_RANGE(interworking, 0, 1), 0 },
 	{ FUNC(hessid), 0 },
 	{ INT_RANGE(access_network_type, 0, 15), 0 }
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index f9e5043..e2e381b 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -484,6 +484,15 @@  struct wpa_config {
 	 *	<Ki>:<OPc>:<SQN> format
 	 */
 	char *home_milenage;
+
+	/**
+	 * 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;
 };