staging: rtl8192e: Remove function _rtl92e_wx_set_force_lps()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 6 Oct 2023 19:04:38 +0000 (21:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Oct 2023 09:13:56 +0000 (11:13 +0200)
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>
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c

index 922231274f4bf3b30f2fd3df7a19ae2801033a7b..4b2ee1684dac568e7cc1cfeaa0aead7fcbedfb5c 100644 (file)
@@ -370,7 +370,6 @@ struct r8192_priv {
 
        u16             tx_counter;
        u16             rx_ctr;
-       bool            force_lps;
 };
 
 extern const struct ethtool_ops rtl819x_ethtool_ops;
index c367e4fa2af19344f36e3895155626037c0abdc2..a85caabcaf6c80fb118f9bf8218d966b598bef2c 100644 (file)
@@ -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)