mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Replace rtw_get_current_time() with jiffies
Port of c01fb49636b65ceea513c00966c58b8bdb095c8f
This commit is contained in:
@@ -355,7 +355,7 @@ int issue_nulldata_to_TDLS_peer_STA(_adapter *padapter, unsigned char *da, unsig
|
||||
{
|
||||
int ret;
|
||||
int i = 0;
|
||||
systime start = rtw_get_current_time();
|
||||
systime start = jiffies;
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
@@ -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(rtw_get_current_time());
|
||||
ch_sw_time_start = rtw_systime_to_ms(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(rtw_get_current_time()) - ch_sw_time_start;
|
||||
ch_sw_time_spent = rtw_systime_to_ms(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;
|
||||
@@ -2807,7 +2807,7 @@ void rtw_build_tdls_setup_req_ies(_adapter *padapter, struct xmit_frame *pxmitfr
|
||||
/* SNonce */
|
||||
if (pattrib->encrypt) {
|
||||
for (i = 0; i < 8; i++) {
|
||||
time = rtw_get_current_time();
|
||||
time = jiffies;
|
||||
memcpy(&ptdls_sta->SNonce[4 * i], (u8 *)&time, 4);
|
||||
}
|
||||
}
|
||||
@@ -2883,7 +2883,7 @@ void rtw_build_tdls_setup_rsp_ies(_adapter *padapter, struct xmit_frame *pxmitfr
|
||||
|
||||
if (pattrib->encrypt) {
|
||||
for (k = 0; k < 8; k++) {
|
||||
time = rtw_get_current_time();
|
||||
time = jiffies;
|
||||
memcpy(&ptdls_sta->ANonce[4 * k], (u8 *)&time, 4);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user