aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 91e8e1bacaaa..6240f76e2a43 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -317,6 +317,8 @@ static int ieee80211_open(struct net_device *dev)
317 ieee80211_set_wmm_default(sdata); 317 ieee80211_set_wmm_default(sdata);
318 } 318 }
319 319
320 ieee80211_recalc_ps(local);
321
320 /* 322 /*
321 * ieee80211_sta_work is disabled while network interface 323 * ieee80211_sta_work is disabled while network interface
322 * is down. Therefore, some configuration changes may not 324 * is down. Therefore, some configuration changes may not
@@ -572,6 +574,8 @@ static int ieee80211_stop(struct net_device *dev)
572 hw_reconf_flags = 0; 574 hw_reconf_flags = 0;
573 } 575 }
574 576
577 ieee80211_recalc_ps(local);
578
575 /* do after stop to avoid reconfiguring when we stop anyway */ 579 /* do after stop to avoid reconfiguring when we stop anyway */
576 if (hw_reconf_flags) 580 if (hw_reconf_flags)
577 ieee80211_hw_config(local, hw_reconf_flags); 581 ieee80211_hw_config(local, hw_reconf_flags);