]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: move init_mlme_ext_timer to core/rtw_mlme_ext.c
authorMichael Straube <straube.linux@gmail.com>
Fri, 1 Aug 2025 08:31:25 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Aug 2025 05:21:22 +0000 (07:21 +0200)
Move the function init_mlme_ext_timer from os_dep/mlme_linux.c to
core/rtw_mlme_ext.c to reduce code in the os_dep directory.

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-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
drivers/staging/rtl8723bs/os_dep/mlme_linux.c

index a830646fbcb1242794153987c543753b6133fac6..a897c433d2b06199bf16752ae4e908d6cab2faa5 100644 (file)
@@ -374,6 +374,15 @@ static u8 init_channel_set(struct adapter *padapter, u8 ChannelPlan, struct rt_c
        return chanset_size;
 }
 
+static void init_mlme_ext_timer(struct adapter *padapter)
+{
+       struct  mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+
+       timer_setup(&pmlmeext->survey_timer, survey_timer_hdl, 0);
+       timer_setup(&pmlmeext->link_timer, link_timer_hdl, 0);
+       timer_setup(&pmlmeext->sa_query_timer, sa_query_timer_hdl, 0);
+}
+
 void init_mlme_ext_priv(struct adapter *padapter)
 {
        struct registry_priv *pregistrypriv = &padapter->registrypriv;
index 2080408743ef72f81ebe76afc31ba149c2caa9cc..58e2d8e159d61209f8f676653c5fb2479f474422 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_mlme_ext_timer(struct adapter *padapter);
 extern void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta);
 extern struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv);
 
index 09bf363efa8b113f6d24647121504a0a6d18e1c1..d22d6cf3cb11964e44785185a792775ec5f18dbc 100644 (file)
@@ -164,11 +164,3 @@ void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta)
        timer_setup(&psta->addba_retry_timer, addba_timer_hdl, 0);
 }
 
-void init_mlme_ext_timer(struct adapter *padapter)
-{
-       struct  mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
-
-       timer_setup(&pmlmeext->survey_timer, survey_timer_hdl, 0);
-       timer_setup(&pmlmeext->link_timer, link_timer_hdl, 0);
-       timer_setup(&pmlmeext->sa_query_timer, sa_query_timer_hdl, 0);
-}