iwlwifi: mvm: fix debugfs restart if fw_restart is disabled
authorEran Harary <eran.harary@intel.com>
Wed, 3 Jul 2013 08:00:06 +0000 (11:00 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 09:05:03 +0000 (11:05 +0200)
commit291aa7c4a4c01ef925b366174fc05ff2a757fad0
tree2dd26a70766ddcdafa30e848b726653bdfba7aeb
parent5dca7c241e92a5c619260ad969b53b2c4849c340
iwlwifi: mvm: fix debugfs restart if fw_restart is disabled

If fw_restart is disabled, using the fw_restart debugfs
file will enable fw_restart and then send the failing
command, but this still frequently fails restart because
it resets fw_restart afterwards and is thus racy.

Fix this by tracking fw_restart separately and allowing
"always restart", "never restart" and "restart N times".

Signed-off-by: Eran Harary <eran.harary@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/ops.c