mac80211: move dynamic PS timeout to hardware config
This will be needed for drivers that set the IEEE80211_HW_NO_STACK_DYNAMIC_PS flag and still want to handle dynamic PS. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Reviewed-by: Kalle Valo <kalle.valo@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
e9aeabaeb9
commit
46f2c4bd7e
@@ -777,9 +777,10 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata,
|
||||
|
||||
if (local->powersave &&
|
||||
!(local->hw.flags & IEEE80211_HW_NO_STACK_DYNAMIC_PS)) {
|
||||
if (local->dynamic_ps_timeout > 0)
|
||||
if (local->hw.conf.dynamic_ps_timeout > 0)
|
||||
mod_timer(&local->dynamic_ps_timer, jiffies +
|
||||
msecs_to_jiffies(local->dynamic_ps_timeout));
|
||||
msecs_to_jiffies(
|
||||
local->hw.conf.dynamic_ps_timeout));
|
||||
else {
|
||||
ieee80211_send_nullfunc(local, sdata, 1);
|
||||
conf->flags |= IEEE80211_CONF_PS;
|
||||
|
Reference in New Issue
Block a user