iwlwifi: don't WARN on bad firmware state
commitf39a52bfaf65de87a363d471ed02a3fef0752a1d
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 9 Oct 2013 13:24:30 +0000 (9 15:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2013 07:59:32 +0000 (11 09:59 +0200)
tree41e8ae9503ee9ce91c52a4df0d0f318098a05eeb
parent9439eac79f1edae172f7c54dce61c4fe2c8308ad
iwlwifi: don't WARN on bad firmware state

When we restart firmware and it is marked as not alive, we can still get
calls from mac80211. Don't WARN on in this situation as this triggers
automatic bug reports with no valuable information.

This continuation of:

commit 8ca95995e64f5d270889badb3e449dca91106a2b
Author: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Date:   Sun Sep 15 11:37:17 2013 +0300

    iwlwifi: don't WARN on host commands sent when firmware is dead

which remove WARN_ONCE from one place, but those warnings are also
triggered from other functions.

Patch also adds unlikely() statement.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans.h