git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iwmc3200wifi: Do not handle wifi command if the interface is not ready
[safe/jmp/linux-2.6]
/
drivers
/
net
/
wireless
/
iwmc3200wifi
/
commands.c
diff --git
a/drivers/net/wireless/iwmc3200wifi/commands.c
b/drivers/net/wireless/iwmc3200wifi/commands.c
index
d5125b7
..
25fb8df
100644
(file)
--- a/
drivers/net/wireless/iwmc3200wifi/commands.c
+++ b/
drivers/net/wireless/iwmc3200wifi/commands.c
@@
-76,6
+76,11
@@
int iwm_send_wifi_if_cmd(struct iwm_priv *iwm, void *payload, u16 payload_size,
int ret;
u8 oid = hdr->oid;
+ if (!test_bit(IWM_STATUS_READY, &iwm->status)) {
+ IWM_ERR(iwm, "Interface is not ready yet");
+ return -EAGAIN;
+ }
+
umac_cmd.id = UMAC_CMD_OPCODE_WIFI_IF_WRAPPER;
umac_cmd.resp = resp;