]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: enable power save only if DTIM period is available
authorAlexander Bondar <alexander.bondar@intel.com>
Mon, 6 May 2013 14:17:04 +0000 (17:17 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 May 2013 21:01:29 +0000 (23:01 +0200)
commit6f2f0c8e03aba13a77ca098e2ae1600f43cac25b
tree422cc3629c4a673175fe2bcb4f0f8511a34cd856
parent4ee6d389a0fb4376dff330899974f4200b231517
mac80211: enable power save only if DTIM period is available

Generally, the DTIM period is available after a beacon has
been received, and if no beacon has been received enabling
powersave is problematic anyway for synchronisation. Since
some drivers may require the DTIM period for powersave,
don't enable powersave until it becomes available in case
the scan/association managed to not receive a beacon.

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