Skip to content

Commit d460f1f

Browse files
committed
iwlwifi: mvm: set status before calling iwl_mvm_send_cmd_status()
We always must set the status to what we consider success before calling iwl_mvm_send_cmd_status() (also iwl_mvm_send_cmd_pdu_status() which calls it). Fix a few places where initialization is missing. Signed-off-by: Luca Coelho <[email protected]>
1 parent 3f497de commit d460f1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ static int iwl_mvm_lmac_scan_abort(struct iwl_mvm *mvm)
555555
struct iwl_host_cmd cmd = {
556556
.id = SCAN_OFFLOAD_ABORT_CMD,
557557
};
558-
u32 status;
558+
u32 status = CAN_ABORT_STATUS;
559559

560560
ret = iwl_mvm_send_cmd_status(mvm, &cmd, &status);
561561
if (ret)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ int iwl_mvm_ctdp_command(struct iwl_mvm *mvm, u32 op, u32 state)
529529

530530
lockdep_assert_held(&mvm->mutex);
531531

532+
status = 0;
532533
ret = iwl_mvm_send_cmd_pdu_status(mvm, WIDE_ID(PHY_OPS_GROUP,
533534
CTDP_CONFIG_CMD),
534535
sizeof(cmd), &cmd, &status);

0 commit comments

Comments
 (0)