## ESP32-C5: Promiscuous callback reports wrong 802.11 frame type (CTRL → MGMT, DATA → MGMT)
**Chip:** ESP32-C5
**IDF version:** v5.4.2
**Setup:** STA+AP dual-chip, 5GHz Ch40, 802.11n HT20
---
### Summary
The `wifi_promiscuous_pkt_type_t` parameter passed by the driver to the promiscuous ...
Search found 2 matches
- Wed May 13, 2026 11:36 am
- Forum: General Discussion
- Topic: ESP32-C5: Promiscuous callback reports wrong 802.11 frame type
- Replies: 0
- Views: 69
- Wed May 13, 2026 11:31 am
- Forum: ESP-IDF 中文讨论版
- Topic: ESP32-C5:混杂模式回调的帧类型分类与 802.11 标准不符
- Replies: 0
- Views: 55
ESP32-C5:混杂模式回调的帧类型分类与 802.11 标准不符
## ESP32-C5:混杂模式回调的帧类型分类与 802.11 标准不符
**芯片:** ESP32-C5
**IDF 版本:** v5.4.2
**配置:** STA+AP 双芯片,5GHz Ch40,802.11n HT20
---
### 问题描述
混杂模式回调 `esp_wifi_set_promiscuous_rx_cb` 中传入的 `wifi_promiscuous_pkt_type_t type` 参数与实际 802.11 Frame Control 字段的帧类型不一致。
通过手动解析 FC 字段 `(payload[0] >> 2) & 0x03` 获取真实 802 ...
**芯片:** ESP32-C5
**IDF 版本:** v5.4.2
**配置:** STA+AP 双芯片,5GHz Ch40,802.11n HT20
---
### 问题描述
混杂模式回调 `esp_wifi_set_promiscuous_rx_cb` 中传入的 `wifi_promiscuous_pkt_type_t type` 参数与实际 802.11 Frame Control 字段的帧类型不一致。
通过手动解析 FC 字段 `(payload[0] >> 2) & 0x03` 获取真实 802 ...