mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-06 13:59:16 +08:00
Merge branch 'bugfix/fix_recv_data_frame_error' into 'master'
fix(lib): fix receive data frame error in sniffer mode See merge request sdk/ESP8266_RTOS_SDK!1195
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
gwen:
|
gwen:
|
||||||
core: 27927af
|
core: 27927af
|
||||||
net80211: 27927af
|
net80211: 27927af
|
||||||
pp: 27927af
|
pp: 053d65b
|
||||||
wpa: 27927af
|
wpa: 27927af
|
||||||
espnow: 27927af
|
espnow: 27927af
|
||||||
wps: 27927af
|
wps: 27927af
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -17,6 +17,13 @@ config FILTER_MASK_DATA
|
|||||||
bool "Receive data packets"
|
bool "Receive data packets"
|
||||||
default n
|
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
|
config FILTER_MASK_MISC
|
||||||
bool "Receive misc packets"
|
bool "Receive misc packets"
|
||||||
default n
|
default n
|
||||||
|
@ -131,6 +131,12 @@ static void sniffer_task(void* pvParameters)
|
|||||||
sniffer_filter.filter_mask |= WIFI_PROMIS_FILTER_MASK_DATA;
|
sniffer_filter.filter_mask |= WIFI_PROMIS_FILTER_MASK_DATA;
|
||||||
#endif
|
#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
|
#if CONFIG_FILTER_MASK_MISC
|
||||||
sniffer_filter.filter_mask |= WIFI_PROMIS_FILTER_MASK_MISC;
|
sniffer_filter.filter_mask |= WIFI_PROMIS_FILTER_MASK_MISC;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user