diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-12-14 09:16:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-15 14:46:35 -0500 |
commit | 1478acb392d8564d109c4add9de6a0c6258c4057 (patch) | |
tree | 82a58f3a1010d0cf55d3fc09a2676d9e8019bbd3 /net/mac80211 | |
parent | 9c38a8b4913ac811c467c6d50634167a123e6ac4 (diff) |
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 e895ad560d55..a984f1f60ddb 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) | |||
2371 | (unsigned long) sdata); | 2371 | (unsigned long) sdata); |
2372 | 2372 | ||
2373 | ifmgd->flags = 0; | 2373 | ifmgd->flags = 0; |
2374 | ifmgd->powersave = sdata->wdev.ps; | ||
2374 | 2375 | ||
2375 | mutex_init(&ifmgd->mtx); | 2376 | mutex_init(&ifmgd->mtx); |
2376 | 2377 | ||