Skip to content

Commit 1478acb

Browse files
Mohammed Shafi Shajakhanlinvjw
authored andcommitted
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>
1 parent 9c38a8b commit 1478acb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/mac80211/mlme.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,7 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
23712371
(unsigned long) sdata);
23722372

23732373
ifmgd->flags = 0;
2374+
ifmgd->powersave = sdata->wdev.ps;
23742375

23752376
mutex_init(&ifmgd->mtx);
23762377

0 commit comments

Comments
 (0)