]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit372d322fd715a2524611e40bab4c73fed637db0f
tree1e30c2f011558daf23f98ec56ef8020fb31c9742
parent1fa3de1a4c44c90a85ecde0e0a9ccbd46fa140eb
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