mac80211: don't require associated->beacon_ies for ps
authorEliad Peller <eliad@wizery.com>
Mon, 25 Jun 2012 07:48:25 +0000 (10:48 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 28 Jun 2012 09:40:02 +0000 (11:40 +0200)
commitc9b22fb87a00ceb8afa78089d5cf676cf8b3319d
tree307e040525ea144dc70322138d43207cc55409ec
parentf823981e288f83113bf1129ff2c94e2fd74a28dd
mac80211: don't require associated->beacon_ies for ps

beacon_ies is needed only in order to extract the dtim
period. However, even if it's missing we can still enter
ps with dtim=1 (which also happens if the TIM ie is invalid).

Most drivers don't use conf.max_sleep_period/ps_dtim_period
anyway, and this check prevents them from entering ps if
they don't have beacon (but only probe response), even though
the beacon is not needed at all.

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