]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Save frequency configuration parameter
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Sat, 12 Jan 2013 08:23:45 +0000 (10:23 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 12 Jan 2013 08:23:45 +0000 (10:23 +0200)
In case of wpa_supplicant IBSS and AP modes after we will call wpa_cli
save command we should also save configured frequency. In other case
after wpa_supplicant restart we have frequency = 0 and AP start will
fail.

Signed-hostap: Janusz Dziedzic <janusz.dziedzic@tieto.com>

wpa_supplicant/config_file.c

index b6fb3e607bcf77b983629b16e2b59eed564e2b0b..8f32cc8d91e4abba3b3d7d7ab65c6116f2c7bbe6 100644 (file)
@@ -678,6 +678,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
        INT_DEFe(fragment_size, DEFAULT_FRAGMENT_SIZE);
 #endif /* IEEE8021X_EAPOL */
        INT(mode);
+       INT(frequency);
        write_int(f, "proactive_key_caching", ssid->proactive_key_caching, -1);
        INT(disabled);
        INT(peerkey);