iwlwifi: mvm: don't attempt debug collection in rfkill
authorJohannes Berg <johannes.berg@intel.com>
Mon, 25 Mar 2019 13:11:52 +0000 (14:11 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 18 Apr 2019 11:07:39 +0000 (14:07 +0300)
commit72d3c7bbc9b581e5f2a455e6f399c75626653945
tree477dc41c20fa45997211ac0d28087ac1873d2cd5
parent1c6bca6d75bca2cc47b5eafb9f7f16e368ffbeca
iwlwifi: mvm: don't attempt debug collection in rfkill

If we fail to initialize because rfkill is enabled, then trying
to do debug collection currently just fails. Prevent that in the
high-level code, although we should probably also fix the lower
level code to do things more carefully.

It's not 100% clear that it fixes this commit, as the original
dump code at the time might've been more careful. In any case,
we don't really need to dump anything in this expected scenario.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: 7125648074e8 ("iwlwifi: add fw dump upon RT ucode start failure")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/ops.c