OSDN Git Service

iwlwifi: mvm: don't ask for beacons when AP vif and no assoc sta
authorGregory Greenman <gregory.greenman@intel.com>
Mon, 24 Aug 2015 11:38:35 +0000 (14:38 +0300)
committerLuciano Coelho <luciano.coelho@intel.com>
Fri, 28 Aug 2015 10:26:34 +0000 (13:26 +0300)
commit9493908095a3d0b4fa24ff529975376b3a2b8394
treef7553f810e69665297070032e856fc7638bc7e29
parenta73a2cea922de5d2dd03ad456e280ef92c8bb9f6
iwlwifi: mvm: don't ask for beacons when AP vif and no assoc sta

When in AP mode, we need beacons from other APs for HT protection.
However, when there's no any associated station we will not do
any Tx and thus don't really need beacons. On the other hand, these
beacons will cause a lot of unnecessary wakeups which increase our
power consumption. Handle this by asking FW to pass beacons only when
there's at least one associated station.

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/sta.c