bug? bgscan param is not written back on "save_config"

Ed W lists
Sun Apr 1 13:39:39 PDT 2012


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 <lists at wildgooses.com>
---

--- 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);



More information about the Hostap mailing list