Skip to content

Commit 264c844

Browse files
committed
wifi: iwlwifi: mvm: fix assert on suspend
After using DEFINE_RAW_FLEX, cmd is a pointer to iwl_rxq_sync_cmd, and not a variable containing both the command and notification. Adjust hcmd->data and hcmd->len assignment as well. Fixes: 7438843 ("wifi: iwlwifi: mvm: Avoid -Wflex-array-member-not-at-end warning") Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>
1 parent 1b98f35 commit 264c844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6360,8 +6360,8 @@ void iwl_mvm_sync_rx_queues_internal(struct iwl_mvm *mvm,
63606360
(struct iwl_mvm_internal_rxq_notif *)cmd->payload;
63616361
struct iwl_host_cmd hcmd = {
63626362
.id = WIDE_ID(DATA_PATH_GROUP, TRIGGER_RX_QUEUES_NOTIF_CMD),
6363-
.data[0] = &cmd,
6364-
.len[0] = sizeof(cmd),
6363+
.data[0] = cmd,
6364+
.len[0] = __struct_size(cmd),
63656365
.data[1] = data,
63666366
.len[1] = size,
63676367
.flags = CMD_SEND_IN_RFKILL | (sync ? 0 : CMD_ASYNC),

0 commit comments

Comments
 (0)