Skip to contentSkip to conversation

mwifiex: correct sleep delay counter

PATCH New Bing Zhao 1 participant 1 message Feb 26, 2013 Networking drivers (wireless)

lore
Share & tools
lore

Bing Zhao

author
#0 lore raw

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.

---
 drivers/net/wireless/mwifiex/pcie.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/mwifiex/pcie.c +1 -1
index 75a66b4..dd4d726 100644
@@ -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