aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-01-30 10:28:43 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-30 10:28:43 (GMT)
commitd8c20ec5912c8cfa93e5be623af467f89f55b888 (patch)
treebfacba7bddd5db06205491cd5fe7a9b69d2b0f61 /wpa_supplicant
parent59fa205388aa1aa844c707e46e967e39cbdd0aba (diff)
downloadhostap-d8c20ec5912c8cfa93e5be623af467f89f55b888.zip
hostap-d8c20ec5912c8cfa93e5be623af467f89f55b888.tar.gz
hostap-d8c20ec5912c8cfa93e5be623af467f89f55b888.tar.bz2
DPP: Clear dpp_listen_freq on remain-on-channel failure
If the DPP_LISTEN command failed due to the driver rejecting the remain-on-channel request, wpa_s->dpp_listen_freq was left set to the requested listen frequency and this resulted in the next DPP_LISTEN for the same frequency reporting "DPP: Already listening on .." even when the driver was not really listening on that frequency. Fix this by clearing wpa_s->dpp_listen_freq in the error case. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dpp_supplicant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 7bc4661..b6a6671 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -942,6 +942,7 @@ static void dpp_start_listen_cb(struct wpa_radio_work *work, int deinit)
wpa_printf(MSG_DEBUG,
"DPP: Failed to request the driver to remain on channel (%u MHz) for listen",
lwork->freq);
+ wpa_s->dpp_listen_freq = 0;
wpas_dpp_listen_work_done(wpa_s);
wpa_s->dpp_pending_listen_freq = 0;
return;