]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
iwlwifi: mvm: don't send identical PHY_CTXT_CMD
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 14 Sep 2017 12:45:44 +0000 (15:45 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 11:57:22 +0000 (14:57 +0300)
commit7a20bcceeddd7162801bb37d992c5a2bfd5ca3ce
tree1e30c2f011558daf23f98ec56ef8020fb31c9742
parenta2ff48af65ad661a257987fa05973351c595002e
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>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c