SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
TI recommends creating filters in a disabled state, and then enabling all the relevant filters simultaneously. A filter with its corresponding bit set to 1 is enabled, and a filter with its corresponding bit set to 0 is disabled; filters which are not defined are ignored.
To enable or disable filters, call the sl_WlanSet API with the following arguments:
Example:
_u16 Size = sizeof(SlWlanRxFilterRetrieveStateBuff_t);
_u16 opt = SL_WLAN_RX_FILTER_STATE;
RetVal = sl_WlanGet( SL_WLAN_RX_FILTERS_ID, &opt , &Size ,
(unsigned char *)&RxFilterIdBitField);
SL_WLAN_CLEARBIT8(OutputBuff.FilterIdMask,selectedfilter);
RetVal = sl_WlanSet( SL_WLAN_RX_FILTERS_ID, SL_WLAN_RX_FILTER_STATE,
sizeof(SlWlanRxFilterOperationCommandBuff_t),
(unsigned char*)&RxFilterIdBitField);