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:
Dong Heng
2019-11-26 19:11:50 +08:00
5 changed files with 14 additions and 1 deletions

View File

@ -1,7 +1,7 @@
gwen:
core: 27927af
net80211: 27927af
pp: 27927af
pp: 053d65b
wpa: 27927af
espnow: 27927af
wps: 27927af

Binary file not shown.

Binary file not shown.

View File

@ -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

View File

@ -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