aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorLiad Kaufman <[email protected]>2017-05-18 15:00:49 +0000
committerLuca Coelho <[email protected]>2017-06-29 18:02:47 +0000
commit678d9b6dddea3869e78996a94ade8dc6d1b5fe68 (patch)
treefed9df22300eb44589df32a97caecbf623bf3392 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parentiwlwifi: mvm: remove DQA non-STA client mode special case (diff)
downloadkernel-678d9b6dddea3869e78996a94ade8dc6d1b5fe68.tar.gz
kernel-678d9b6dddea3869e78996a94ade8dc6d1b5fe68.zip
iwlwifi: mvm: update rx statistics cmd api
The API has changed - update the code. Signed-off-by: Liad Kaufman <[email protected]> Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index 1799a3d367f9..4d1188b8736a 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -776,7 +776,11 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
if (err)
goto out_unregister;
- memset(&mvm->rx_stats, 0, sizeof(struct mvm_statistics_rx));
+ if (!iwl_mvm_has_new_rx_stats_api(mvm))
+ memset(&mvm->rx_stats_v3, 0,
+ sizeof(struct mvm_statistics_rx_v3));
+ else
+ memset(&mvm->rx_stats, 0, sizeof(struct mvm_statistics_rx));
/* The transport always starts with a taken reference, we can
* release it now if d0i3 is supported */