ESP32-C6 STA still transmits 802.11b (RTS @2 Mbps, data @5.5/1 Mbps) with esp_wifi_config_11b_rate(STA, true); set_protocol without 11B rejected (IDFGH-18378)
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there. (Not yet: the TX behaviour was observed on v5.4. The
set_protocolvalidator was checked in v5.4.4 and v5.5.5, and a v5.4.4 node is being trialled now.) - I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.4 (fleet build). The relevant checks were also inspected in the v5.4.4 and v5.5.5 libnet80211.a blobs.
Espressif SoC revision.
ESP32-C6 (16 MB flash modules)
Operating System used.
Linux
How did you build your project?
Command line with idf.py (espressif/idf Docker image)
Development Kit.
Custom ESP32-C6 boards (fleet of 9)
Steps to reproduce.
- STA mode, 2.4 GHz, default protocol bitmap
WIFI_PROTOCOL_11B | 11G | 11N | 11AX(0x47). - After
esp_wifi_init()and beforeesp_wifi_start(), callesp_wifi_config_11b_rate(WIFI_IF_STA, true). It returnsESP_OK; we read the return code back from the running node. - Associate to an 802.11ax AP whose WLAN has a 12 Mbps minimum rate, with 11b rates not advertised.
- Run steady uplink traffic (~25 UDP packets/s, ~450 B) plus ~50 ICMP echo/s to the gateway, and let other clients on the same channel come and go.
- Capture the air at the AP (monitor-mode radiotap) and read the AP's per-station uplink rate.
What is the expected behavior?
As we read the Wi-Fi API guide's protocol table for the C6, "11B|11G|11N|11AX bitmap + esp_wifi_config_11b_rate(ifx, true)" is the supported way to run a 2.4 GHz STA without 802.11b rates. So we expected the STA never to transmit at 1, 2, 5.5 or 11 Mbps DSSS/CCK.
What is the actual behavior?
The STA still transmits 802.11b frames:
- RTS at 2 Mbps and QoS Data at 5.5 Mbps (retries). In one 60 s monitor capture, one node sent 1,093 of its 10,263 frames as 11b (582 RTS @ 2 Mbps + 511 QoS Data @ 5.5 Mbps). Three other nodes sent 69-145 such frames per minute, and five sent none.
- Sustained 1 Mbps uplink after the link degrades. When other clients rejoin the channel, the AP reports the STA's uplink rate at 1.0 Mbps, and it stays there for 45-54 minutes before rate control recovers by itself (no reconnect or reboot involved). At about 25 pkt/s, one STA stuck at 1 Mbps uses roughly 10% of the channel, which makes the channel slower for every other station.
We also tried to remove 11B from the bitmap. esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_11AX) (0x46) returns ESP_ERR_INVALID_ARG on silicon, and the read-back bitmap stays 0x47. Disassembly shows the C6 2.4 GHz validator accepts only 0x01, 0x03, 0x07, 0x47 (plus LR) in v5.4, v5.4.4 and v5.5.5, which matches the esp_wifi.h comment. So esp_wifi_config_11b_rate is the only knob available, and it does not cover these frames.
Steps to reproduce (minimal)
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &sta_cfg));
ESP_ERROR_CHECK(esp_wifi_config_11b_rate(WIFI_IF_STA, true)); // returns ESP_OK
// esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_11AX)
// -> ESP_ERR_INVALID_ARG
ESP_ERROR_CHECK(esp_wifi_start());More Information.
Questions:
- Is
esp_wifi_config_11b_rate(ifx, true)meant to cover control frames (RTS) and rate-control fallback/retries, or only the initial data rate? - Is there a supported way on the ESP32-C6 to stop the STA from ever transmitting DSSS/CCK on 2.4 GHz? For example: a protocol bitmap without 11B, a minimum TX rate for rate control, or an RTS rate setting.
- If not, could one be added? For a STA associated to a modern AP with a 12 Mbps minimum rate, falling back to 1 Mbps and staying there for close to an hour costs the whole channel.
We can provide the capture-derived per-frame rate tables, and we can test a patched library on our fleet.
Source: espressif/esp-idf