]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Do not report beacon loss if beacon filtering enabled
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 18 Jun 2020 09:17:42 +0000 (11:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Aug 2020 11:02:06 +0000 (13:02 +0200)
commita4bb05fe113b77968b5eb03caa216ffb350935fd
treeba92c7d07a76967bf16d4ee27e660cf7e2d7744d
parentac832e775967123161b62faedbc6fd5a8c0523fa
mac80211: Do not report beacon loss if beacon filtering enabled

mac80211.h says: Beacon filter support is advertised with the
IEEE80211_VIF_BEACON_FILTER interface capability. The driver needs to
enable beacon filter support whenever power save is enabled, that is
IEEE80211_CONF_PS is set. When power save is enabled, the stack will
not check for beacon loss and the driver needs to notify about loss
of beacons with ieee80211_beacon_loss().

Some controllers may want to dynamically enable the beacon filter
capabilities on power save entry (CONF_PS) and disable it on exit.
This is the case for the wcn36xx driver which only supports beacon
filtering in PS mode (no CONNECTION_MONITOR support).

When the mac80211 beacon monitor timer expires, the beacon filter
flag must be checked again in case it as been changed in between
(e.g. vif moved to PS mode).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1592471863-31402-1-git-send-email-loic.poulain@linaro.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c