mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-04 16:13:33 +08:00
fix(lib): add esp_wifi_set_recv_data_frame_payload to enable or disable receiving data frame payload
This commit is contained in:
@ -17,6 +17,13 @@ config FILTER_MASK_DATA
|
||||
bool "Receive data packets"
|
||||
default n
|
||||
|
||||
config FILTER_MASK_DATA_FRAME_PAYLOAD
|
||||
depends on FILTER_MASK_DATA
|
||||
bool "Receive data frame payload"
|
||||
default n
|
||||
help
|
||||
Select this option to enable recv data frame payload
|
||||
|
||||
config FILTER_MASK_MISC
|
||||
bool "Receive misc packets"
|
||||
default n
|
||||
|
@ -131,6 +131,12 @@ static void sniffer_task(void* pvParameters)
|
||||
sniffer_filter.filter_mask |= WIFI_PROMIS_FILTER_MASK_DATA;
|
||||
#endif
|
||||
|
||||
#if CONFIG_FILTER_MASK_DATA_FRAME_PAYLOAD
|
||||
/*Enable to receive the correct data frame payload*/
|
||||
extern esp_err_t esp_wifi_set_recv_data_frame_payload(bool enable_recv);
|
||||
ESP_ERROR_CHECK(esp_wifi_set_recv_data_frame_payload(true));
|
||||
#endif
|
||||
|
||||
#if CONFIG_FILTER_MASK_MISC
|
||||
sniffer_filter.filter_mask |= WIFI_PROMIS_FILTER_MASK_MISC;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user