wifiscan.cpp: frame filter

This commit is contained in:
Verkehrsrot 2019-07-23 21:06:44 +02:00
parent a6520b19ef
commit ff2b02107a

View File

@ -57,13 +57,13 @@ void wifi_sniffer_init(void) {
wificfg.nvs_enable = 0; // we don't need any wifi settings from NVRAM
wificfg.wifi_task_core_id = 0; // we want wifi task running on core 0
wifi_promiscuous_filter_t filter = {
.filter_mask = WIFI_PROMIS_FILTER_MASK_MGMT}; // only MGMT frames
//wifi_promiscuous_filter_t filter = {
// .filter_mask = WIFI_PROMIS_FILTER_MASK_MGMT}; // only MGMT frames
// .filter_mask = WIFI_PROMIS_FILTER_MASK_ALL}; // we use all frames
// wifi_promiscuous_filter_t filter = {.filter_mask =
// WIFI_PROMIS_FILTER_MASK_MGMT |
// WIFI_PROMIS_FILTER_MASK_DATA};
wifi_promiscuous_filter_t filter = {.filter_mask =
WIFI_PROMIS_FILTER_MASK_MGMT |
WIFI_PROMIS_FILTER_MASK_DATA};
ESP_ERROR_CHECK(esp_wifi_init(&wificfg)); // configure Wifi with cfg
ESP_ERROR_CHECK(