diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2010-03-26 11:53:20 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-31 20:39:13 +0200 |
commit | 99d84c1de8fdf5f9b09f07fdbc628857a040bf8b (patch) | |
tree | 1ac0570e5c04f9d581ede7ee8931e8995497b0f7 /drivers/net/wireless/wl12xx/wl1271_cmd.h | |
parent | wl1271: Remove device MAC-address randomization (diff) | |
download | linux-99d84c1de8fdf5f9b09f07fdbc628857a040bf8b.tar.xz linux-99d84c1de8fdf5f9b09f07fdbc628857a040bf8b.zip |
wl1271: 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.
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_cmd.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.h b/drivers/net/wireless/wl12xx/wl1271_cmd.h index 6324bbf36843..bdd7a3d8ece6 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.h +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.h @@ -123,6 +123,7 @@ enum cmd_templ { /* unit ms */ #define WL1271_COMMAND_TIMEOUT 2000 #define WL1271_CMD_TEMPL_MAX_SIZE 252 +#define WL1271_EVENT_TIMEOUT 100 struct wl1271_cmd_header { __le16 id; |