Skip to content

Commit 787fe16

Browse files
committed
Miri Korenblit says: ==================== iwlwifi fixes ==================== Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 parents 1e1f706 + f81aa83 commit 787fe16

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

drivers/net/wireless/intel/iwlwifi/mld/fw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,6 @@ int iwl_mld_load_fw(struct iwl_mld *mld)
349349
if (ret)
350350
goto err;
351351

352-
ret = iwl_mld_init_mcc(mld);
353-
if (ret)
354-
goto err;
355-
356352
mld->fw_status.running = true;
357353

358354
return 0;
@@ -546,6 +542,10 @@ int iwl_mld_start_fw(struct iwl_mld *mld)
546542
if (ret)
547543
goto error;
548544

545+
ret = iwl_mld_init_mcc(mld);
546+
if (ret)
547+
goto error;
548+
549549
return 0;
550550

551551
error:

drivers/net/wireless/intel/iwlwifi/mld/mld.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ iwl_mld_nic_error(struct iwl_op_mode *op_mode,
653653
* It might not actually be true that we'll restart, but the
654654
* setting doesn't matter if we're going to be unbound either.
655655
*/
656-
if (type != IWL_ERR_TYPE_RESET_HS_TIMEOUT)
656+
if (type != IWL_ERR_TYPE_RESET_HS_TIMEOUT &&
657+
mld->fw_status.running)
657658
mld->fw_status.in_hw_restart = true;
658659
}
659660

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),

drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void iwl_trans_pcie_fw_reset_handshake(struct iwl_trans *trans)
125125
reset_done =
126126
inta_hw & MSIX_HW_INT_CAUSES_REG_RESET_DONE;
127127
} else {
128-
inta_hw = iwl_read32(trans, CSR_INT_MASK);
128+
inta_hw = iwl_read32(trans, CSR_INT);
129129
reset_done = inta_hw & CSR_INT_BIT_RESET_DONE;
130130
}
131131

0 commit comments

Comments
 (0)