diff options
author | Emmanuel Grumbach | 2017-09-14 14:45:44 +0200 |
---|---|---|
committer | Luca Coelho | 2017-10-06 13:57:22 +0200 |
commit | 7a20bcceeddd7162801bb37d992c5a2bfd5ca3ce (patch) | |
tree | 1e30c2f011558daf23f98ec56ef8020fb31c9742 /drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | |
parent | iwlwifi: remove redundant reading from NVM file (diff) | |
download | kernel-qcow2-linux-7a20bcceeddd7162801bb37d992c5a2bfd5ca3ce.tar.gz kernel-qcow2-linux-7a20bcceeddd7162801bb37d992c5a2bfd5ca3ce.tar.xz kernel-qcow2-linux-7a20bcceeddd7162801bb37d992c5a2bfd5ca3ce.zip |
iwlwifi: mvm: don't send identical PHY_CTXT_CMD
When we have an AP which supports HT and a single HT
station is connected, we change the min_width from
NL80211_CHAN_WIDTH_20_NOHT to NL80211_CHAN_WIDTH_20. This
of course has no implication on the channel width but still
sends a command to the firmware.
Remember the last width that was sent and refrain from
sending unnecessary commands to the firmware.
Sending a PHY_CTXT_CMD to the firmware has a cost since it
recalculates the presence on the medium and because of that
it closes the transmit queues for a short while.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/mvm.h')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h index e8be5104b909..2867683f1aa0 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h @@ -147,6 +147,8 @@ struct iwl_mvm_phy_ctxt { u16 color; u32 ref; + enum nl80211_chan_width width; + /* * TODO: This should probably be removed. Currently here only for rate * scaling algorithm |