summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_event.h
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2010-08-17 22:46:55 +0300
committerJohn W. Linville <linville@tuxdriver.com>2010-08-24 16:32:04 -0400
commit7273b9700b74e8c26b612207aea47effb0e530bf (patch)
treef1b8a54e4d4894002465d5a36fae8b97c691485e /drivers/net/wireless/wl12xx/wl1251_event.h
parent5b44a1b5164c69cb274215fc79a9f4f5a1203c4d (diff)
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_event.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_event.h b/drivers/net/wireless/wl12xx/wl1251_event.h
index f48a2b66bc5..ec456474a84 100644
--- a/drivers/net/wireless/wl12xx/wl1251_event.h
+++ b/drivers/net/wireless/wl12xx/wl1251_event.h
@@ -117,5 +117,6 @@ struct event_mailbox {
int wl1251_event_unmask(struct wl1251 *wl);
void wl1251_event_mbox_config(struct wl1251 *wl);
int wl1251_event_handle(struct wl1251 *wl, u8 mbox);
+int wl1251_event_wait(struct wl1251 *wl, u32 mask, int timeout_ms);
#endif