mac80211: Fix power save in change interface
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Wed, 14 Dec 2011 14:16:08 +0000 (19:46 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:46:35 +0000 (14:46 -0500)
commit1478acb392d8564d109c4add9de6a0c6258c4057
tree82a58f3a1010d0cf55d3fc09a2676d9e8019bbd3
parent9c38a8b4913ac811c467c6d50634167a123e6ac4
mac80211: Fix power save in change interface

we found that power save is not getting enabled when we do
change interface in this order STA->IBSS->STA. this is
because ieee80211_setup_sdata clears type-dependent union

Reported-by: Leela Kella <leela@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c