staging: rtl8192e: Remove function _rtl92e_wx_set_force_lps()
Remove function _rtl92e_wx_set_force_lps() as this functionality is not commonly used and the tool to access it is deprecated. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/833ccd9d1eee1a350f7801d86116e465b3713327.1696548527.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
31e2d4cde1
commit
9938fdea87
@ -370,7 +370,6 @@ struct r8192_priv {
|
||||
|
||||
u16 tx_counter;
|
||||
u16 rx_ctr;
|
||||
bool force_lps;
|
||||
};
|
||||
|
||||
extern const struct ethtool_ops rtl819x_ethtool_ops;
|
||||
|
@ -133,7 +133,7 @@ static int _rtl92e_wx_adapter_power_status(struct net_device *dev,
|
||||
|
||||
mutex_lock(&priv->wx_mutex);
|
||||
|
||||
if (*extra || priv->force_lps) {
|
||||
if (*extra) {
|
||||
priv->ps_force = false;
|
||||
psc->bLeisurePs = true;
|
||||
} else {
|
||||
@ -169,22 +169,6 @@ static int _rtl92e_wx_set_lps_awake_interval(struct net_device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _rtl92e_wx_set_force_lps(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
|
||||
mutex_lock(&priv->wx_mutex);
|
||||
|
||||
netdev_info(dev,
|
||||
"%s(): force LPS ! extra is %d (1 is open 0 is close)\n",
|
||||
__func__, *extra);
|
||||
priv->force_lps = *extra;
|
||||
mutex_unlock(&priv->wx_mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _rtl92e_wx_set_debug(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
@ -970,10 +954,6 @@ static const struct iw_priv_args r8192_private_args[] = {
|
||||
SIOCIWFIRSTPRIV + 0xa,
|
||||
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, IW_PRIV_TYPE_NONE,
|
||||
"lps_interv"
|
||||
}, {
|
||||
SIOCIWFIRSTPRIV + 0xb,
|
||||
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, IW_PRIV_TYPE_NONE,
|
||||
"lps_force"
|
||||
}
|
||||
|
||||
};
|
||||
@ -990,7 +970,6 @@ static iw_handler r8192_private_handler[] = {
|
||||
(iw_handler)NULL,
|
||||
(iw_handler)NULL,
|
||||
(iw_handler)_rtl92e_wx_set_lps_awake_interval,
|
||||
(iw_handler)_rtl92e_wx_set_force_lps,
|
||||
};
|
||||
|
||||
static struct iw_statistics *_rtl92e_get_wireless_stats(struct net_device *dev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user