From e69592786250d3b06b89e0a877c0420f3e2f1a83 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Jan 2020 13:56:12 +0200 Subject: [PATCH] driver: Remove unused send_frame() driver op All the previous users have now been converted to using send_mlme() so this unused send_frame() callback can be removed. Signed-off-by: Jouni Malinen --- src/drivers/driver.h | 14 -------------- src/drivers/driver_nl80211.c | 10 ---------- 2 files changed, 24 deletions(-) diff --git a/src/drivers/driver.h b/src/drivers/driver.h index d793cc8fe..f1027c08e 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -3349,20 +3349,6 @@ struct wpa_driver_ops { */ int (*signal_monitor)(void *priv, int threshold, int hysteresis); - /** - * send_frame - Send IEEE 802.11 frame (testing use only) - * @priv: Private driver interface data - * @data: IEEE 802.11 frame with IEEE 802.11 header - * @data_len: Size of the frame - * @encrypt: Whether to encrypt the frame (if keys are set) - * Returns: 0 on success, -1 on failure - * - * This function is only used for debugging purposes and is not - * required to be implemented for normal operations. - */ - int (*send_frame)(void *priv, const u8 *data, size_t data_len, - int encrypt); - /** * get_noa - Get current Notice of Absence attribute payload * @priv: Private driver interface data diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 4db825584..d8bba50e8 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7947,15 +7947,6 @@ static int nl80211_signal_poll(void *priv, struct wpa_signal_info *si) } -static int nl80211_send_frame(void *priv, const u8 *data, size_t data_len, - int encrypt) -{ - struct i802_bss *bss = priv; - return wpa_driver_nl80211_send_frame(bss, data, data_len, encrypt, 0, - 0, 0, 0, 0, NULL, 0); -} - - static int nl80211_set_param(void *priv, const char *param) { struct i802_bss *bss = priv; @@ -11284,7 +11275,6 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = { .signal_monitor = nl80211_signal_monitor, .signal_poll = nl80211_signal_poll, .channel_info = nl80211_channel_info, - .send_frame = nl80211_send_frame, .set_param = nl80211_set_param, .get_radio_name = nl80211_get_radio_name, .add_pmkid = nl80211_add_pmkid,