wl1251: wait for join command complete event
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 16 Aug 2010 16:37:28 +0000 (19:37 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 17 Aug 2010 14:37:25 +0000 (17:37 +0300)
commit954b367f591d0004dcbb312146b4fecab1580f20
treea242e64edd39e569c49d4e560d9b900b85d3be2c
parentaab16d03efcf7e85e21fa2e9362a8bf5b8e84bfd
wl1251: wait for join command complete event

Poll for join command completion instead of waiting blindly for 10
msecs. There is a timeout of 100 msecs, if the command doesn't complete
by then, we return an error code.

Based on wl1271 patch 99d84c1de8fdf5f9b09f07fdbc628857a040bf8b
by Luciano Coelho.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
drivers/net/wireless/wl12xx/wl1251_boot.c
drivers/net/wireless/wl12xx/wl1251_event.c
drivers/net/wireless/wl12xx/wl1251_event.h
drivers/net/wireless/wl12xx/wl1251_main.c