diff options
author | Avinash Patil <patila@marvell.com> | 2013-02-25 16:01:34 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-14 11:26:20 -0700 |
commit | 107725a545f73f42d10bb3613d653b229eb2a265 (patch) | |
tree | 81eca6668ce279d5197fa237c26ef1eca49559cc /drivers/net | |
parent | 0ad547e724efb4044804e907a063f9d15f3cc186 (diff) | |
download | linux-stable-107725a545f73f42d10bb3613d653b229eb2a265.tar.gz linux-stable-107725a545f73f42d10bb3613d653b229eb2a265.tar.bz2 linux-stable-107725a545f73f42d10bb3613d653b229eb2a265.zip |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-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 b879e1338a54..0bbea88b35f9 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c @@ -291,7 +291,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; } |