]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: remove wrapper init_addba_retry_timer
authorMichael Straube <straube.linux@gmail.com>
Fri, 1 Aug 2025 08:31:27 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Aug 2025 05:21:22 +0000 (07:21 +0200)
The function init_addba_retry_timer is just a wrapper around timer_setup.
Remove the wrapper and use timer_setup directly.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250801083131.82915-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
drivers/staging/rtl8723bs/os_dep/mlme_linux.c

index 1d2b53c76afcd4f552090e549b5139f00979755d..4d51e6993ca2335d82b8927c5ef047ff536e6e5b 100644 (file)
@@ -229,7 +229,7 @@ struct      sta_info *rtw_alloc_stainfo(struct      sta_priv *pstapriv, u8 *hwaddr)
                for (i = 0; i < 16; i++)
                        memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i], &wRxSeqInitialValue, 2);
 
-               init_addba_retry_timer(pstapriv->padapter, psta);
+               timer_setup(&psta->addba_retry_timer, addba_timer_hdl, 0);
 
                /* for A-MPDU Rx reordering buffer control */
                for (i = 0; i < 16 ; i++) {
index 58e2d8e159d61209f8f676653c5fb2479f474422..53fac838c36ad1e9c9d81b063a03a2c18d1ca90c 100644 (file)
@@ -426,7 +426,6 @@ void init_mlme_default_rate_set(struct adapter *padapter);
 void init_mlme_ext_priv(struct adapter *padapter);
 int init_hw_mlme_ext(struct adapter *padapter);
 void free_mlme_ext_priv(struct mlme_ext_priv *pmlmeext);
-extern void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta);
 extern struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv);
 
 /* void fill_fwpriv(struct adapter *padapter, struct fw_priv *pfwpriv); */
index 5cb27ddab7699c2b0e3e101b01e86126dbdd78e7..f85e17ae0e7f58dd1f64228f1d7df20e82cb7dc1 100644 (file)
@@ -128,9 +128,3 @@ void rtw_report_sec_ie(struct adapter *adapter, u8 authmode, u8 *sec_ie)
                kfree(buff);
        }
 }
-
-void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta)
-{
-       timer_setup(&psta->addba_retry_timer, addba_timer_hdl, 0);
-}
-