mwifiex: correct sleep delay counter
PATCH 1/1 mwifiex: correct sleep delay counter
From: Avinash Patil <[email protected]>
Maximum delay for waking up card is 50 ms. Because of typo in counter, this delay goes to 500ms. This patch fixes the bug.
Cc <[email protected]> # 3.2+
Signed-off-by Avinash Patil <[email protected]>
Signed-off-by Amitkumar Karwar <[email protected]>
Signed-off-by Yogesh Ashok Powar <[email protected]>
Signed-off-by Bing Zhao <[email protected]>
--- drivers/net/wireless/mwifiex/pcie.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/mwifiex/pcie.c +1 -1
@@ -310,7 +310,7 @@ static int mwifiex_pm_wakeup_card(struct mwifiex_adapter *adapter) i++;usleep_range (10 ,20 );/* 50ms max wait */ -if (i ==50000 ) +if (i ==5000 )break ; }
Signature · 1 line
1.7.0.2