aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r--net/mac80211/wext.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
index 8568f1e7266f..48fc6b9a62a4 100644
--- a/net/mac80211/wext.c
+++ b/net/mac80211/wext.c
@@ -871,12 +871,17 @@ set:
871 mod_timer(&local->dynamic_ps_timer, jiffies + 871 mod_timer(&local->dynamic_ps_timer, jiffies +
872 msecs_to_jiffies(local->dynamic_ps_timeout)); 872 msecs_to_jiffies(local->dynamic_ps_timeout));
873 else { 873 else {
874 if (local->powersave) 874 if (local->powersave) {
875 ieee80211_send_nullfunc(local, sdata, 1);
875 conf->flags |= IEEE80211_CONF_PS; 876 conf->flags |= IEEE80211_CONF_PS;
876 else 877 ret = ieee80211_hw_config(local,
878 IEEE80211_CONF_CHANGE_PS);
879 } else {
877 conf->flags &= ~IEEE80211_CONF_PS; 880 conf->flags &= ~IEEE80211_CONF_PS;
878 ret = ieee80211_hw_config(local, 881 ret = ieee80211_hw_config(local,
879 IEEE80211_CONF_CHANGE_PS); 882 IEEE80211_CONF_CHANGE_PS);
883 ieee80211_send_nullfunc(local, sdata, 0);
884 }
880 } 885 }
881 } 886 }
882 887