Commit 9043f3b8 authored by Juuso Oikarinen's avatar Juuso Oikarinen Committed by John W. Linville

cfg80211: Remove default dynamic PS timeout value

Now that the mac80211 is choosing dynamic ps timeouts based on the ps-qos
network latency configuration, configure a default value of -1 as the dynamic
ps timeout in cfg80211. This value allows the mac80211 to determine the value
to be used.
Signed-off-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 195e294d
...@@ -1020,6 +1020,8 @@ struct cfg80211_pmksa { ...@@ -1020,6 +1020,8 @@ struct cfg80211_pmksa {
* RSN IE. It allows for faster roaming between WPA2 BSSIDs. * RSN IE. It allows for faster roaming between WPA2 BSSIDs.
* @del_pmksa: Delete a cached PMKID. * @del_pmksa: Delete a cached PMKID.
* @flush_pmksa: Flush all cached PMKIDs. * @flush_pmksa: Flush all cached PMKIDs.
* @set_power_mgmt: Configure WLAN power management. A timeout value of -1
* allows the driver to adjust the dynamic ps timeout value.
* @set_cqm_rssi_config: Configure connection quality monitor RSSI threshold. * @set_cqm_rssi_config: Configure connection quality monitor RSSI threshold.
* *
*/ */
......
...@@ -704,7 +704,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, ...@@ -704,7 +704,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
wdev->ps = true; wdev->ps = true;
else else
wdev->ps = false; wdev->ps = false;
wdev->ps_timeout = 100; /* allow mac80211 to determine the timeout */
wdev->ps_timeout = -1;
if (rdev->ops->set_power_mgmt) if (rdev->ops->set_power_mgmt)
if (rdev->ops->set_power_mgmt(wdev->wiphy, dev, if (rdev->ops->set_power_mgmt(wdev->wiphy, dev,
wdev->ps, wdev->ps,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment