How to control channel using esp_wifi_80211_tx

mpetitjean
Posts: 2
Joined: Wed Sep 26, 2018 2:13 pm

How to control channel using esp_wifi_80211_tx

Postby mpetitjean » Wed Sep 26, 2018 2:20 pm

Hello,

I am trying to send beacon frames using the new esp_wifi_80211_tx API. In order to do so, I configure the ESP32 in Station mode:

Code: Select all

wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
    tcpip_adapter_init();
    ESP_ERROR_CHECK(esp_event_loop_init(event_handler, NULL));
    ESP_ERROR_CHECK(esp_wifi_init(&cfg));
    ESP_ERROR_CHECK(esp_wifi_set_storage(WIFI_STORAGE_RAM));;
    ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
    ESP_ERROR_CHECK(esp_wifi_start());
    ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));
Does anyone know if configuring the channel field of wifi_sta_config_t will allow to send the frame on the specified channel ?

Who is online

Users browsing this forum: No registered users and 77 guests