iwlwifi: return commands with error on FW error
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Nov 2012 15:36:21 +0000 (16:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2012 19:55:14 +0000 (20:55 +0100)
commitd18aa87fbfe80f33076942d11f19c9d813e835b1
treeac66e526137a249ba4c2a825111db6387dcb32d5
parent2e6e6b1f3f6ca4903f2b2a8e8ac764e5cef2e7a8
iwlwifi: return commands with error on FW error

When a firmware error occurs, don't just abort synchronous
commands but also return an error (-EIO) and block any new
commands as well. Currently, an error is only returned if
WANT_SKB was set which is confusing and can lead to issues.

Blocking is done until a new firmware image is loaded.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/net/wireless/iwlwifi/pcie/tx.c