]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: mld: use the correct struct size for tracing
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 12 Jun 2025 11:48:50 +0000 (14:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:15 +0000 (18:41 +0200)
[ Upstream commit b2c1f9b6e3aac9567c84208b73d716cc5d456404 ]

For the iwlmld driver the RX command is using struct iwl_rx_mpdu_desc
and not the much older struct iwl_rx_mpdu_res_start. Adjust the value of
rx_mpdu_cmd_hdr_size accordingly so that the trace data is correct.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250612144708.688d95d99ff3.Id3055ca6c19cf8c821cbbd80c09ca2a21d9acec7@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mld/mld.c

index 1774bb84dd3fadd11a05571e1c16d9fa36c01ae5..2a6088e8f4c74f4e85ad3616c402ce4da222b30c 100644 (file)
@@ -357,7 +357,7 @@ iwl_mld_configure_trans(struct iwl_op_mode *op_mode)
        trans->conf.n_no_reclaim_cmds = ARRAY_SIZE(no_reclaim_cmds);
 
        trans->conf.rx_mpdu_cmd = REPLY_RX_MPDU_CMD;
-       trans->conf.rx_mpdu_cmd_hdr_size = sizeof(struct iwl_rx_mpdu_res_start);
+       trans->conf.rx_mpdu_cmd_hdr_size = sizeof(struct iwl_rx_mpdu_desc);
        trans->conf.wide_cmd_header = true;
 
        iwl_trans_op_mode_enter(trans, op_mode);