aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvinash Patil2013-02-25 18:01:34 -0600
committerJohn W. Linville2013-02-27 13:12:52 -0600
commit3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30 (patch)
treecf082d8d6cf4f6c989f1b7fc8df0a02c5e91a4c2
parent3412f2f086ea7531378fabe756bd4a1109994ae6 (diff)
downloadam43-linux-kernel-3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30.tar.gz
am43-linux-kernel-3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30.tar.xz
am43-linux-kernel-3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30.zip
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>
-rw-r--r--drivers/net/wireless/mwifiex/pcie.c2
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)
302 i++; 302 i++;
303 usleep_range(10, 20); 303 usleep_range(10, 20);
304 /* 50ms max wait */ 304 /* 50ms max wait */
305 if (i == 50000) 305 if (i == 5000)
306 break; 306 break;
307 } 307 }
308 308