]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: enable IEEE80211_CONF_PS only when associated
authorKalle Valo <kalle.valo@nokia.com>
Thu, 18 Dec 2008 21:35:13 +0000 (23:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:23:57 +0000 (15:23 -0500)
commita5e58e4b0074cb02e3133f599a7cfca46bf65a43
tree4792dc94d6a36be8367987b88b922157acf59808
parentd933e912b4bb9f4cf7ba07e65085487e4301a815
mac80211: enable IEEE80211_CONF_PS only when associated

Also disable power save when disassociated. It makes no sense to have
power save enabled while disassociated.

iwlwifi seems to have this check in the driver, but it's better to do this
in mac80211 instead.

Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/wext.c