History

nl80211: add packet offset information for wowlan pattern

If user knows the location of a wowlan pattern to be matched in Rx packet, he can provide an offset with the pattern. This will help drivers to ignore initial bytes and match the pattern efficiently.

Amitkumar Karwar committed 13 years ago

Commit bb92d191 parent 66d57573 files · +60 −30Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+9−3
@@ -2910,6 +2910,8 @@ enum nl80211_tx_power_setting { · 2909 unmodified lines
29102910 * Note that the pattern matching is done as though frames were not
29112911 * 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked
29122912 * first (including SNAP header unpacking) and then matched.
2913+ * @NL80211_WOWLAN_PKTPAT_OFFSET: packet offset, pattern is matched after
2914+ * these fixed number of bytes of received packet
29132915 * @NUM_NL80211_WOWLAN_PKTPAT: number of attributes
29142916 * @MAX_NL80211_WOWLAN_PKTPAT: max attribute number
29152917 */
@@ -2917,6 +2919,7 @@ enum nl80211_wowlan_packet_pattern_attr { · 1 unmodified line
29172919 __NL80211_WOWLAN_PKTPAT_INVALID,
29182920 NL80211_WOWLAN_PKTPAT_MASK,
29192921 NL80211_WOWLAN_PKTPAT_PATTERN,
2922+ NL80211_WOWLAN_PKTPAT_OFFSET,
29202923
29212924 NUM_NL80211_WOWLAN_PKTPAT,
29222925 MAX_NL80211_WOWLAN_PKTPAT = NUM_NL80211_WOWLAN_PKTPAT - 1,
@@ -2927,6 +2930,7 @@ enum nl80211_wowlan_packet_pattern_attr { · 4 unmodified lines
29272930 * @max_patterns: maximum number of patterns supported
29282931 * @min_pattern_len: minimum length of each pattern
29292932 * @max_pattern_len: maximum length of each pattern
2933+ * @max_pkt_offset: maximum Rx packet offset
29302934 *
29312935 * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when
29322936 * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED in the
@@ -2936,6 +2940,7 @@ struct nl80211_wowlan_pattern_support { · 3 unmodified lines
29362940 __u32 max_patterns;
29372941 __u32 min_pattern_len;
29382942 __u32 max_pattern_len;
2943+ __u32 max_pkt_offset;
29392944 } __attribute__((packed));
29402945
29412946 /**
@@ -2951,9 +2956,10 @@ struct nl80211_wowlan_pattern_support { · 9 unmodified lines
29512956 * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns
29522957 * which are passed in an array of nested attributes, each nested attribute
29532958 * defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern.
2954− * Each pattern defines a wakeup packet. The matching is done on the MSDU,
2955− * i.e. as though the packet was an 802.3 packet, so the pattern matching
2956− * is done after the packet is converted to the MSDU.
2959+ * Each pattern defines a wakeup packet. Packet offset is associated with
2960+ * each pattern which is used while matching the pattern. The matching is
2961+ * done on the MSDU, i.e. as though the packet was an 802.3 packet, so the
2962+ * pattern matching is done after the packet is converted to the MSDU.
29572963 *
29582964 * In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute
29592965 * carrying a &struct nl80211_wowlan_pattern_support.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t