summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2018-07-05 16:34:03 +0200
committerLuca Coelho <luciano.coelho@intel.com>2018-11-11 10:06:16 +0100
commit656fca00f317011dad2f089b3aa1fb0c22558e30 (patch)
treed29304d654ae0206fb410aec5a845fe462072f87 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parentiwlwifi: mvm: enable low latency for soft ap (diff)
downloadlinux-656fca00f317011dad2f089b3aa1fb0c22558e30.tar.xz
linux-656fca00f317011dad2f089b3aa1fb0c22558e30.zip
iwlwifi: mvm: switch management tx antenna only on tx failure
Switch the antenna used for management tx only if previous tx failed. If previous tx succeeded, there is no reason to switch antennas. Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index 758aa1f75ca1..0d5b55ed8dda 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -845,6 +845,8 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
iwl_mvm_tof_init(mvm);
+ iwl_mvm_toggle_tx_ant(mvm, &mvm->mgmt_last_antenna_idx);
+
return op_mode;
out_unregister: