summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
diff options
context:
space:
mode:
authorLior Cohen2018-05-03 09:17:05 +0200
committerLuca Coelho2018-11-23 12:01:07 +0100
commitf7805b33f9b13a87b1fcf9dfbc3dcbce281a1436 (patch)
treeaf33846bb5bad8b31cf5a4016f73cff40a043626 /drivers/net/wireless/intel/iwlwifi/mvm/fw.c
parentiwlwifi: dbg: add apply point logic (diff)
downloadkernel-qcow2-linux-f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436.tar.gz
kernel-qcow2-linux-f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436.tar.xz
kernel-qcow2-linux-f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436.zip
iwlwifi: add debugfs file to read fw debug data recording
FW debug data will oneshot read all data available in DRAM and fill the supplied user buffer. In case the read request is greater than the new data in DRAM, the driver will write all data it has and return the buffer immediately. Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com> Signed-off-by: Lior Cohen <lior2.cohen@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/fw.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/fw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
index 2cd07247e0a7..263b03b3ea66 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
@@ -377,6 +377,9 @@ static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm,
atomic_set(&mvm->mac80211_queue_stop_count[i], 0);
set_bit(IWL_MVM_STATUS_FIRMWARE_RUNNING, &mvm->status);
+#ifdef CONFIG_IWLWIFI_DEBUGFS
+ iwl_fw_set_dbg_rec_on(&mvm->fwrt);
+#endif
clear_bit(IWL_FWRT_STATUS_WAIT_ALIVE, &mvm->fwrt.status);
return 0;