diff options
author | Avinash Patil <patila@marvell.com> | 2013-02-25 16:01:34 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-27 14:12:52 -0500 |
commit | 3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30 (patch) | |
tree | cf082d8d6cf4f6c989f1b7fc8df0a02c5e91a4c2 /drivers/net/wireless/mwifiex | |
parent | 3412f2f086ea7531378fabe756bd4a1109994ae6 (diff) |
mwifiex: correct sleep delay counter
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: <stable@vger.kernel.org> # 3.2+
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-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 35c79722c36..5c395e2e6a2 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c @@ -302,7 +302,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; } |