aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-04-27 05:47:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-27 16:09:22 -0400
commit195e294d21e88af879da4f88db2ceeb4ec28a755 (patch)
tree22a75db60cc8743888054460db85eb9a76b0cecb /include/net/mac80211.h
parent3a37495268ab45507b4cab9d4cb18c5496ab7a10 (diff)
mac80211: Determine dynamic PS timeout based on ps-qos network latency
Determine the dynamic PS timeout based on the configured ps-qos network latency. For backwards wext compatibility, allow the dynamic PS timeout configured by the cfg80211 to overrule the automatically determined value. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 7dc5a6790397..c26de6cb12f8 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -668,6 +668,9 @@ enum ieee80211_smps_mode {
668 * @dynamic_ps_timeout: The dynamic powersave timeout (in ms), see the 668 * @dynamic_ps_timeout: The dynamic powersave timeout (in ms), see the
669 * powersave documentation below. This variable is valid only when 669 * powersave documentation below. This variable is valid only when
670 * the CONF_PS flag is set. 670 * the CONF_PS flag is set.
671 * @dynamic_ps_forced_timeout: The dynamic powersave timeout (in ms) configured
672 * by cfg80211 (essentially, wext) If set, this value overrules the value
673 * chosen by mac80211 based on ps qos network latency.
671 * 674 *
672 * @power_level: requested transmit power (in dBm) 675 * @power_level: requested transmit power (in dBm)
673 * 676 *
@@ -687,7 +690,7 @@ enum ieee80211_smps_mode {
687 */ 690 */
688struct ieee80211_conf { 691struct ieee80211_conf {
689 u32 flags; 692 u32 flags;
690 int power_level, dynamic_ps_timeout; 693 int power_level, dynamic_ps_timeout, dynamic_ps_forced_timeout;
691 int max_sleep_period; 694 int max_sleep_period;
692 695
693 u16 listen_interval; 696 u16 listen_interval;