Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Commit f6797e3

Browse files
committed
Merge branch 'bugfix/fix_the_failure_of_smartconfig' into 'master'
fix: Use larger promiscuous data length See merge request esp-components/esp-aliyun!109
2 parents 77021be + fdb2a0d commit f6797e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform/hal/os/espressif/HAL_AWSS_espressif.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ void HAL_Awss_Open_Monitor(_IN_ awss_recv_80211_frame_cb_t cb)
298298
ESP_ERROR_CHECK(esp_wifi_set_promiscuous(0));
299299
ESP_ERROR_CHECK(esp_wifi_set_promiscuous_rx_cb(wifi_sniffer_cb));
300300
ESP_ERROR_CHECK(esp_wifi_set_promiscuous(1));
301+
#ifdef CONFIG_TARGET_PLATFORM_ESP8266
302+
extern void esp_wifi_set_promiscuous_data_len(uint32_t);
303+
esp_wifi_set_promiscuous_data_len(512);
304+
#endif
301305
ESP_ERROR_CHECK(esp_wifi_set_channel(6, 0));
302306
ESP_LOGI(TAG, "wifi running at monitor mode");
303307
}

0 commit comments

Comments
 (0)