History

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.

Luciano Coelho committed 12 years ago

Commit 8cd4d451 parent 256da024 files · +175 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+23−0
@@ -1686,6 +1686,7 @@ enum nl80211_commands { · 1685 unmodified lines
16861686 *
16871687 * @NL80211_ATTR_OPER_CLASS: operating class
16881688 *
1689+ * @NUM_NL80211_ATTR: total number of nl80211_attrs available
16891690 * @NL80211_ATTR_MAX: highest attribute number currently defined
16901691 * @__NL80211_ATTR_AFTER_LAST: internal use
16911692 */
@@ -2043,6 +2044,7 @@ enum nl80211_attrs { · 351 unmodified lines
20432044 /* add attributes here, update the policy in nl80211.c */
20442045
20452046 __NL80211_ATTR_AFTER_LAST,
2047+ NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
20462048 NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
20472049 };
20482050
@@ -3610,6 +3612,25 @@ struct nl80211_pattern_support { · 1561 unmodified lines
36103612 * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only,
36113613 * the TCP connection ran out of tokens to use for data to send to the
36123614 * 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.
36133634 * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers
36143635 * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number
36153636 *
@@ -3635,6 +3656,8 @@ enum nl80211_wowlan_triggers { · 19 unmodified lines
36353656 NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH,
36363657 NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST,
36373658 NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
3659+ NL80211_WOWLAN_TRIG_NET_DETECT,
3660+ NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
36383661
36393662 /* keep last */
36403663 NUM_NL80211_WOWLAN_TRIG,