aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/cfg80211.h2
-rw-r--r--net/wireless/core.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index f6b29bf925d0..7d10c0182f53 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1020,6 +1020,8 @@ struct cfg80211_pmksa {
1020 * RSN IE. It allows for faster roaming between WPA2 BSSIDs. 1020 * RSN IE. It allows for faster roaming between WPA2 BSSIDs.
1021 * @del_pmksa: Delete a cached PMKID. 1021 * @del_pmksa: Delete a cached PMKID.
1022 * @flush_pmksa: Flush all cached PMKIDs. 1022 * @flush_pmksa: Flush all cached PMKIDs.
1023 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1
1024 * allows the driver to adjust the dynamic ps timeout value.
1023 * @set_cqm_rssi_config: Configure connection quality monitor RSSI threshold. 1025 * @set_cqm_rssi_config: Configure connection quality monitor RSSI threshold.
1024 * 1026 *
1025 */ 1027 */
diff --git a/net/wireless/core.c b/net/wireless/core.c
index 7fdb9409ad2a..40cbbbfbccbf 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -704,7 +704,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
704 wdev->ps = true; 704 wdev->ps = true;
705 else 705 else
706 wdev->ps = false; 706 wdev->ps = false;
707 wdev->ps_timeout = 100; 707 /* allow mac80211 to determine the timeout */
708 wdev->ps_timeout = -1;
708 if (rdev->ops->set_power_mgmt) 709 if (rdev->ops->set_power_mgmt)
709 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev, 710 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev,
710 wdev->ps, 711 wdev->ps,