]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
driver: Remove unused send_frame() driver op
authorJouni Malinen <j@w1.fi>
Fri, 3 Jan 2020 11:56:12 +0000 (13:56 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Jan 2020 11:56:12 +0000 (13:56 +0200)
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 <j@w1.fi>
src/drivers/driver.h
src/drivers/driver_nl80211.c

index d793cc8fec04d42ec51a8f934ac3b1623ff0e03f..f1027c08e9cc34a52996d505458de27bff171e7e 100644 (file)
@@ -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
index 4db825584905d91ede35af5837f3b44ea94b668f..d8bba50e8cde067fd8c3ecddfeaf6d1aad5b2d7c 100644 (file)
@@ -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,