aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorDavid Spinadel <david.spinadel@intel.com>2016-02-15 14:53:22 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-21 15:55:16 (GMT)
commitfacf2c728a59af817aad9fe70d23d8b2519d8a94 (patch)
treed01f4f8f0c49a6293ee019adb211019123c92cf8 /wpa_supplicant/config_file.c
parent425dd78ad23910afc6498a6acd2dd8b05efda514 (diff)
downloadhostap-facf2c728a59af817aad9fe70d23d8b2519d8a94.zip
hostap-facf2c728a59af817aad9fe70d23d8b2519d8a94.tar.gz
hostap-facf2c728a59af817aad9fe70d23d8b2519d8a94.tar.bz2
MBO: Add non-preferred channel configuration in wpa_supplicant
Add non-preferred channel configuration to wpa_config for MBO. Signed-off-by: David Spinadel <david.spinadel@intel.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index a1eb691..07822ef 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1327,6 +1327,12 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
if (config->sched_scan_plans)
fprintf(f, "sched_scan_plans=%s\n", config->sched_scan_plans);
+
+#ifdef CONFIG_MBO
+ if (config->non_pref_chan)
+ fprintf(f, "non_pref_chan=%s\n", config->non_pref_chan);
+#endif /* CONFIG_MBO */
+
}
#endif /* CONFIG_NO_CONFIG_WRITE */