| diff --git a/nl80211.h b/nl80211.h | |
| index 7ba71e4..3ef44f1 100644 | |
| --- a/nl80211.h | |
| +++ b/nl80211.h | |
| @@ -2222,12 +2222,30 @@ enum nl80211_wowlan_packet_pattern_attr { | |
| __NL80211_WOWLAN_PKTPAT_INVALID, | |
| NL80211_WOWLAN_PKTPAT_MASK, | |
| NL80211_WOWLAN_PKTPAT_PATTERN, | |
| NL80211_WOWLAN_PKTPAT_OFFSET, | |
| + NL80211_WOWLAN_PKTPAT_ACTION = NL80211_WOWLAN_PKTPAT_OFFSET + 10, | |
| NUM_NL80211_WOWLAN_PKTPAT, | |
| MAX_NL80211_WOWLAN_PKTPAT = NUM_NL80211_WOWLAN_PKTPAT - 1, | |
| }; | |
| /** | |
| + * enum nl80211_wowlan_action - WoWLAN packet pattern action | |
| + * @NL80211_WOWLAN_ACTION_ALLOW: this pattern should wake up the host | |
| + * and the packet should be forwarded to the host unless this packet | |
| + * matches a DROP rule. | |
| + * @NL80211_WOWLAN_ACTION_DROP: a packet containing this pattern shouldn't | |
| + * wake up the host. | |
| + */ | |
| +enum nl80211_wowlan_action { | |
| + NL80211_WOWLAN_ACTION_ALLOW, | |
| + NL80211_WOWLAN_ACTION_DROP, | |
| + | |
| + /* keep last */ | |
| + NUM_NL80211_WOWLAN_ACTION, | |
| + MAX_NL80211_WOWLAN_ACTION = NUM_NL80211_WOWLAN_ACTION - 1, | |
| +}; | |
| + | |
| +/** | |
| * struct nl80211_wowlan_pattern_support - pattern support information | |
| * @max_patterns: maximum number of patterns supported | |
| * @min_pattern_len: minimum length of each pattern |