]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't ask beacons when P2P GO vif and no assoc sta
authorAyala Beker <ayala.beker@intel.com>
Sun, 20 Dec 2015 07:27:50 +0000 (09:27 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 7 Jan 2016 17:01:30 +0000 (19:01 +0200)
commit586c48344e4e0a79323df5093d225ff711cb279c
tree9cea9665e86f66fdc95b2a808a1e726853070e7f
parent49159e83774616b51320d7e2230569bce22a923e
iwlwifi: mvm: don't ask beacons when P2P GO vif and no assoc sta

The commit below called iwl_mvm_mac_ctxt_changed() to handle
a case that the vif is a P2P GO.
However iwl_mvm_mac_ctxt_cmd_go() ignores the number of
associated stations and asks the FW to pass beacons anyways.

Fix this by checking ap_assoc_sta_count parameter, in iwl_mvm_mac_ctxt_cmd_go()
as well, and ask the FW to pass beacons only when there's
at least one associated station.

Signed-off-by: Ayala Beker <ayala.beker@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c