[PATCH] wpa_supplicant: save frequency for AP mode

Janusz Dziedzic janusz.dziedzic
Fri Jan 11 13:13:17 PST 2013


In case of wpa_supplicant AP mode (mode=2) 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 at tieto.com>
---
 wpa_supplicant/config_file.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index b6fb3e6..f8473a5 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -678,6 +678,9 @@ static void wpa_config_write_network(FILE *f,
struct wpa_ssid *ssid)
 	INT_DEFe(fragment_size, DEFAULT_FRAGMENT_SIZE);
 #endif /* IEEE8021X_EAPOL */
 	INT(mode);
+#ifdef CONFIG_AP
+	INT(frequency);
+#endif /* CONFIG_AP */
 	write_int(f, "proactive_key_caching", ssid->proactive_key_caching, -1);
 	INT(disabled);
 	INT(peerkey);
-- 
1.7.9.5



More information about the Hostap mailing list