Commit 0da46e6b authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: r8188eu: Replace wrappers ODM_sleep_ms() and rtw_msleep_os() with a simple msleep

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c01fb496
...@@ -104,7 +104,7 @@ _func_enter_; ...@@ -104,7 +104,7 @@ _func_enter_;
_cancel_workitem_sync(&pevtpriv->c2h_wk); _cancel_workitem_sync(&pevtpriv->c2h_wk);
while (pevtpriv->c2h_wk_alive) while (pevtpriv->c2h_wk_alive)
rtw_msleep_os(10); msleep(10);
while (!rtw_cbuf_empty(pevtpriv->c2h_queue)) { while (!rtw_cbuf_empty(pevtpriv->c2h_queue)) {
void *c2h = rtw_cbuf_pop(pevtpriv->c2h_queue); void *c2h = rtw_cbuf_pop(pevtpriv->c2h_queue);
...@@ -1966,7 +1966,7 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter) ...@@ -1966,7 +1966,7 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter)
rtw_hal_get_hwreg(padapter, HW_VAR_CHK_HI_QUEUE_EMPTY, &val); rtw_hal_get_hwreg(padapter, HW_VAR_CHK_HI_QUEUE_EMPTY, &val);
while (!val) { while (!val) {
rtw_msleep_os(100); msleep(100);
cnt++; cnt++;
......
...@@ -1060,7 +1060,7 @@ void rtw_scan_abort(struct adapter *adapter) ...@@ -1060,7 +1060,7 @@ void rtw_scan_abort(struct adapter *adapter)
if (adapter->bDriverStopped || adapter->bSurpriseRemoved) if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
break; break;
DBG_88E(FUNC_NDEV_FMT"fw_state=_FW_UNDER_SURVEY!\n", FUNC_NDEV_ARG(adapter->pnetdev)); DBG_88E(FUNC_NDEV_FMT"fw_state=_FW_UNDER_SURVEY!\n", FUNC_NDEV_ARG(adapter->pnetdev));
rtw_msleep_os(20); msleep(20);
} }
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) { if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
if (!adapter->bDriverStopped && !adapter->bSurpriseRemoved) if (!adapter->bDriverStopped && !adapter->bSurpriseRemoved)
......
...@@ -3833,7 +3833,7 @@ int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt, int wait ...@@ -3833,7 +3833,7 @@ int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt, int wait
break; break;
if (i < try_cnt && wait_ms > 0 && ret == _FAIL) if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
rtw_msleep_os(wait_ms); msleep(wait_ms);
} while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0))); } while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));
if (ret != _FAIL) { if (ret != _FAIL) {
...@@ -4979,7 +4979,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, ...@@ -4979,7 +4979,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid,
break; break;
if (i < try_cnt && wait_ms > 0 && ret == _FAIL) if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
rtw_msleep_os(wait_ms); msleep(wait_ms);
} while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0))); } while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));
...@@ -5706,7 +5706,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow ...@@ -5706,7 +5706,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
break; break;
if (i < try_cnt && wait_ms > 0 && ret == _FAIL) if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
rtw_msleep_os(wait_ms); msleep(wait_ms);
} while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0))); } while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));
if (ret != _FAIL) { if (ret != _FAIL) {
...@@ -5829,7 +5829,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int ...@@ -5829,7 +5829,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int
break; break;
if (i < try_cnt && wait_ms > 0 && ret == _FAIL) if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
rtw_msleep_os(wait_ms); msleep(wait_ms);
} while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0))); } while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));
if (ret != _FAIL) { if (ret != _FAIL) {
...@@ -5941,7 +5941,7 @@ int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int ...@@ -5941,7 +5941,7 @@ int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int
break; break;
if (i < try_cnt && wait_ms > 0 && ret == _FAIL) if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
rtw_msleep_os(wait_ms); msleep(wait_ms);
} while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0))); } while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));
if (ret != _FAIL) { if (ret != _FAIL) {
...@@ -6430,7 +6430,7 @@ void site_survey(struct adapter *padapter) ...@@ -6430,7 +6430,7 @@ void site_survey(struct adapter *padapter)
if (pmlmeext->sitesurvey_res.ssid[i].SsidLength) { if (pmlmeext->sitesurvey_res.ssid[i].SsidLength) {
/* todo: to issue two probe req??? */ /* todo: to issue two probe req??? */
issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]), NULL); issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]), NULL);
/* rtw_msleep_os(SURVEY_TO>>1); */ /* msleep(SURVEY_TO>>1); */
issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]), NULL); issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]), NULL);
} }
} }
...@@ -6438,7 +6438,7 @@ void site_survey(struct adapter *padapter) ...@@ -6438,7 +6438,7 @@ void site_survey(struct adapter *padapter)
if (pmlmeext->sitesurvey_res.scan_mode == SCAN_ACTIVE) { if (pmlmeext->sitesurvey_res.scan_mode == SCAN_ACTIVE) {
/* todo: to issue two probe req??? */ /* todo: to issue two probe req??? */
issue_probereq(padapter, NULL, NULL); issue_probereq(padapter, NULL, NULL);
/* rtw_msleep_os(SURVEY_TO>>1); */ /* msleep(SURVEY_TO>>1); */
issue_probereq(padapter, NULL, NULL); issue_probereq(padapter, NULL, NULL);
} }
} }
...@@ -8372,7 +8372,7 @@ u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf) ...@@ -8372,7 +8372,7 @@ u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf)
return H2C_SUCCESS; return H2C_SUCCESS;
if ((pstapriv->tim_bitmap&BIT(0)) && (psta_bmc->sleepq_len > 0)) { if ((pstapriv->tim_bitmap&BIT(0)) && (psta_bmc->sleepq_len > 0)) {
rtw_msleep_os(10);/* 10ms, ATIM(HIQ) Windows */ msleep(10);/* 10ms, ATIM(HIQ) Windows */
spin_lock_bh(&psta_bmc->sleep_q.lock); spin_lock_bh(&psta_bmc->sleep_q.lock);
xmitframe_phead = get_list_head(&psta_bmc->sleep_q); xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
......
...@@ -609,7 +609,7 @@ static int mp_xmit_packet_thread(void *context) ...@@ -609,7 +609,7 @@ static int mp_xmit_packet_thread(void *context)
padapter->bDriverStopped) { padapter->bDriverStopped) {
goto exit; goto exit;
} else { } else {
rtw_msleep_os(1); msleep(1);
continue; continue;
} }
} }
...@@ -915,7 +915,7 @@ u32 mp_query_psd(struct adapter *pAdapter, u8 *data) ...@@ -915,7 +915,7 @@ u32 mp_query_psd(struct adapter *pAdapter, u8 *data)
i++; i++;
} }
rtw_msleep_os(100); msleep(100);
return strlen(data)+1; return strlen(data)+1;
} }
......
...@@ -690,7 +690,7 @@ _func_enter_; ...@@ -690,7 +690,7 @@ _func_enter_;
if (pmp_priv->tx.stop == 0) { if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1; pmp_priv->tx.stop = 1;
DBG_88E("%s: pkt tx is running...\n", __func__); DBG_88E("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5); msleep(5);
} }
pmp_priv->tx.stop = 0; pmp_priv->tx.stop = 0;
pmp_priv->tx.count = 1; pmp_priv->tx.count = 1;
...@@ -725,7 +725,7 @@ _func_enter_; ...@@ -725,7 +725,7 @@ _func_enter_;
if (pmp_priv->tx.stop == 0) { if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1; pmp_priv->tx.stop = 1;
DBG_88E("%s: pkt tx is running...\n", __func__); DBG_88E("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5); msleep(5);
} }
pmp_priv->tx.stop = 0; pmp_priv->tx.stop = 0;
pmp_priv->tx.count = 1; pmp_priv->tx.count = 1;
...@@ -760,7 +760,7 @@ _func_enter_; ...@@ -760,7 +760,7 @@ _func_enter_;
if (pmp_priv->tx.stop == 0) { if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1; pmp_priv->tx.stop = 1;
DBG_88E("%s: pkt tx is running...\n", __func__); DBG_88E("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5); msleep(5);
} }
pmp_priv->tx.stop = 0; pmp_priv->tx.stop = 0;
pmp_priv->tx.count = 1; pmp_priv->tx.count = 1;
......
...@@ -569,7 +569,7 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal ...@@ -569,7 +569,7 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal
if (pwrpriv->ps_processing) { if (pwrpriv->ps_processing) {
DBG_88E("%s wait ps_processing...\n", __func__); DBG_88E("%s wait ps_processing...\n", __func__);
while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000) while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000)
rtw_msleep_os(10); msleep(10);
if (pwrpriv->ps_processing) if (pwrpriv->ps_processing)
DBG_88E("%s wait ps_processing timeout\n", __func__); DBG_88E("%s wait ps_processing timeout\n", __func__);
else else
......
...@@ -153,7 +153,7 @@ _func_enter_; ...@@ -153,7 +153,7 @@ _func_enter_;
/* Tx buf allocation may fail sometimes, so sleep and retry. */ /* Tx buf allocation may fail sometimes, so sleep and retry. */
res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ)); res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ));
if (res == _FAIL) { if (res == _FAIL) {
rtw_msleep_os(10); msleep(10);
res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ)); res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ));
if (res == _FAIL) { if (res == _FAIL) {
goto exit; goto exit;
...@@ -691,7 +691,7 @@ _func_enter_; ...@@ -691,7 +691,7 @@ _func_enter_;
} else { } else {
if (_rtw_memcmp(&stainfo->dot11tkiptxmickey.skey[0], null_key, 16) == true) { if (_rtw_memcmp(&stainfo->dot11tkiptxmickey.skey[0], null_key, 16) == true) {
/* DbgPrint("\nxmitframe_addmic:stainfo->dot11tkiptxmickey == 0\n"); */ /* DbgPrint("\nxmitframe_addmic:stainfo->dot11tkiptxmickey == 0\n"); */
/* rtw_msleep_os(10); */ /* msleep(10); */
return _FAIL; return _FAIL;
} }
/* start to calculate the mic code */ /* start to calculate the mic code */
......
...@@ -1258,7 +1258,7 @@ static void phy_LCCalibrate_8188E(struct adapter *adapt, bool is2t) ...@@ -1258,7 +1258,7 @@ static void phy_LCCalibrate_8188E(struct adapter *adapt, bool is2t)
/* 4. Set LC calibration begin bit15 */ /* 4. Set LC calibration begin bit15 */
ODM_SetRFReg(dm_odm, RF_PATH_A, RF_CHNLBW, bMask12Bits, LC_Cal|0x08000); ODM_SetRFReg(dm_odm, RF_PATH_A, RF_CHNLBW, bMask12Bits, LC_Cal|0x08000);
ODM_sleep_ms(100); msleep(100);
/* Restore original situation */ /* Restore original situation */
if ((tmpreg&0x70) != 0) { if ((tmpreg&0x70) != 0) {
......
...@@ -25,7 +25,7 @@ void odm_ConfigRFReg_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr, ...@@ -25,7 +25,7 @@ void odm_ConfigRFReg_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr,
u32 RegAddr) u32 RegAddr)
{ {
if (Addr == 0xffe) { if (Addr == 0xffe) {
ODM_sleep_ms(50); msleep(50);
} else if (Addr == 0xfd) { } else if (Addr == 0xfd) {
ODM_delay_ms(5); ODM_delay_ms(5);
} else if (Addr == 0xfc) { } else if (Addr == 0xfc) {
...@@ -83,7 +83,7 @@ void odm_ConfigBB_PHY_REG_PG_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr, ...@@ -83,7 +83,7 @@ void odm_ConfigBB_PHY_REG_PG_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr,
u32 Bitmask, u32 Data) u32 Bitmask, u32 Data)
{ {
if (Addr == 0xfe) { if (Addr == 0xfe) {
ODM_sleep_ms(50); msleep(50);
} else if (Addr == 0xfd) { } else if (Addr == 0xfd) {
ODM_delay_ms(5); ODM_delay_ms(5);
} else if (Addr == 0xfc) { } else if (Addr == 0xfc) {
...@@ -105,7 +105,7 @@ void odm_ConfigBB_PHY_REG_PG_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr, ...@@ -105,7 +105,7 @@ void odm_ConfigBB_PHY_REG_PG_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr,
void odm_ConfigBB_PHY_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr, u32 Bitmask, u32 Data) void odm_ConfigBB_PHY_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr, u32 Bitmask, u32 Data)
{ {
if (Addr == 0xfe) { if (Addr == 0xfe) {
ODM_sleep_ms(50); msleep(50);
} else if (Addr == 0xfd) { } else if (Addr == 0xfd) {
ODM_delay_ms(5); ODM_delay_ms(5);
} else if (Addr == 0xfc) { } else if (Addr == 0xfc) {
......
...@@ -162,11 +162,6 @@ void ODM_delay_us(u32 us) ...@@ -162,11 +162,6 @@ void ODM_delay_us(u32 us)
rtw_udelay_os(us); rtw_udelay_os(us);
} }
void ODM_sleep_ms(u32 ms)
{
rtw_msleep_os(ms);
}
void ODM_sleep_us(u32 us) void ODM_sleep_us(u32 us)
{ {
rtw_usleep_os(us); rtw_usleep_os(us);
......
...@@ -581,7 +581,7 @@ u8 Hal_ReadRFThermalMeter(struct adapter *pAdapter) ...@@ -581,7 +581,7 @@ u8 Hal_ReadRFThermalMeter(struct adapter *pAdapter)
void Hal_GetThermalMeter(struct adapter *pAdapter, u8 *value) void Hal_GetThermalMeter(struct adapter *pAdapter, u8 *value)
{ {
Hal_TriggerRFThermalMeter(pAdapter); Hal_TriggerRFThermalMeter(pAdapter);
rtw_msleep_os(1000); msleep(1000);
*value = Hal_ReadRFThermalMeter(pAdapter); *value = Hal_ReadRFThermalMeter(pAdapter);
} }
...@@ -614,7 +614,7 @@ void Hal_SetSingleCarrierTx(struct adapter *pAdapter, u8 bStart) ...@@ -614,7 +614,7 @@ void Hal_SetSingleCarrierTx(struct adapter *pAdapter, u8 bStart)
write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMContinueTx, bDisable); write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMContinueTx, bDisable);
write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleCarrier, bDisable); write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleCarrier, bDisable);
write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleTone, bDisable); write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleTone, bDisable);
rtw_msleep_os(10); msleep(10);
/* BB Reset */ /* BB Reset */
write_bbreg(pAdapter, rPMAC_Reset, bBBResetB, 0x0); write_bbreg(pAdapter, rPMAC_Reset, bBBResetB, 0x0);
...@@ -832,7 +832,7 @@ void Hal_SetOFDMContinuousTx(struct adapter *pAdapter, u8 bStart) ...@@ -832,7 +832,7 @@ void Hal_SetOFDMContinuousTx(struct adapter *pAdapter, u8 bStart)
write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleCarrier, bDisable); write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleCarrier, bDisable);
write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleTone, bDisable); write_bbreg(pAdapter, rOFDM1_LSTF, bOFDMSingleTone, bDisable);
/* Delay 10 ms */ /* Delay 10 ms */
rtw_msleep_os(10); msleep(10);
/* BB Reset */ /* BB Reset */
write_bbreg(pAdapter, rPMAC_Reset, bBBResetB, 0x0); write_bbreg(pAdapter, rPMAC_Reset, bBBResetB, 0x0);
write_bbreg(pAdapter, rPMAC_Reset, bBBResetB, 0x1); write_bbreg(pAdapter, rPMAC_Reset, bBBResetB, 0x1);
......
...@@ -141,8 +141,6 @@ void ODM_delay_ms(u32 ms); ...@@ -141,8 +141,6 @@ void ODM_delay_ms(u32 ms);
void ODM_delay_us(u32 us); void ODM_delay_us(u32 us);
void ODM_sleep_ms(u32 ms);
void ODM_sleep_us(u32 us); void ODM_sleep_us(u32 us);
void ODM_SetTimer(struct odm_dm_struct *pDM_Odm, struct timer_list *pTimer, void ODM_SetTimer(struct odm_dm_struct *pDM_Odm, struct timer_list *pTimer,
......
...@@ -275,7 +275,6 @@ s32 rtw_get_time_interval_ms(u32 start, u32 end); ...@@ -275,7 +275,6 @@ s32 rtw_get_time_interval_ms(u32 start, u32 end);
void rtw_sleep_schedulable(int ms); void rtw_sleep_schedulable(int ms);
void rtw_msleep_os(int ms);
void rtw_usleep_os(int us); void rtw_usleep_os(int us);
u32 rtw_atoi(u8 *s); u32 rtw_atoi(u8 *s);
......
...@@ -1431,7 +1431,7 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a, ...@@ -1431,7 +1431,7 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
wait_status = _FW_UNDER_SURVEY | _FW_UNDER_LINKING; wait_status = _FW_UNDER_SURVEY | _FW_UNDER_LINKING;
while (check_fwstate(pmlmepriv, wait_status)) { while (check_fwstate(pmlmepriv, wait_status)) {
rtw_msleep_os(30); msleep(30);
cnt++; cnt++;
if (cnt > wait_for_surveydone) if (cnt > wait_for_surveydone)
break; break;
...@@ -2588,7 +2588,7 @@ static int rtw_get_ap_info(struct net_device *dev, ...@@ -2588,7 +2588,7 @@ static int rtw_get_ap_info(struct net_device *dev,
} }
while ((check_fwstate(pmlmepriv, (_FW_UNDER_SURVEY|_FW_UNDER_LINKING)))) { while ((check_fwstate(pmlmepriv, (_FW_UNDER_SURVEY|_FW_UNDER_LINKING)))) {
rtw_msleep_os(30); msleep(30);
cnt++; cnt++;
if (cnt > 100) if (cnt > 100)
break; break;
...@@ -7039,7 +7039,7 @@ static int rtw_mp_ctx(struct net_device *dev, ...@@ -7039,7 +7039,7 @@ static int rtw_mp_ctx(struct net_device *dev,
struct mp_priv *pmp_priv = &padapter->mppriv; struct mp_priv *pmp_priv = &padapter->mppriv;
if (pmp_priv->tx.stop == 0) { if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1; pmp_priv->tx.stop = 1;
rtw_msleep_os(5); msleep(5);
} }
pmp_priv->tx.stop = 0; pmp_priv->tx.stop = 0;
pmp_priv->tx.count = 1; pmp_priv->tx.count = 1;
...@@ -7254,7 +7254,7 @@ static int rtw_mp_reset_stats(struct net_device *dev, ...@@ -7254,7 +7254,7 @@ static int rtw_mp_reset_stats(struct net_device *dev,
/* reset phy counter */ /* reset phy counter */
write_bbreg(padapter, 0xf14, BIT16, 0x1); write_bbreg(padapter, 0xf14, BIT16, 0x1);
rtw_msleep_os(10); msleep(10);
write_bbreg(padapter, 0xf14, BIT16, 0x0); write_bbreg(padapter, 0xf14, BIT16, 0x0);
return 0; return 0;
...@@ -7531,7 +7531,7 @@ static int rtw_mp_get(struct net_device *dev, ...@@ -7531,7 +7531,7 @@ static int rtw_mp_get(struct net_device *dev,
break; break;
} }
rtw_msleep_os(10); /* delay 5ms for sending pkt before exit adb shell operation */ msleep(10); /* delay 5ms for sending pkt before exit adb shell operation */
return 0; return 0;
} }
......
...@@ -245,11 +245,6 @@ void rtw_sleep_schedulable(int ms) ...@@ -245,11 +245,6 @@ void rtw_sleep_schedulable(int ms)
return; return;
} }
void rtw_msleep_os(int ms)
{
msleep((unsigned int)ms);
}
void rtw_usleep_os(int us) void rtw_usleep_os(int us)
{ {
if (1 < (us/1000)) if (1 < (us/1000))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment