staging: rtl8192e: Remove undefined function data_hard_stop
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 13 May 2023 18:08:43 +0000 (20:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 May 2023 09:11:11 +0000 (10:11 +0100)
Remove function data_hard_stop as it is not defined.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/4cc180b9538d6c9c32ff0f56646a642fa217a4a4.1683960684.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c
drivers/staging/rtl8192e/rtllib_softmac_wx.c

index d5f5ea5..b356cde 100644 (file)
@@ -1682,12 +1682,6 @@ struct rtllib_device {
        void (*softmac_data_hard_start_xmit)(struct sk_buff *skb,
                               struct net_device *dev, int rate);
 
-       /* stops the HW queue for DATA frames. Useful to avoid
-        * waste time to TX data frame when we are reassociating
-        * This function can sleep.
-        */
-       void (*data_hard_stop)(struct net_device *dev);
-
        /* OK this is complementing to data_poll_hard_stop */
        void (*data_hard_resume)(struct net_device *dev);
 
index 1ca77cd..65eecbc 100644 (file)
@@ -1575,9 +1575,6 @@ static void rtllib_associate_procedure_wq(void *data)
        ieee->rtllib_ips_leave(ieee->dev);
        mutex_lock(&ieee->wx_mutex);
 
-       if (ieee->data_hard_stop)
-               ieee->data_hard_stop(ieee->dev);
-
        rtllib_stop_scan(ieee);
        HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
        if (ieee->rf_power_state == rf_off) {
@@ -2734,8 +2731,6 @@ void rtllib_disassociate(struct rtllib_device *ieee)
        if (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)
                rtllib_reset_queue(ieee);
 
-       if (ieee->data_hard_stop)
-               ieee->data_hard_stop(ieee->dev);
        if (IS_DOT11D_ENABLE(ieee))
                dot11d_reset(ieee);
        ieee->state = RTLLIB_NOLINK;
index 1f2fa71..d7166d6 100644 (file)
@@ -345,9 +345,6 @@ void rtllib_wx_sync_scan_wq(void *data)
        rtllib_sta_ps_send_null_frame(ieee, 1);
 
        rtllib_stop_all_queues(ieee);
-
-       if (ieee->data_hard_stop)
-               ieee->data_hard_stop(ieee->dev);
        rtllib_stop_send_beacons(ieee);
        ieee->state = RTLLIB_LINKED_SCANNING;
        ieee->link_change(ieee->dev);