iwlwifi: mvm: make init_dbg effective only on failure
authorLiad Kaufman <liad.kaufman@intel.com>
Thu, 23 Nov 2017 08:29:04 +0000 (10:29 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 5 Dec 2017 19:01:43 +0000 (21:01 +0200)
commitf4744258f5e8d5a478a5acb89c58cf1eddc0550f
treeacc72778f618ecfff0b89a7c5f1abdbcaad04bd1
parent6fef00d5eeb9e4e5620e395d0e68f5de28a7c646
iwlwifi: mvm: make init_dbg effective only on failure

If FW loads without a problem, leaving init_dbg on can
cause a confusion, since the user won't necessarily
remember it is still turned on, and there are flows in
which everything continues as usual, only without
stopping the device after INIT, even if there is no FW
assert. On 22000 HW, for instance, this causes a
warning, since the paging is getting initialized twice.

Solve the issue by making this module param effective
only if the FW indeed asserts during INIT.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
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