]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/mac80211/mlme.c
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)
commitce85788846ec19dcb7bef0dcbcf83fb64630f426
tree422cc3629c4a673175fe2bcb4f0f8511a34cd856
parent0d4261ad5d0028b26cd88e645b4507eed8aab3f7
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