mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
staging: rtl8723bs: merge rtw_os_indicate_disconnect into rtw_indicate_disconnect
Merge the functionality of the function rtw_os_indicate_disconnect into the function rtw_indicate_disconnect 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-7-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ff059535aa
commit
7bb7804420
|
|
@ -932,10 +932,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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user