aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
diff options
context:
space:
mode:
authorLuca Coelho <[email protected]>2017-09-02 08:25:40 +0000
committerLuca Coelho <[email protected]>2017-09-08 08:50:30 +0000
commitd460f1fb83a44833a09c8eaa34b30ce553cab8c5 (patch)
tree982551721cd25cf29c6ff32406ba348273a03357 /drivers/net/wireless/intel/iwlwifi/mvm/tt.c
parentiwlwifi: mvm: initialize status in iwl_mvm_add_int_sta_common() (diff)
downloadkernel-d460f1fb83a44833a09c8eaa34b30ce553cab8c5.tar.gz
kernel-d460f1fb83a44833a09c8eaa34b30ce553cab8c5.zip
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]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/tt.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/tt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
index 8876c2abc440..4d907f60bce9 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
@@ -529,6 +529,7 @@ int iwl_mvm_ctdp_command(struct iwl_mvm *mvm, u32 op, u32 state)
lockdep_assert_held(&mvm->mutex);
+ status = 0;
ret = iwl_mvm_send_cmd_pdu_status(mvm, WIDE_ID(PHY_OPS_GROUP,
CTDP_CONFIG_CMD),
sizeof(cmd), &cmd, &status);