From 274ccd7053645a7330229892944a728510446100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bremv=C3=A5g?= Date: Sun, 10 Nov 2019 14:37:07 +0100 Subject: [PATCH] Fix a sleep-in-atomic-context bug in issue_deauth_ex() --- core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 23107e5..1452983 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -9878,7 +9878,7 @@ int issue_deauth_ex(_adapter *padapter, u8 *da, unsigned short reason, int try_c break; if (i < try_cnt && wait_ms > 0 && ret == _FAIL) - rtw_msleep_os(wait_ms); + rtw_mdelay_os(wait_ms); } while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));