From patchwork Sun Apr 1 20:39:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed W X-Patchwork-Id: 149984 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 14322B7011 for ; Mon, 2 Apr 2012 06:39:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A40589D285; Sun, 1 Apr 2012 16:39:50 -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 sbZzX-Yp6cC6; Sun, 1 Apr 2012 16:39:50 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 3566D9D29D; Sun, 1 Apr 2012 16:39:46 -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 31D049D29D for ; Sun, 1 Apr 2012 16:39:44 -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 g7FOBUUDHudG for ; Sun, 1 Apr 2012 16:39:40 -0400 (EDT) Received: from mail1.nippynetworks.com (mail1.nippynetworks.com [91.220.24.129]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 8609E9D285 for ; Sun, 1 Apr 2012 16:39:40 -0400 (EDT) Received: from localhost (mail1.nippynetworks.com [127.0.0.1]) by mail1.nippynetworks.com (Postfix) with ESMTP id 20018340233 for ; Sun, 1 Apr 2012 21:39:40 +0100 (BST) X-Virus-Scanned: amavisd-new at nippynetworks.com Received: from mail1.nippynetworks.com ([127.0.0.1]) by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3se0JD_zNZ-Z for ; Sun, 1 Apr 2012 21:39:40 +0100 (BST) Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73]) (Authenticated sender: edward@wildgooses.com) by mail1.nippynetworks.com (Postfix) with ESMTPSA id D4F7B3400C5 for ; Sun, 1 Apr 2012 21:39:39 +0100 (BST) Message-ID: <4F78BD0B.3090203@wildgooses.com> Date: Sun, 01 Apr 2012 21:39:39 +0100 From: Ed W User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: hostap@lists.shmoo.com Subject: Re: bug? bgscan param is not written back on "save_config" References: <4F78B652.8080502@wildgooses.com> In-Reply-To: <4F78B652.8080502@wildgooses.com> X-TagToolbar-Keys: D20120401213939454 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: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com On 01/04/2012 21:10, Ed W wrote: > Hi, if I use "wpa_cli save_config" then my wpa_supplicant.conf is > written back without any bg_scan stanzas? I guess this isn't > intentional? Testing hostapd-1.0-git from a few days back > > On a related note, it would be nice to have a global param to control > this for the situation that I always want bg_scan enabled? > I believe something like the following would resolve this: Signed-off-by: Ed Wildgoose --- wpa_supplicant/config_file.c.orig 2012-04-01 21:29:28.000000000 +0100 +++ wpa_supplicant/config_file.c 2012-04-01 21:29:51.000000000 +0100 @@ -526,6 +526,7 @@ write_pairwise(f, ssid); write_group(f, ssid); write_auth_alg(f, ssid); + STR(bgscan); #ifdef IEEE8021X_EAPOL write_eap(f, ssid); STR(identity);