diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2009-09-17 13:43:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-23 11:35:53 -0400 |
commit | bba98871c6c5f1f086086ccf13836a02e0f27e77 (patch) | |
tree | 19943e8303dac21403e1c355b7057dc372c8cb4a /drivers/net | |
parent | 6a211bf1fc63891bfbc510d9caa751c4dee4bc37 (diff) |
iwlwifi: do not send sync command while holding spinlock
commit 10c994ca70e8e94bbc85a5bf13de5911ee8de4d2 "iwlwifi: fix remove key
error" fixed an error reported by mac80211 during interface down. The fix
involved changing an async command to synchronous. Unfortunately this was
inside a spinlock section in which we cannot sleep.
Modify the sending of the command back to async. This causes the mac80211
error "mac80211-phy0: failed to remove key (0, ff:ff:ff:ff:ff:ff) from
hardware (-16)." to return. This error is not serious since this occurs
during interface down and the keys will be cleared anyway when ucode is
unloaded. Having this error message is thus less serious than a potential
deadlock introduced when sleeping while holding a spinlock. We will have to
find another fix for that error.
This is a revert of the abovementioned commit.
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index a2b9ec82b965..c6633fec8216 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -520,7 +520,7 @@ int iwl_send_static_wepkey_cmd(struct iwl_priv *priv, u8 send_if_empty) | |||
520 | struct iwl_host_cmd cmd = { | 520 | struct iwl_host_cmd cmd = { |
521 | .id = REPLY_WEPKEY, | 521 | .id = REPLY_WEPKEY, |
522 | .data = wep_cmd, | 522 | .data = wep_cmd, |
523 | .flags = CMD_SYNC, | 523 | .flags = CMD_ASYNC, |
524 | }; | 524 | }; |
525 | 525 | ||
526 | memset(wep_cmd, 0, cmd_size + | 526 | memset(wep_cmd, 0, cmd_size + |