Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32c6 returning WiFi primary channel for all packets as 0 in promiscuous mode (IDFGH-11022) #12205

Closed
3 tasks done
fliptrail opened this issue Sep 7, 2023 · 5 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@fliptrail
Copy link

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.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.2-dev-2317-g3247253671

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32c6 official

Power Supply used.

USB

What is the expected behavior?

In promiscuous mode, the field channel in rx_ctrl in wifi_promiscuous_pkt_t, should indicate the correct WiFi channel in which packet is received.
This should work regardless of whether HE_SUPPORT is on or off.
This should work for all ESP SoCs.

What is the actual behavior?

In promiscuous mode, the field channel in rx_ctrl in wifi_promiscuous_pkt_t, is set as 0 for all packets received.
This bug is occurring if HE_SUPPORT is on or off.

However, this only occurs on esp32c6. The same code when flashed on esp32c3 and esp32 shows the correct recipient channel.

Steps to reproduce.

Register a callback which prints the value of channel field of rx_ctrl after parsing the buffer as wifi_promiscuous_pkt_t.

Debug Logs.

No response

More Information.

This bug is occurring if HE_SUPPORT is on or off. This only occurs on esp32c6. The same code when flashed on esp32c3 and esp32 shows the correct recipient channel.

@fliptrail fliptrail added the Type: Bug bugs in IDF label Sep 7, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 7, 2023
@github-actions github-actions bot changed the title ESP32c6 returning WiFi primary channel for all packets as 0 in promiscuous mode ESP32c6 returning WiFi primary channel for all packets as 0 in promiscuous mode (IDFGH-11022) Sep 7, 2023
@xuxiao111
Copy link
Collaborator

@fliptrail Thanks for the reply. We are aware of the issue and the fix is already in progress.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Sep 20, 2023
@xuxiao111
Copy link
Collaborator

Hi @AxelLin @fliptrail, in the latest version, it has been fixed.

@AxelLin
Copy link
Contributor

AxelLin commented Oct 19, 2023

@xuxiao111
It's difficult to trace the status, can you share the commit id for the fix?
Also please close the issue if it's fixed for all impacted branches (should be v5.1 and master).

@xuxiao111
Copy link
Collaborator

Hi @AxelLin, we are using this commit: b82a55d to fix this issue.

@xuxiao111
Copy link
Collaborator

Hi @fliptrail @AxelLin, I'm closing this issue and if you still have issues, please feel free to open another GitHub issue to track it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

5 participants