diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7a8d4c494246..a16c9d724be1 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2192,6 +2192,7 @@ static void ieee80211_restart_sta_timer(struct ieee80211_sub_if_data *sdata) | |||
2192 | void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata) | 2192 | void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata) |
2193 | { | 2193 | { |
2194 | struct ieee80211_if_managed *ifmgd; | 2194 | struct ieee80211_if_managed *ifmgd; |
2195 | u32 hw_flags; | ||
2195 | 2196 | ||
2196 | ifmgd = &sdata->u.mgd; | 2197 | ifmgd = &sdata->u.mgd; |
2197 | INIT_WORK(&ifmgd->work, ieee80211_sta_work); | 2198 | INIT_WORK(&ifmgd->work, ieee80211_sta_work); |
@@ -2211,6 +2212,13 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata) | |||
2211 | IEEE80211_STA_AUTO_CHANNEL_SEL; | 2212 | IEEE80211_STA_AUTO_CHANNEL_SEL; |
2212 | if (sdata->local->hw.queues >= 4) | 2213 | if (sdata->local->hw.queues >= 4) |
2213 | ifmgd->flags |= IEEE80211_STA_WMM_ENABLED; | 2214 | ifmgd->flags |= IEEE80211_STA_WMM_ENABLED; |
2215 | |||
2216 | hw_flags = sdata->local->hw.flags; | ||
2217 | |||
2218 | if (hw_flags & IEEE80211_HW_SUPPORTS_PS) { | ||
2219 | ifmgd->powersave = CONFIG_MAC80211_DEFAULT_PS_VALUE; | ||
2220 | sdata->local->hw.conf.dynamic_ps_timeout = 500; | ||
2221 | } | ||
2214 | } | 2222 | } |
2215 | 2223 | ||
2216 | /* configuration hooks */ | 2224 | /* configuration hooks */ |