The filter flag dictates the filter behavior, by a bit field, and the following flags are supported:
- SL_WLAN_RX_FILTER_BINARY – For creating a basic filter, usually the binary flag is set; a nonbinary filter is supported for both filter types. The nonbinary filter lets the user set the rule argument as a string instead of binary values. See Section 12.4.4 for the filters that support the nonbinary filter.
- SL_WLAN_RX_FILTER_ENABLE – A filter can be enabled or disabled. A disabled filter is skipped during the matching process. For better performance during the filter creation, first create the set of all required filters with the disable flag, and then, when all the filters have been created, enable all of them with a single function call.
- SL_WLAN_RX_FILTER_PERSISTENT – A filter set with a persistent flag is saved to the SFLASH and loads on each device reset. The act of saving the persistent filters to the flash is executed by calling the sl_WlanSet function with the store command SL_WLAN_RX_FILTER_STORE.