mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 01:14:19 -04:00
staging: rtl8192e: Remove undefined function SetFwCmdHandler
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ccffcebb77
commit
4e2ae4fffd
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user