summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8723bs/include/rtw_mlme.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-02-21 15:53:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-08 17:57:05 +0100
commit5a50c621a4513d9664c55b661400c0f04444c190 (patch)
tree0ca007fd2a15704149f5288c2dd8ef6730e67994 /drivers/staging/rtl8723bs/include/rtw_mlme.h
parentfea50d5fba5a03ddb5c81863533afdaa91002690 (diff)
drivers: staging: rtl8723bs: Remove pmlmepriv->num_of_scanned
pmlmepriv->num_of_scanned is only ever set and never read, remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230221145326.7808-4-hdegoede@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/include/rtw_mlme.h')
-rw-r--r--drivers/staging/rtl8723bs/include/rtw_mlme.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme.h b/drivers/staging/rtl8723bs/include/rtw_mlme.h
index ee748620107f..fc0b43d38d9a 100644
--- a/drivers/staging/rtl8723bs/include/rtw_mlme.h
+++ b/drivers/staging/rtl8723bs/include/rtw_mlme.h
@@ -303,7 +303,6 @@ struct mlme_priv {
struct __queue free_bss_pool;
struct __queue scanned_queue;
u8 *free_bss_buf;
- u32 num_of_scanned;
struct ndis_802_11_ssid assoc_ssid;
u8 assoc_bssid[6];
@@ -490,13 +489,6 @@ static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, signed int state)
pmlmepriv->bScanInProcess = false;
}
-static inline void set_scanned_network_val(struct mlme_priv *pmlmepriv, signed int val)
-{
- spin_lock_bh(&pmlmepriv->lock);
- pmlmepriv->num_of_scanned = val;
- spin_unlock_bh(&pmlmepriv->lock);
-}
-
extern u16 rtw_get_capability(struct wlan_bssid_ex *bss);
extern void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *target);
extern void rtw_disconnect_hdl_under_linked(struct adapter *adapter, struct sta_info *psta, u8 free_assoc);