Remove wrappers

Port of 788253860c21f4e40add556d7ed715fefb2bafb3
Port of ace050139cee44d06b06b4c78074b4eb80fb7c0a
This commit is contained in:
Carlos Garces
2021-10-14 22:19:09 +02:00
parent 5ac00c9dc2
commit bb871e7167
13 changed files with 43 additions and 75 deletions

View File

@@ -991,7 +991,7 @@ s32 rtw_tdls_do_ch_sw(_adapter *padapter, struct sta_info *ptdls_sta, u8 chnl_ty
u8 take_care_iqk;
s32 ret = _FAIL;
ch_sw_time_start = rtw_systime_to_ms(jiffies);
ch_sw_time_start = jiffies_to_msecs(jiffies);
/* set mac_id sleep before channel switch */
rtw_hal_macid_sleep(padapter, ptdls_sta->cmn.mac_id);
@@ -1043,7 +1043,7 @@ s32 rtw_tdls_do_ch_sw(_adapter *padapter, struct sta_info *ptdls_sta, u8 chnl_ty
#endif
if (ret == _SUCCESS) {
ch_sw_time_spent = rtw_systime_to_ms(jiffies) - ch_sw_time_start;
ch_sw_time_spent = jiffies_to_msecs(jiffies) - ch_sw_time_start;
if (chnl_type == TDLS_CH_SW_OFF_CHNL) {
if ((u32)ch_switch_time / 1000 > ch_sw_time_spent)
wait_time = (u32)ch_switch_time / 1000 - ch_sw_time_spent;