staging: rtl8723bs: get rid of os_dep/mlme_linux.c
v2 cover staging: rtl8723bs: get rid of os_dep/mlme_linux.c
This series moves/merges the functions/functionality of os_dep/mlme_linux.c into the corresponding parts of the driver in the core directory to reduce "os dependent" code.
The patches have been compile-tested only due to lack of hardware.
v1 -> v2: added back accidently removed tabs in patch 3/8
Michael Straube (8):
staging: rtl8723bs: remove wrapper rtw_os_indicate_scan_done
staging: rtl8723bs: move init_mlme_ext_timer to core/rtw_mlme_ext.c
staging: rtl8723bs: move rtw_init_mlme_timer to core/rtw_mlme.c
staging: rtl8723bs: remove wrapper init_addba_retry_timer
staging: rtl8723bs: merge rtw_os_indicate_connect into
rtw_indicate_connect
staging: rtl8723bs: merge rtw_os_indicate_disconnect into
rtw_indicate_disconnect
staging: rtl8723bs: move rtw_report_sec_ie to core/rtw_mlme.c
staging: rtl8723bs: move rtw_reset_securitypriv to core/rtw_mlme.c
drivers/staging/rtl8723bs/Makefile | 1 - drivers/staging/rtl8723bs/core/rtw_mlme.c | 151 ++++++++++++++- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 9 + drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 2 +- drivers/staging/rtl8723bs/include/drv_types.h | 1 - .../staging/rtl8723bs/include/mlme_osdep.h | 19 -- drivers/staging/rtl8723bs/include/rtw_mlme.h | 1 + .../staging/rtl8723bs/include/rtw_mlme_ext.h | 2 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 179 ------------------ 9 files changed, 155 insertions(+), 210 deletions(-) delete mode 100644 drivers/staging/rtl8723bs/include/mlme_osdep.h delete mode 100644 drivers/staging/rtl8723bs/os_dep/mlme_linux.c
Signature · 1 line
2.50.1
PATCH v2 1/8 staging: rtl8723bs: remove wrapper rtw_os_indicate_scan_done
The function rtw_os_indicate_scan_done is just a wrapper around rtw_cfg80211_indicate_scan_done. Use rtw_cfg80211_indicate_scan_done directly and remove the wrapper.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +- drivers/staging/rtl8723bs/include/mlme_osdep.h | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +1 -1
@@ -909,7 +909,7 @@ void rtw_indicate_disconnect(struct adapter *padapter) inline void rtw_indicate_scan_done(struct adapter *padapter, bool aborted) { - rtw_os_indicate_scan_done(padapter, aborted); + rtw_cfg80211_indicate_scan_done(padapter, aborted); if ((!adapter_to_pwrctl(padapter)->bInSuspend) && (!check_fwstate(&padapter->mlmepriv,
drivers/staging/rtl8723bs/include/mlme_osdep.h +0 -1
@@ -11,7 +11,6 @@extern void rtw_init_mlme_timer (struct adapter *padapter);extern void rtw_os_indicate_disconnect (struct adapter *adapter);extern void rtw_os_indicate_connect (struct adapter *adapter); -void rtw_os_indicate_scan_done (struct adapter *padapter,bool aborted);extern void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie);void rtw_reset_securitypriv (struct adapter *adapter);
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -5
@@ -53,11 +53,6 @@ void rtw_os_indicate_connect(struct adapter *adapter)rtw_signal_process (adapter->pid[2 ],SIGALRM ); } -void rtw_os_indicate_scan_done (struct adapter *padapter,bool aborted) -{ -rtw_cfg80211_indicate_scan_done (padapter, aborted); -} -static struct rt_pmkid_list backupPMKIDList[NUM_PMKID_CACHE ];void rtw_reset_securitypriv (struct adapter *adapter) {
Signature · 1 line
2.50.1
PATCH v2 2/8 staging: rtl8723bs: move init_mlme_ext_timer to core/rtw_mlme_ext.c
In reply to Michael StraubeMove 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.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 9 +++++++++ drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 8 -------- 3 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +9 -0
@@ -374,6 +374,15 @@ static u8 init_channel_set(struct adapter *padapter, u8 ChannelPlan, struct rt_creturn 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;
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +0 -1
@@ -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);
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -8
@@ -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 ); -}
Signature · 1 line
2.50.1
PATCH v2 3/8 staging: rtl8723bs: move rtw_init_mlme_timer to core/rtw_mlme.c
In reply to Michael StraubeMove the function rtw_init_mlme_timer from os_dep/mlme_linux.c to core/rtw_mlme.c to reduce code in the os_dep directory.
---
v1 -> v2: add back accidently removed tabs
drivers/staging/rtl8723bs/core/rtw_mlme.c | 30 +++++++++++++++++++ .../staging/rtl8723bs/include/mlme_osdep.h | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 30 ------------------- 3 files changed, 30 insertions(+), 31 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +30 -0
@@ -9,6 +9,36 @@#include <hal_btcoex.h> #include <linux/jiffies.h> +static void _dynamic_check_timer_handler (struct timer_list *t) +{ +struct adapter *adapter = +timer_container_of (adapter, t, mlmepriv.dynamic_chk_timer); + +rtw_dynamic_check_timer_handler (adapter); + +_set_timer (&adapter->mlmepriv.dynamic_chk_timer,2000 ); +} + +static void _rtw_set_scan_deny_timer_hdl (struct timer_list *t) +{ +struct adapter *adapter = +timer_container_of (adapter, t, mlmepriv.set_scan_deny_timer); + +rtw_clear_scan_deny (adapter); +} + +static void rtw_init_mlme_timer (struct adapter *padapter) +{ +struct mlme_priv *pmlmepriv = &padapter->mlmepriv; + +timer_setup (&pmlmepriv->assoc_timer, _rtw_join_timeout_handler,0 ); +timer_setup (&pmlmepriv->scan_to_timer, rtw_scan_timeout_handler,0 ); +timer_setup (&pmlmepriv->dynamic_chk_timer, + _dynamic_check_timer_handler,0 ); +timer_setup (&pmlmepriv->set_scan_deny_timer, + _rtw_set_scan_deny_timer_hdl,0 ); +} +int rtw_init_mlme_priv (struct adapter *padapter) {int i;
drivers/staging/rtl8723bs/include/mlme_osdep.h +0 -1
@@ -8,7 +8,6 @@#define __MLME_OSDEP_H_ -extern void rtw_init_mlme_timer (struct adapter *padapter);extern void rtw_os_indicate_disconnect (struct adapter *adapter);extern void rtw_os_indicate_connect (struct adapter *adapter);extern void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie);
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -30
@@ -6,36 +6,6 @@******************************************************************************/ #include <drv_types.h> -static void _dynamic_check_timer_handler (struct timer_list *t) -{ -struct adapter *adapter = -timer_container_of (adapter, t, mlmepriv.dynamic_chk_timer); - -rtw_dynamic_check_timer_handler (adapter); - -_set_timer (&adapter->mlmepriv.dynamic_chk_timer,2000 ); -} - -static void _rtw_set_scan_deny_timer_hdl (struct timer_list *t) -{ -struct adapter *adapter = -timer_container_of (adapter, t, mlmepriv.set_scan_deny_timer); - -rtw_clear_scan_deny (adapter); -} - -void rtw_init_mlme_timer (struct adapter *padapter) -{ -struct mlme_priv *pmlmepriv = &padapter->mlmepriv; - -timer_setup (&pmlmepriv->assoc_timer, _rtw_join_timeout_handler,0 ); -timer_setup (&pmlmepriv->scan_to_timer, rtw_scan_timeout_handler,0 ); -timer_setup (&pmlmepriv->dynamic_chk_timer, - _dynamic_check_timer_handler,0 ); -timer_setup (&pmlmepriv->set_scan_deny_timer, - _rtw_set_scan_deny_timer_hdl,0 ); -} -void rtw_os_indicate_connect (struct adapter *adapter) {struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
Signature · 1 line
2.50.1
PATCH v2 4/8 staging: rtl8723bs: remove wrapper init_addba_retry_timer
In reply to Michael StraubeThe function init_addba_retry_timer is just a wrapper around timer_setup. Remove the wrapper and use timer_setup directly.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 2 +- drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-)
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c +1 -1
@@ -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++) {
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +0 -1
@@ -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); */
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -6
@@ -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 ); -} -
Signature · 1 line
2.50.1
PATCH v2 5/8 staging: rtl8723bs: merge rtw_os_indicate_connect into rtw_indicate_connect
In reply to Michael StraubeMerge the functionality of the function rtw_os_indicate_connect into the function rtw_indicate_connect to reduce code in the os_dep directory.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/core/rtw_mlme.c | 13 +++++++++++-- drivers/staging/rtl8723bs/include/mlme_osdep.h | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 17 ----------------- 3 files changed, 11 insertions(+), 20 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +11 -2
@@ -901,12 +901,21 @@ void rtw_indicate_connect(struct adapter *padapter)set_fwstate (pmlmepriv, _FW_LINKED); -rtw_os_indicate_connect (padapter); +if (check_fwstate (pmlmepriv,WIFI_ADHOC_MASTER_STATE ) || +check_fwstate (pmlmepriv,WIFI_ADHOC_STATE )) { +rtw_cfg80211_ibss_indicate_connect (padapter); + }else { +rtw_cfg80211_indicate_connect (padapter); + } + +netif_carrier_on (padapter->pnetdev); + +if (padapter->pid[2 ] !=0 ) +rtw_signal_process (padapter->pid[2 ],SIGALRM ); }rtw_set_to_roam (padapter,0 );rtw_set_scan_deny (padapter,3000 ); - }/*
drivers/staging/rtl8723bs/include/mlme_osdep.h +0 -1
@@ -9,7 +9,6 @@extern void rtw_os_indicate_disconnect (struct adapter *adapter); -extern void rtw_os_indicate_connect (struct adapter *adapter);extern void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie);void rtw_reset_securitypriv (struct adapter *adapter);
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -17
@@ -6,23 +6,6 @@******************************************************************************/ #include <drv_types.h> -void rtw_os_indicate_connect (struct adapter *adapter) -{ -struct mlme_priv *pmlmepriv = &(adapter->mlmepriv); - -if ((check_fwstate (pmlmepriv,WIFI_ADHOC_MASTER_STATE ) == true) || - (check_fwstate (pmlmepriv,WIFI_ADHOC_STATE ) == true)) { -rtw_cfg80211_ibss_indicate_connect (adapter); - }else { -rtw_cfg80211_indicate_connect (adapter); - } - -netif_carrier_on (adapter->pnetdev); - -if (adapter->pid[2 ] !=0 ) -rtw_signal_process (adapter->pid[2 ],SIGALRM ); -} -static struct rt_pmkid_list backupPMKIDList[NUM_PMKID_CACHE ];void rtw_reset_securitypriv (struct adapter *adapter) {
Signature · 1 line
2.50.1
PATCH v2 6/8 staging: rtl8723bs: merge rtw_os_indicate_disconnect into rtw_indicate_disconnect
In reply to Michael StraubeMerge the functionality of the function rtw_os_indicate_disconnect into the function rtw_indicate_disconnect to reduce code in the os_dep directory.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/core/rtw_mlme.c | 12 ++++++++---- drivers/staging/rtl8723bs/include/mlme_osdep.h | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 12 ------------ 3 files changed, 8 insertions(+), 17 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +8 -4
@@ -930,10 +930,14 @@ void rtw_indicate_disconnect(struct adapter *padapter)if (rtw_to_roam (padapter) >0 )_clr_fwstate_ (pmlmepriv, _FW_LINKED); -if (check_fwstate (&padapter->mlmepriv, _FW_LINKED) - || (rtw_to_roam (padapter) <=0 ) - ) { -rtw_os_indicate_disconnect (padapter); +if (check_fwstate (&padapter->mlmepriv, _FW_LINKED) ||rtw_to_roam (padapter) <=0 ) { +/* Do it first for tx broadcast pkt after disconnection issue! */ +netif_carrier_off (padapter->pnetdev); + +rtw_cfg80211_indicate_disconnect (padapter); + +/* modify for CONFIG_IEEE80211W, none 11w also can use the same command */ +rtw_reset_securitypriv_cmd (padapter);/* set ips_deny_time to avoid enter IPS before LPS leave */ rtw_set_ips_deny (padapter,3000 );
drivers/staging/rtl8723bs/include/mlme_osdep.h +0 -1
@@ -8,7 +8,6 @@#define __MLME_OSDEP_H_ -extern void rtw_os_indicate_disconnect (struct adapter *adapter);extern void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie);void rtw_reset_securitypriv (struct adapter *adapter);
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -12
@@ -66,18 +66,6 @@ void rtw_reset_securitypriv(struct adapter *adapter)spin_unlock_bh (&adapter->security_key_mutex); } -void rtw_os_indicate_disconnect (struct adapter *adapter) -{ -/* struct rt_pmkid_list backupPMKIDList[ NUM_PMKID_CACHE ]; */ - -netif_carrier_off (adapter->pnetdev);/* Do it first for tx broadcast pkt after disconnection issue! */ - -rtw_cfg80211_indicate_disconnect (adapter); - -/* modify for CONFIG_IEEE80211W, none 11w also can use the same command */ -rtw_reset_securitypriv_cmd (adapter); -} -void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie) {uint len;
Signature · 1 line
2.50.1
PATCH v2 7/8 staging: rtl8723bs: move rtw_report_sec_ie to core/rtw_mlme.c
In reply to Michael StraubeMove the function rtw_report_sec_ie from os_dep/mlme_linux.c to core/rtw_mlme.c to reduce code in the os_dep directory.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/core/rtw_mlme.c | 34 +++++++++++++++++++ .../staging/rtl8723bs/include/mlme_osdep.h | 2 -- drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 34 ------------------- 3 files changed, 34 insertions(+), 36 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +34 -0
@@ -2033,6 +2033,40 @@ static int rtw_append_pmkid(struct adapter *Adapter, int iEntry, u8 *ie, uint iereturn ie_len; } +static void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie) +{ +uint len; +u8 *buff, *p, i; +union iwreq_data wrqu; + + buff =NULL ; +if (authmode ==WLAN_EID_VENDOR_SPECIFIC ) { + buff =rtw_zmalloc (IW_CUSTOM_MAX ); +if (!buff) +return ; + + p = buff; + + p +=scnprintf (p,IW_CUSTOM_MAX - (p - buff),"ASSOCINFO(ReqIEs =" ); + + len = sec_ie[1 ] +2 ; + len = (len <IW_CUSTOM_MAX ) ? len :IW_CUSTOM_MAX ; + +for (i =0 ; i < len; i++) + p +=scnprintf (p,IW_CUSTOM_MAX - (p - buff),"%02x" , sec_ie[i]); + + p +=scnprintf (p,IW_CUSTOM_MAX - (p - buff),")" ); + +memset (&wrqu,0 ,sizeof (wrqu)); + + wrqu.data.length = p - buff; + + wrqu.data.length = (wrqu.data.length <IW_CUSTOM_MAX ) ? wrqu.data.length :IW_CUSTOM_MAX ; + +kfree (buff); + } +} +signed int rtw_restruct_sec_ie (struct adapter *adapter,u8 *in_ie,u8 *out_ie,uint in_len) {u8 authmode =0x0 ;
drivers/staging/rtl8723bs/include/mlme_osdep.h +0 -2
@@ -8,8 +8,6 @@#define __MLME_OSDEP_H_ -extern void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie); -void rtw_reset_securitypriv (struct adapter *adapter);#endif /* _MLME_OSDEP_H_ */
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -34
@@ -65,37 +65,3 @@ void rtw_reset_securitypriv(struct adapter *adapter)/* add for CONFIG_IEEE80211W, none 11w also can use */ spin_unlock_bh (&adapter->security_key_mutex); } - -void rtw_report_sec_ie (struct adapter *adapter,u8 authmode,u8 *sec_ie) -{ -uint len; -u8 *buff, *p, i; -union iwreq_data wrqu; - - buff =NULL ; -if (authmode ==WLAN_EID_VENDOR_SPECIFIC ) { - buff =rtw_zmalloc (IW_CUSTOM_MAX ); -if (!buff) -return ; - - p = buff; - - p +=scnprintf (p,IW_CUSTOM_MAX - (p - buff),"ASSOCINFO(ReqIEs =" ); - - len = sec_ie[1 ] +2 ; - len = (len <IW_CUSTOM_MAX ) ? len :IW_CUSTOM_MAX ; - -for (i =0 ; i < len; i++) - p +=scnprintf (p,IW_CUSTOM_MAX - (p - buff),"%02x" , sec_ie[i]); - - p +=scnprintf (p,IW_CUSTOM_MAX - (p - buff),")" ); - -memset (&wrqu,0 ,sizeof (wrqu)); - - wrqu.data.length = p - buff; - - wrqu.data.length = (wrqu.data.length <IW_CUSTOM_MAX ) ? wrqu.data.length :IW_CUSTOM_MAX ; - -kfree (buff); - } -}
Signature · 1 line
2.50.1
PATCH v2 8/8 staging: rtl8723bs: move rtw_reset_securitypriv to core/rtw_mlme.c
In reply to Michael StraubeMove the function rtw_reset_securitypriv from os_dep/mlme_linux.c to core/rtw_mlme.c to reduce code in the os_dep directory.
The file os_dep/mlme_linux.c is finally empty now and we can remove it.
---
v1 -> v2: no changes
drivers/staging/rtl8723bs/Makefile | 1 - drivers/staging/rtl8723bs/core/rtw_mlme.c | 60 +++++++++++++++++ drivers/staging/rtl8723bs/include/drv_types.h | 1 - .../staging/rtl8723bs/include/mlme_osdep.h | 13 ---- drivers/staging/rtl8723bs/include/rtw_mlme.h | 1 + drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 67 ------------------- 6 files changed, 61 insertions(+), 82 deletions(-) delete mode 100644 drivers/staging/rtl8723bs/include/mlme_osdep.h delete mode 100644 drivers/staging/rtl8723bs/os_dep/mlme_linux.c
drivers/staging/rtl8723bs/Makefile +0 -1
@@ -48,7 +48,6 @@ r8723bs-y = \ hal/HalHWImg8723B_RF.o \ hal/HalPhyRf_8723B.o \ os_dep/ioctl_cfg80211.o \ - os_dep/mlme_linux.o \ os_dep/osdep_service.o \ os_dep/os_intfs.o \ os_dep/recv_linux.o \
drivers/staging/rtl8723bs/core/rtw_mlme.c +60 -0
66 lines not on this page · raw message
drivers/staging/rtl8723bs/include/drv_types.h +0 -1
@@ -40,7 +40,6 @@#include <rtw_qos.h> #include <rtw_pwrctrl.h> #include <rtw_mlme.h> -#include <mlme_osdep.h> #include <rtw_io.h> #include <rtw_ioctl_set.h> #include <osdep_intf.h>
drivers/staging/rtl8723bs/include/mlme_osdep.h deleted +0 -13
@@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/****************************************************************************** -* -* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. -* -******************************************************************************/ -#ifndef __MLME_OSDEP_H_ -#define __MLME_OSDEP_H_ - - -void rtw_reset_securitypriv (struct adapter *adapter); - -#endif /* _MLME_OSDEP_H_ */
drivers/staging/rtl8723bs/include/rtw_mlme.h +1 -0
@@ -395,5 +395,6 @@ u8 rtw_to_roam(struct adapter *adapter);int rtw_select_roaming_candidate (struct mlme_priv *pmlmepriv);void rtw_sta_media_status_rpt (struct adapter *adapter,struct sta_info *psta,u32 mstatus); +void rtw_reset_securitypriv (struct adapter *adapter);#endif /* __RTL871X_MLME_H_ */
drivers/staging/rtl8723bs/os_dep/mlme_linux.c deleted +0 -67
67 lines not on this page · raw message
Signature · 1 line
2.50.1
Hi Michael,
Quoted 8 lines · Michael Straube
This series moves/merges the functions/functionality of
os_dep/mlme_linux.cinto the corresponding parts of the driver in the core directory to reduce "os dependent" code.The patches have been compile-tested only due to lack of hardware.
v1 -> v2: added back accidently removed tabs in patch 3/8
Quoted 11 lines
Michael Straube (8):
staging: rtl8723bs: remove wrapperrtw_os_indicate_scan_done
staging: rtl8723bs: moveinit_mlme_ext_timertocore/rtw_mlme_ext.c
staging: rtl8723bs: movertw_init_mlme_timertocore/rtw_mlme.c
staging: rtl8723bs: remove wrapperinit_addba_retry_timer
staging: rtl8723bs: mergertw_os_indicate_connectinto
rtw_indicate_connect
staging: rtl8723bs: mergertw_os_indicate_disconnectinto
rtw_indicate_disconnect
staging: rtl8723bs: movertw_report_sec_ietocore/rtw_mlme.c
staging: rtl8723bs: movertw_reset_securityprivtocore/rtw_mlme.c
Thank you for your continued work on improving the rtl8723bs driver.
I've given these patches a test-spin on a tablet with a rtl8723bs wifi module (on top of your previous patches).
The patches work and they look good to me:
for the series.
Regards,
Hans