summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-11-22 09:02:42 +0100
committerLuca Coelho <luciano.coelho@intel.com>2017-12-05 21:01:43 +0200
commit0190ff24e55efd3e02479537c2d91835602fffa3 (patch)
treec977113b31a10d30c65a906a740153c00a9b70b2 /drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
parentf4744258f5e8d5a478a5acb89c58cf1eddc0550f (diff)
downloadtalos-op-linux-0190ff24e55efd3e02479537c2d91835602fffa3.tar.gz
talos-op-linux-0190ff24e55efd3e02479537c2d91835602fffa3.zip
iwlwifi: mvm: request statistics when reading debugfs
When statistics are read from debugfs, make sure that they are actually updated from the firmware. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
index 834c798f728c..270781e13e89 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
@@ -759,6 +759,9 @@ static ssize_t iwl_dbgfs_fw_rx_stats_read(struct file *file,
mutex_lock(&mvm->mutex);
+ if (iwl_mvm_firmware_running(mvm))
+ iwl_mvm_request_statistics(mvm, false);
+
pos += scnprintf(buf + pos, bufsz - pos, fmt_header,
"Statistics_Rx - OFDM");
if (!iwl_mvm_has_new_rx_stats_api(mvm)) {
OpenPOWER on IntegriCloud