mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 07:14:03 +00:00
Remove wrappers for atomic operations
These wrappers were useful when this driver had the hooks for Windows, but are no longer needed. Link: https://lore.kernel.org/r/20210802192721.23110-4-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
e8b235e056
commit
d7c3737cd5
@@ -1114,7 +1114,7 @@ phy_SwChnlAndSetBwMode8192E(
|
||||
#ifdef CONFIG_TDLS
|
||||
#ifdef CONFIG_TDLS_CH_SW
|
||||
/* It takes too much time of setting tx power, influence channel switch */
|
||||
if ((ATOMIC_READ(&Adapter->tdlsinfo.chsw_info.chsw_on) == _FALSE))
|
||||
if ((atomic_read(&Adapter->tdlsinfo.chsw_info.chsw_on) == _FALSE))
|
||||
#endif
|
||||
#endif /* CONFIG_TDLS */
|
||||
PHY_SetTxPowerLevel8192E(Adapter, pHalData->current_channel);
|
||||
|
||||
@@ -52,7 +52,7 @@ void interrupt_handler_8192eu(_adapter *padapter, u16 pkt_len, u8 *pbuf)
|
||||
struct tdls_ch_switch *pchsw_info = &padapter->tdlsinfo.chsw_info;
|
||||
u32 last_time = pchsw_info->cur_time;
|
||||
pchsw_info->cur_time = rtw_systime_to_ms(rtw_get_current_time());
|
||||
if ((ATOMIC_READ(&pchsw_info->chsw_on) == _TRUE) &&
|
||||
if ((atomic_read(&pchsw_info->chsw_on) == _TRUE) &&
|
||||
/* Sometimes we receive multiple interrupts in very little time period, use the follow condition test to filter */
|
||||
(pchsw_info->cur_time - last_time > padapter->mlmeextpriv.mlmext_info.bcn_interval - 5) &&
|
||||
(padapter->mlmeextpriv.cur_channel != rtw_get_oper_ch(padapter))) {
|
||||
|
||||
Reference in New Issue
Block a user