aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-01-01 13:58:46 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-01 13:58:46 (GMT)
commit32bb47faa154fb2a084512c2a858a89ec47d369c (patch)
tree95fdc0c3141abfd818d7fc0f4628c08f197aa3a6 /wpa_supplicant/ctrl_iface.c
parentd8dda601f0e182f936f3c321feda2dcf5a965176 (diff)
downloadhostap-32bb47faa154fb2a084512c2a858a89ec47d369c.zip
hostap-32bb47faa154fb2a084512c2a858a89ec47d369c.tar.gz
hostap-32bb47faa154fb2a084512c2a858a89ec47d369c.tar.bz2
Update wpa_supplicant channel list on FLUSH
Try to make sure the driver channel list state is synchronized with wpa_supplicant whenever explicitly clearing state (e.g., between hwsim test cases). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 767a006..42a5e88 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -7957,6 +7957,8 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
wpabuf_free(wpa_s->ric_ies);
wpa_s->ric_ies = NULL;
+
+ wpa_supplicant_update_channel_list(wpa_s, NULL);
}