diff options
author | Avinash Patil <patila@marvell.com> | 2013-02-25 16:01:34 -0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-03-20 15:03:19 +0000 |
commit | b2650cd39a40cae1c26ebc81f3a0e319e3a587a3 (patch) | |
tree | db830bd41fa325078ab86c1860f39a1eb99eb3c3 | |
parent | deca5de87684d4cc84302dc4460c980ed44ac7a0 (diff) |
mwifiex: correct sleep delay counter
commit 3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30 upstream.
Maximum delay for waking up card is 50 ms. Because of typo in
counter, this delay goes to 500ms. This patch fixes the bug.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/net/wireless/mwifiex/pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index de94244b357..3cf4ecc0c3e 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c @@ -290,7 +290,7 @@ static int mwifiex_pm_wakeup_card(struct mwifiex_adapter *adapter) i++; udelay(10); /* 50ms max wait */ - if (i == 50000) + if (i == 5000) break; } |