diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-11-06 15:36:21 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-09 19:55:14 (GMT) |
commit | d18aa87fbfe80f33076942d11f19c9d813e835b1 (patch) | |
tree | ac66e526137a249ba4c2a825111db6387dcb32d5 /drivers/net/wireless/iwlwifi/pcie/internal.h | |
parent | 2e6e6b1f3f6ca4903f2b2a8e8ac764e5cef2e7a8 (diff) | |
download | linux-fsl-qoriq-d18aa87fbfe80f33076942d11f19c9d813e835b1.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/internal.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/internal.h b/drivers/net/wireless/iwlwifi/pcie/internal.h index 847ef1e..1f065c6 100644 --- a/drivers/net/wireless/iwlwifi/pcie/internal.h +++ b/drivers/net/wireless/iwlwifi/pcie/internal.h @@ -296,6 +296,7 @@ enum { STATUS_TPOWER_PMI, STATUS_INT_ENABLED, STATUS_RFKILL, + STATUS_FW_ERROR, }; #define IWL_TRANS_GET_PCIE_TRANS(_iwl_trans) \ |