]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: Remove unused members in struct rtw_wdev_priv
authorEthan Tidmore <ethantidmore06@gmail.com>
Mon, 9 Feb 2026 23:09:36 +0000 (17:09 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 15:08:49 +0000 (16:08 +0100)
Remove members p2p_enabled, provdisc_req_issued, bandroid_scan in
rtw_wdev_priv as they are never used anywhere in the driver.

Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260209230936.37385-3-ethantidmore06@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/ioctl_cfg80211.h
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index 782f79e9228aa7d7766a93a583dd27df4285fc6d..bc62b7285950fb8f068af882fb18cb5731cf5923 100644 (file)
@@ -18,11 +18,6 @@ struct rtw_wdev_priv {
        struct net_device *pmon_ndev;/* for monitor interface */
        char ifname_mon[IFNAMSIZ + 1]; /* interface name for monitor interface */
 
-       u8 p2p_enabled;
-
-       u8 provdisc_req_issued;
-
-       u8 bandroid_scan;
        bool block;
        bool power_mgmt;
 };
index d83924c6f54beb2275c97304f9053a02d942e726..5bb1ab55369b0672b47e50a10b9357ce8b9160e1 100644 (file)
@@ -2749,11 +2749,6 @@ int rtw_wdev_alloc(struct adapter *padapter, struct device *dev)
        pwdev_priv->scan_request = NULL;
        spin_lock_init(&pwdev_priv->scan_req_lock);
 
-       pwdev_priv->p2p_enabled = false;
-       pwdev_priv->provdisc_req_issued = false;
-
-       pwdev_priv->bandroid_scan = false;
-
        if (padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE)
                pwdev_priv->power_mgmt = true;
        else
index 29939bf5a15697f9f057a3bafc2830bfc55f13b7..d333f7d3a96a7ae40f54922eea01c0c6725840ea 100644 (file)
@@ -960,7 +960,6 @@ static int netdev_close(struct net_device *pnetdev)
        }
 
        rtw_scan_abort(padapter);
-       adapter_wdev_data(padapter)->bandroid_scan = false;
 
        return 0;
 }