Skip to content

Commit

Permalink
mac80211: Fix power save in change interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mohammed Shafi Shajakhan authored and John W. Linville committed Dec 15, 2011
1 parent 9c38a8b commit 1478acb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1478acb

Please sign in to comment.