CHROMIUMOS: mwifiex: Set timeout for mwifiex_wait_queue_complete
authorPaul Stewart <pstew@chromium.org>
Mon, 15 Oct 2012 22:36:52 +0000 (15:36 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 16 Oct 2012 00:46:59 +0000 (17:46 -0700)
commite0514c155f95de286656a3d4306df852ea107987
treea3ae9a03d8f4fef420ffd8f8d276bf5565b36b8e
parentac1ef599fcb32dde834a5f4371da32f3bb7c4c6b
CHROMIUMOS: mwifiex: Set timeout for mwifiex_wait_queue_complete

Wait 5 seconds for completion in mwifiex_wait_queue_complete.
If this fails, output a warning, and wait another 5 seconds.
If this fails, crash (instead of hanging the system).

Signed-off-by: Paul Stewart <pstew@chromium.org>
BUG=chrome-os-partner:15129
TEST=Boot and associate to network.

Change-Id: Ifa12beebbc98d96e7aed2cda6e4d94c23306da5d
Reviewed-on: https://gerrit.chromium.org/gerrit/35624
Reviewed-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_ioctl.c