How to disable WIFI_PROTOCOL_11AX on the ESP32-C5?
Posted: Thu Mar 05, 2026 11:38 pm
Hi,
I'm trying to disable WiFi-6 for testing on my ESP32-C5.
I tried the following:
And the log line gives me 0x47. 0x40 is WIFI_PROTOCOL_11AX. So, is this setting of the protocols not support on the ESP32-C5?
Best regards,
Frank
I'm trying to disable WiFi-6 for testing on my ESP32-C5.
I tried the following:
Code: Select all
wifi_protocols_t protocols;
protocols.ghz_2g = WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N;
protocols.ghz_5g = WIFI_PROTOCOL_11A|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_11AC;
esp_wifi_set_protocols(WIFI_IF_STA, &protocols); // Yes, I checked, no errors
esp_wifi_get_protocols(WIFI_IF_STA, &protocols);
ESP_LOGI("hc_wifi", "protocols.ghz_2g = %X", static_cast<unsigned>(protocols.ghz_2g));
esp_wifi_start();
Best regards,
Frank