aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-10-29 08:50:05 -0400
committerLuca Coelho <luciano.coelho@intel.com>2019-01-29 09:10:30 -0500
commite6aeeb4f45178197c956a5795f49648db67607bd (patch)
treec33e07c3374dff8391adf05509e2c91b1872af2e /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parentcefec29ebdde94b364e5b31a802034df259344ab (diff)
iwlwifi: mvm: clean up LDBG config command usage
Clean up the LDBG config command to not be called "continuous recording", and while at it actually remove the continuous recording implementation completely since it was only used for store & forward architectures. This also fixes a bug at least in iwl_fw_dbg_buffer_allocation() because what's now "__le32 type" (matching the firmware) used to be "__le16 enable_recording", so the buffer allocation config sub-struct would erroneously have started at the wrong offset. In the other cases this didn't actually lead to a bug as other bytes in pad[] were all zeroes, so accessing the 16-bit value as a 32-bit value wouldn't make a difference (in little endian.) 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/ops.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index d257c143e624..ee2ef3f0042c 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -737,6 +737,9 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
737 trans_cfg.rx_buf_size = rb_size_default; 737 trans_cfg.rx_buf_size = rb_size_default;
738 } 738 }
739 739
740 BUILD_BUG_ON(sizeof(struct iwl_ldbg_config_cmd) !=
741 LDBG_CFG_COMMAND_SIZE);
742
740 trans->wide_cmd_header = true; 743 trans->wide_cmd_header = true;
741 trans_cfg.bc_table_dword = 744 trans_cfg.bc_table_dword =
742 mvm->trans->cfg->device_family < IWL_DEVICE_FAMILY_22560; 745 mvm->trans->cfg->device_family < IWL_DEVICE_FAMILY_22560;