From patchwork Tue Apr 3 14:13:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Bursztyka X-Patchwork-Id: 150446 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 4FF70B6FD8 for ; Wed, 4 Apr 2012 00:12:29 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 809949D2C1; Tue, 3 Apr 2012 10:12:21 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7DoqQd5Rv7zb; Tue, 3 Apr 2012 10:12:21 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A396E9D297; Tue, 3 Apr 2012 10:12:01 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 1895317C001 for ; Tue, 3 Apr 2012 10:12:00 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S4n+umcwK0s7 for ; Tue, 3 Apr 2012 10:11:55 -0400 (EDT) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E869817C002 for ; Tue, 3 Apr 2012 10:11:54 -0400 (EDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 03 Apr 2012 07:11:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="137089527" Received: from mriya.fi.intel.com ([10.237.68.33]) by fmsmga001.fm.intel.com with ESMTP; 03 Apr 2012 07:11:53 -0700 From: Tomasz Bursztyka To: hostap@lists.shmoo.com Subject: [PATCH 1/5] Adding autoscan parameters support in config file Date: Tue, 3 Apr 2012 17:13:25 +0300 Message-Id: <1333462409-8597-2-git-send-email-tomasz.bursztyka@linux.intel.com> X-Mailer: git-send-email 1.7.8.5 In-Reply-To: <1333462409-8597-1-git-send-email-tomasz.bursztyka@linux.intel.com> References: <1333462409-8597-1-git-send-email-tomasz.bursztyka@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - PL 281, 00181 Helsinki X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com --- 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 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 { * :: 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; };