staging: rtl8723bs: Remove unused function rtw_search_max_mac_id
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 15 Sep 2024 06:38:16 +0000 (08:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 09:48:27 +0000 (11:48 +0200)
Remove unused function rtw_search_max_mac_id.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/34c5f2ef44641c5151dde12b161d3f0aa963de5c.1726339782.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_wlan_util.c
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

index 2fb14f4ff1af58d5d0f6832e399776163ffca383..cd62ea47577c70079055e0b917c2fb9842929a33 100644 (file)
@@ -1822,21 +1822,3 @@ void rtw_release_macid(struct adapter *padapter, struct sta_info *psta)
        }
        spin_unlock_bh(&pdvobj->lock);
 }
-
-/* For 8188E RA */
-u8 rtw_search_max_mac_id(struct adapter *padapter)
-{
-       u8 max_mac_id = 0;
-       struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
-       int i;
-
-       spin_lock_bh(&pdvobj->lock);
-       for (i = (NUM_STA-1); i >= 0 ; i--) {
-               if (pdvobj->macid[i] == true)
-                       break;
-       }
-       max_mac_id = i;
-       spin_unlock_bh(&pdvobj->lock);
-
-       return max_mac_id;
-}
index 8315399b64fdb56c02d6503fc7127935d2b3a826..82709ffc7badbe072fc92ffc39b7c1463a6f13dd 100644 (file)
@@ -528,7 +528,6 @@ void rtw_camid_free(struct adapter *adapter, u8 cam_id);
 
 extern void rtw_alloc_macid(struct adapter *padapter, struct sta_info *psta);
 extern void rtw_release_macid(struct adapter *padapter, struct sta_info *psta);
-extern u8 rtw_search_max_mac_id(struct adapter *padapter);
 
 void report_join_res(struct adapter *padapter, int res);
 void report_survey_event(struct adapter *padapter, union recv_frame *precv_frame);