staging: r8188eu: rtw_is_scan_deny is always false
authorMartin Kaiser <martin@kaiser.cx>
Sat, 10 Sep 2022 18:02:36 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Sep 2022 11:57:23 +0000 (13:57 +0200)
The rtw_is_scan_deny macro returns false. Remove the macro and resulting
dead code.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Acked-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220910180236.489808-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_ioctl_set.c
drivers/staging/r8188eu/include/rtw_mlme.h

index d163a1a..55e6b0f 100644 (file)
@@ -351,11 +351,6 @@ u8 rtw_set_802_11_bssid_list_scan(struct adapter *padapter, struct ndis_802_11_s
                /*  Scan or linking is in progress, do nothing. */
                res = true;
        } else {
-               if (rtw_is_scan_deny(padapter)) {
-                       indicate_wx_scan_complete_event(padapter);
-                       return _SUCCESS;
-               }
-
                spin_lock_bh(&pmlmepriv->lock);
 
                res = rtw_sitesurvey_cmd(padapter, pssid, ssid_max_num);
index 47bf7ce..b69989c 100644 (file)
@@ -537,7 +537,6 @@ void _rtw_join_timeout_handler(struct adapter *adapter);
 void rtw_scan_timeout_handler(struct adapter *adapter);
 
  void rtw_dynamic_check_timer_handlder(struct adapter *adapter);
-#define rtw_is_scan_deny(adapter) false
 
 void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);