aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-09-17 04:55:28 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-11-19 12:45:45 -0500
commit8cd4d4563ef0a518002c4a8f47dd950afe386ea8 (patch)
tree11aac072065c8eeaa882b3386e9368107defa12f /include/uapi/linux
parent256da02d1806c740be97576a5e8548d658858319 (diff)
cfg80211: add wowlan net-detect support
Add a new WoWLAN API to enable net-detect as a wake up trigger. Net-detect allows the device to scan in the background while the host is asleep to wake up the host system when a matching network is found. Reuse the scheduled scan attributes to specify how the scan is performed while suspended and the matches that will trigger a wake event. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nl80211.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 365db67ca71d..d23208194e3c 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -1686,6 +1686,7 @@ enum nl80211_commands {
1686 * 1686 *
1687 * @NL80211_ATTR_OPER_CLASS: operating class 1687 * @NL80211_ATTR_OPER_CLASS: operating class
1688 * 1688 *
1689 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
1689 * @NL80211_ATTR_MAX: highest attribute number currently defined 1690 * @NL80211_ATTR_MAX: highest attribute number currently defined
1690 * @__NL80211_ATTR_AFTER_LAST: internal use 1691 * @__NL80211_ATTR_AFTER_LAST: internal use
1691 */ 1692 */
@@ -2043,6 +2044,7 @@ enum nl80211_attrs {
2043 /* add attributes here, update the policy in nl80211.c */ 2044 /* add attributes here, update the policy in nl80211.c */
2044 2045
2045 __NL80211_ATTR_AFTER_LAST, 2046 __NL80211_ATTR_AFTER_LAST,
2047 NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
2046 NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 2048 NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
2047}; 2049};
2048 2050
@@ -3610,6 +3612,25 @@ struct nl80211_pattern_support {
3610 * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only, 3612 * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only,
3611 * the TCP connection ran out of tokens to use for data to send to the 3613 * the TCP connection ran out of tokens to use for data to send to the
3612 * service 3614 * service
3615 * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network
3616 * is detected. This is a nested attribute that contains the
3617 * same attributes used with @NL80211_CMD_START_SCHED_SCAN. It
3618 * specifies how the scan is performed (e.g. the interval and the
3619 * channels to scan) as well as the scan results that will
3620 * trigger a wake (i.e. the matchsets).
3621 * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute
3622 * containing an array with information about what triggered the
3623 * wake up. If no elements are present in the array, it means
3624 * that the information is not available. If more than one
3625 * element is present, it means that more than one match
3626 * occurred.
3627 * Each element in the array is a nested attribute that contains
3628 * one optional %NL80211_ATTR_SSID attribute and one optional
3629 * %NL80211_ATTR_SCAN_FREQUENCIES attribute. At least one of
3630 * these attributes must be present. If
3631 * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one
3632 * frequency, it means that the match occurred in more than one
3633 * channel.
3613 * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers 3634 * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers
3614 * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number 3635 * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number
3615 * 3636 *
@@ -3635,6 +3656,8 @@ enum nl80211_wowlan_triggers {
3635 NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH, 3656 NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH,
3636 NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST, 3657 NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST,
3637 NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, 3658 NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
3659 NL80211_WOWLAN_TRIG_NET_DETECT,
3660 NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
3638 3661
3639 /* keep last */ 3662 /* keep last */
3640 NUM_NL80211_WOWLAN_TRIG, 3663 NUM_NL80211_WOWLAN_TRIG,