]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: improve the flow when a NIC is disconnected
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 1 May 2018 11:23:56 +0000 (14:23 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 31 Aug 2018 08:38:31 +0000 (11:38 +0300)
commit8670efc1f760e03af9dd97303ce2a765c4ed57c5
tree4465273fccf427772d5adf56fd035a75621ac7ad
parentb3713c7d8ca0117b6b5ecb06bc099cd32be6fb31
iwlwifi: improve the flow when a NIC is disconnected

When the NIC is disconnected, we just can't do anything
besides seeking for help from the bus driver.  Dumping the
device's memory is not necessary and just bloats the logs
with unusable data.  Moreover, asking mac80211 to restart
the hardware is also useless.  Bypass all this.

Also, use the STATUS_TRANS_DEAD status bit instead of a
bool inside the transport layer. The advantage of this is
that now, the transport and the op_mode can know what is the
situation and bypass the useless recovery steps mentioned
above.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/pcie/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/trans.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c