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

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/e141f44176aab38e11d7211ed79cebda68aea5ed.1683960685.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
drivers/staging/rtl8192e/rtllib.h

index b58a30d..3f8a58e 100644 (file)
@@ -734,7 +734,6 @@ static void _rtl92e_init_priv_handler(struct net_device *dev)
 
        priv->rtllib->SetHwRegHandler = rtl92e_set_reg;
        priv->rtllib->AllowAllDestAddrHandler = rtl92e_set_monitor_mode;
-       priv->rtllib->SetFwCmdHandler = NULL;
        priv->rtllib->InitialGainHandler = rtl92e_init_gain;
        priv->rtllib->rtllib_ips_leave_wq = rtl92e_rtllib_ips_leave_wq;
        priv->rtllib->rtllib_ips_leave = rtl92e_rtllib_ips_leave;
index 5a1cd22..54a21c1 100644 (file)
@@ -217,12 +217,8 @@ void rtl92e_leisure_ps_enter(struct net_device *dev)
        if (psc->bLeisurePs) {
                if (psc->LpsIdleCount >= RT_CHECK_FOR_HANG_PERIOD) {
 
-                       if (priv->rtllib->ps == RTLLIB_PS_DISABLED) {
-                               if (priv->rtllib->SetFwCmdHandler)
-                                       priv->rtllib->SetFwCmdHandler(dev, FW_CMD_LPS_ENTER);
-                               _rtl92e_ps_set_mode(dev, RTLLIB_PS_MBCAST |
-                                                        RTLLIB_PS_UNICAST);
-                       }
+                       if (priv->rtllib->ps == RTLLIB_PS_DISABLED)
+                               _rtl92e_ps_set_mode(dev, RTLLIB_PS_MBCAST | RTLLIB_PS_UNICAST);
                } else
                        psc->LpsIdleCount++;
        }
@@ -235,10 +231,7 @@ void rtl92e_leisure_ps_leave(struct net_device *dev)
                                        &priv->rtllib->pwr_save_ctrl;
 
        if (psc->bLeisurePs) {
-               if (priv->rtllib->ps != RTLLIB_PS_DISABLED) {
+               if (priv->rtllib->ps != RTLLIB_PS_DISABLED)
                        _rtl92e_ps_set_mode(dev, RTLLIB_PS_DISABLED);
-                       if (priv->rtllib->SetFwCmdHandler)
-                               priv->rtllib->SetFwCmdHandler(dev, FW_CMD_LPS_LEAVE);
-               }
        }
 }
index cc1ce10..6c1f563 100644 (file)
@@ -1714,8 +1714,6 @@ struct rtllib_device {
        bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev);
        u8   (*rtllib_ap_sec_type)(struct rtllib_device *ieee);
        void (*InitialGainHandler)(struct net_device *dev, u8 Operation);
-       bool (*SetFwCmdHandler)(struct net_device *dev,
-                               enum fw_cmd_io_type FwCmdIO);
        void (*UpdateBeaconInterruptHandler)(struct net_device *dev,
                                             bool start);
        void (*ScanOperationBackupHandler)(struct net_device *dev,