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)
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>

No differences found