[PATCH 4/9] staging: rtl8723bs: replace msleep with usleep_range in rtw_xmit.c
From: Khushal Chitturi
Date: Sun Jan 11 2026 - 13:37:06 EST
Replace msleep(10) with usleep_range(10000,11000) during xmit
buffer reallocation, as msleep() is not suitable for short
delays below 20ms.
Signed-off-by: Khushal Chitturi <khushalchitturi@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c
index b0a16130a883..3767302362d2 100644
--- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
@@ -128,7 +128,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
/* Tx buf allocation may fail sometimes, so sleep and retry. */
res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ), true);
if (res == _FAIL) {
- msleep(10);
+ usleep_range(10000, 11000);
res = rtw_os_xmit_resource_alloc(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ), true);
if (res == _FAIL)
goto exit;
--
2.52.0