]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't react to beacon loss if HW monitoring
authorJohannes Berg <johannes.berg@intel.com>
Wed, 18 Jul 2012 08:27:27 +0000 (10:27 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 31 Jul 2012 14:10:58 +0000 (16:10 +0200)
commit60d9bb98c216740e6438607c00036d58af0d3788
treecfb18a70ebf04ad24856eb5578296abbcb1b2bb4
parent5fd1cf89b29bd229bb08ded69bd8b88aa032b9d8
mac80211: don't react to beacon loss if HW monitoring

If the HW is monitoring connection loss (as advertised
by IEEE80211_HW_CONNECTION_MONITOR) but not filtering
beacons (IEEE80211_VIF_BEACON_FILTER) then mac80211 will
still start the beacon loss timer and if a few beacons
are lost, e.g. due to scanning, drop the connection.

If the hardware doesn't advertise connection monitoring,
then it won't drop the connection right away but probe
the AP, which is intended, but due to the logic in the
timer when connection monitoring is done it assumes the
connection was actually lost.

Fix this problem by not starting the timer when the HW
does connection monitoring.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c