From b56ab478ee644f00fc661716b54f0b0d2690096a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Sch=C3=A4fer?= Date: Sat, 16 Nov 2019 21:18:50 +0100 Subject: [PATCH] esp_wifi v3.3 changes see https://github.com/espressif/esp-idf/issues/4311 https://github.com/espressif/esp-idf/issues/4005 --- src/wifiscan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wifiscan.cpp b/src/wifiscan.cpp index 3839bf06..e664be50 100644 --- a/src/wifiscan.cpp +++ b/src/wifiscan.cpp @@ -74,6 +74,7 @@ void wifi_sniffer_init(void) { ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE)); // no modem power saving ESP_ERROR_CHECK(esp_wifi_set_promiscuous_filter(&filter)); // set frame filter ESP_ERROR_CHECK(esp_wifi_set_promiscuous_rx_cb(&wifi_sniffer_packet_handler)); + ESP_ERROR_CHECK(esp_wifi_start()); //for esp_wifi v3.3 ESP_ERROR_CHECK(esp_wifi_set_promiscuous(true)); // now switch on monitor mode // setup wifi channel rotation timer