From patchwork Fri Apr 20 11:23:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/7] Adding autoscan parameters support in config file Date: Fri, 20 Apr 2012 01:23:22 -0000 From: Tomasz Bursztyka X-Patchwork-Id: 154021 Message-Id: <1334921008-6654-2-git-send-email-tomasz.bursztyka@linux.intel.com> To: hostap@lists.shmoo.com Signed-hostap: Tomasz Bursztyka --- wpa_supplicant/config.c | 2 ++ wpa_supplicant/config.h | 9 +++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 600e32b..9e9e1c4 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -1823,6 +1823,7 @@ void wpa_config_free(struct wpa_config *config) os_free(config->home_imsi); os_free(config->home_milenage); os_free(config->p2p_pref_chan); + os_free(config->autoscan); os_free(config); } @@ -2635,6 +2636,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 18317f5..aa09a88 100644 --- a/wpa_supplicant/config.h +++ b/wpa_supplicant/config.h @@ -487,6 +487,15 @@ struct wpa_config { * :: 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: + * : + */ + char *autoscan; };