]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Write freq_list as per-network item in wpa_supplicant.conf
authorNijun Gong <ngong@qti.qualcomm.com>
Mon, 7 Jul 2025 11:16:28 +0000 (16:46 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 14 Aug 2025 15:42:39 +0000 (18:42 +0300)
Currently wpa_cli user can't save freq_list to conf file with
following commands:
set_network 0 freq_list 5180
save_config

To fix above issue, add freq_list to wpa_config_write_network().

Signed-off-by: Nijun Gong <ngong@qti.qualcomm.com>
wpa_supplicant/config_file.c

index c7b188cf2112cb6fd8af66dfc3ee9e380312d03d..e9a8fa47050444e6e84ad35fea76027d5d3e676e 100644 (file)
@@ -787,6 +787,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
        STR(bgscan);
        STR(autoscan);
        STR(scan_freq);
+       STR(freq_list);
 #ifdef IEEE8021X_EAPOL
        write_eap(f, ssid);
        STR(identity);