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)
commitbd6f5bd70012569dc626f50f3272b9f516cf20f8
tree9cea9665e86f66fdc95b2a808a1e726853070e7f
parent30433d3b9850140ceb801c5cc2013c7b408c33de
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