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

esp32s3: Fail to send packet when enable host name and mDNS responder #86397

Open
phb98 opened this issue Feb 27, 2025 · 0 comments
Open

esp32s3: Fail to send packet when enable host name and mDNS responder #86397

phb98 opened this issue Feb 27, 2025 · 0 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: ESP32 Espressif ESP32

Comments

@phb98
Copy link

phb98 commented Feb 27, 2025

Describe the bug
When running wifi shell example with these config enable

CONFIG_NET_HOSTNAME_ENABLE=y    
CONFIG_NET_HOSTNAME="zephyr"        
CONFIG_MDNS_RESPONDER=y 

On the first "wifi scan" command, esp_wifi_drv indicate that it fail to send a packet.
Not sure what the packet is. The return code is 0x3006(ESP_ERR_WIFI_STATE).
There is still scan result return.
To Reproduce
Run wifi shell example with those config above, then scan wifi.

Expected behavior
No fail to send packet log

Impact
On my project, enable those configs lead to fatal crash when scanning wifi. To isolate i run this example
and check if there were anything wrong with wifi. Looklike it has, but it does not crash like my project.

Logs and console output

here is the dump packet.

[00:00:02.006,000] <err> esp32_wifi: pkt to send 0x3fcaa6d0 len 46 buf 0x3fcb141a
[00:00:02.006,000] <err> esp32_wifi: Pkt data:
                                     01 00 5e 00 00 fb d8 3b  da 4d a9 a8 08 00 46 00 |..^....; .M....F.
                                     00 20 00 00 00 00 01 02  43 dd 00 00 00 00 e0 00 |. ...... C.......
                                     00 fb 94 04 00 00 16 00  09 04 e0 00 00 fb       |........ ......  
[00:00:02.006,000] <err> esp32_wifi: Failed to send packet:0x3006

Environment (please complete the following information):
Zephyr main branch, commit id: af2f497

Additional context

@phb98 phb98 added the bug The issue is a bug, or the PR is fixing a bug label Feb 27, 2025
@henrikbrixandersen henrikbrixandersen added the platform: ESP32 Espressif ESP32 label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: ESP32 Espressif ESP32
Projects
None yet
Development

No branches or pull requests

3 participants