Filter Creation
181
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
Rx Filters
•
SL_WLAN_RX_FILTER_HFIELD_IPV6_DST_ADDR
•
SL_WLAN_RX_FILTER_HFIELD_PORT_SRC
•
SL_WLAN_RX_FILTER_HFIELD_PORT_DST
•
SL_WLAN_RX_FILTER_HFIELD_L1_PAYLOAD_PATTERN
•
SL_WLAN_RX_FILTER_HFIELD_L4_PAYLOAD_PATTERN
11.4.3.2 Compare Functions
A list of the supported compare functions follows:
•
Equal – SL_WLAN_RX_FILTER_CMP_FUNC_EQUAL
•
Not equal – SL_WLAN_RX_FILTER_CMP_FUNC_NOT_EQUAL_TO
•
In between – SL_WLAN_RX_FILTER_CMP_FUNC_IN_BETWEEN; in this case, two arguments are
required.
•
Not in between – SL_WLAN_RX_FILTER_CMP_FUNC_NOT_IN_BETWEEN; in this case, two
arguments are required.
lists the possible compare function for per filter type.
Table 11-4. Possible Compare Functions
Header Rule
Supported functions
==
!=
<>
!<>
SL_WLAN_RX_FILTER_HFIELD_FRAME_TYPE
+
+
–
–
SL_WLAN_RX_FILTER_HFIELD_FRAME_SUBTYPE
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_BSSID
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_MAC_SRC_ ADDR
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_MAC_DST_ADDR
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_FRAME_LENGTH
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_ETHER_TYPE
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_IP_VERSION
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_IP_PROTOCOL
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_IPV4_SRC_ADDR
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_IPV4_DST_ADDR
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_IPV6_SRC_ADRR
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_IPV6_DST_ADDR
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_PORT_SRC
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_PORT_DST
+
+
+
+
SL_WLAN_RX_FILTER_HFIELD_L1_PAYLOAD_PATTERN
+
–
–
–
SL_WLAN_RX_FILTER_HFIELD_L4_PAYLOAD_PATTERN
+
–
–
–
11.4.3.3 Rule Fields
A list of the header rule fields follows. Each field is described with its possible values, and in which system
state it is available (for system states, see
).
•
In
, whenever ASCII parameters are used, the host code must set the filter flags as follows:
FilterFlags |= ~SL_WLAN_RX_FILTER_BINARY
•
In
, whenever byte stream parameters are used, the host code must set the filter flags as
follows: FilterFlags |= RX_FILTER_BINARY
describes the rules types and their possible values.