wl1251: wait for join command complete event
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 17 Aug 2010 19:46:55 +0000 (22:46 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Aug 2010 20:32:04 +0000 (16:32 -0400)
commit7273b9700b74e8c26b612207aea47effb0e530bf
treef1b8a54e4d4894002465d5a36fae8b97c691485e
parent5b44a1b5164c69cb274215fc79a9f4f5a1203c4d
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>
Acked-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.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