iwlwifi: trans: prevent reprobe on repeated FW errors before restart
authorArik Nemtsov <arik@wizery.com>
Sun, 1 Dec 2013 11:50:40 +0000 (13:50 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 17 Dec 2013 17:39:50 +0000 (19:39 +0200)
commit2a988e98085a76c1a238442e67e53874944cb353
tree57d23374a6823e476d89ffd08535c91e69898f8c
parent8c678ed4665d9c6452279b770eb43feed32ca3e8
iwlwifi: trans: prevent reprobe on repeated FW errors before restart

In case a sync command timeouts or Tx is stuck while a FW error
interrupt arrives, we might call iwl_op_mode_nic_error twice before
a restart has been initiated. This will cause a reprobe. Unify calls
to this function at the transport level and only call it on the first
FW error in a given by checking the transport FW error flag.

While at it, remove the privately defined iwl_nic_error from PCIE code
and use the common callback instead.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans.h
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/tx.c