diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-12-14 14:16:08 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-15 19:46:35 (GMT) |
commit | 1478acb392d8564d109c4add9de6a0c6258c4057 (patch) | |
tree | 82a58f3a1010d0cf55d3fc09a2676d9e8019bbd3 /net/mac80211 | |
parent | 9c38a8b4913ac811c467c6d50634167a123e6ac4 (diff) | |
download | linux-1478acb392d8564d109c4add9de6a0c6258c4057.tar.xz |
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index e895ad5..a984f1f 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2371,6 +2371,7 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata) (unsigned long) sdata); ifmgd->flags = 0; + ifmgd->powersave = sdata->wdev.ps; mutex_init(&ifmgd->mtx); |