From 117f586b05a61ac44ddb3b541b4efc853e793d8a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 2 Dec 2018 17:03:13 +0200 Subject: [PATCH] DPP: Remove unused wpas_dpp_remain_on_channel_cb() This function was apparently never used at all. Signed-off-by: Jouni Malinen --- wpa_supplicant/dpp_supplicant.c | 23 ----------------------- wpa_supplicant/dpp_supplicant.h | 2 -- 2 files changed, 25 deletions(-) diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c index 4f38fb096..7bc46610a 100644 --- a/wpa_supplicant/dpp_supplicant.c +++ b/wpa_supplicant/dpp_supplicant.c @@ -1022,29 +1022,6 @@ void wpas_dpp_listen_stop(struct wpa_supplicant *wpa_s) } -void wpas_dpp_remain_on_channel_cb(struct wpa_supplicant *wpa_s, - unsigned int freq) -{ - if (!wpa_s->dpp_listen_freq && !wpa_s->dpp_pending_listen_freq) - return; - - wpa_printf(MSG_DEBUG, - "DPP: remain-on-channel callback (off_channel_freq=%u dpp_pending_listen_freq=%d roc_waiting_drv_freq=%d freq=%u)", - wpa_s->off_channel_freq, wpa_s->dpp_pending_listen_freq, - wpa_s->roc_waiting_drv_freq, freq); - if (wpa_s->off_channel_freq && - wpa_s->off_channel_freq == wpa_s->dpp_pending_listen_freq) { - wpa_printf(MSG_DEBUG, "DPP: Listen on %u MHz started", freq); - wpa_s->dpp_pending_listen_freq = 0; - } else { - wpa_printf(MSG_DEBUG, - "DPP: Ignore remain-on-channel callback (off_channel_freq=%u dpp_pending_listen_freq=%d freq=%u)", - wpa_s->off_channel_freq, - wpa_s->dpp_pending_listen_freq, freq); - } -} - - void wpas_dpp_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, unsigned int freq) { diff --git a/wpa_supplicant/dpp_supplicant.h b/wpa_supplicant/dpp_supplicant.h index 9b539df79..5a4f06e2e 100644 --- a/wpa_supplicant/dpp_supplicant.h +++ b/wpa_supplicant/dpp_supplicant.h @@ -19,8 +19,6 @@ int wpas_dpp_bootstrap_info(struct wpa_supplicant *wpa_s, int id, int wpas_dpp_auth_init(struct wpa_supplicant *wpa_s, const char *cmd); int wpas_dpp_listen(struct wpa_supplicant *wpa_s, const char *cmd); void wpas_dpp_listen_stop(struct wpa_supplicant *wpa_s); -void wpas_dpp_remain_on_channel_cb(struct wpa_supplicant *wpa_s, - unsigned int freq); void wpas_dpp_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, unsigned int freq); void wpas_dpp_rx_action(struct wpa_supplicant *wpa_s, const u8 *src,