Closed matoha closed 3 weeks ago
Hi @matoha
We compared the differences between versions v4.4 and v5.3 regarding this line of code and found that the internal processing logic of the relevant code is the same. The difference is that in v5.3, the log level of this code was set to warning, while in v4.4, the log would not be printed. The log indicates that there is some anomaly in our internal processing of the country-related fields carried by the router's beacon/probe response, but it should not affect normal communication. If possible, please provide a wireless packet capture from the router so we can analyze the field in detail, and also provide the model and software/hardware version of the router.
Thanks.
Hi @MaxwellAlan , thanks for your response.
I have tried my phone as a hotspot and the warning goes away, so it is indeed router-specific. The country code for both is GB though so I don't think it's the country.
The router belongs to the office management company (it's building-wide Wi-Fi) and I unfortunately don't have direct access to it. Any suggestions how could I help debug this further?
Thanks Martin
Hi @matoha
Could you upload a wireless sniffer pkts for the router, we can check the country info field in the beacon/probe resp frame of the routers.
Thanks.
Hi @MaxwellAlan ,
Please find the packets attached, hopefully it is in the correct format (I am able to open it in Wireshark).
Best Martin wifi-sniff.pcap.zip
Hi @matoha
Thanks for the sniffer, it's very helpful, we will try to be compatible with this format。
I've got the same warring message. how did you solve it?
Hi,
It seems Espressif have made an update to fix this (thanks!) but I haven't had time to test it yet, just came back from holidays. The fix is on the master branch only at the moment.
Since from their comments above it seemed this is not an issue affecting the connectivity, I've silenced the warning with
esp_log_level_set("wifi", ESP_LOG_ERROR);
Certainly not a solution, but at least my terminal isn't cluttered with the warnings.
Hi
It seems Espressif have made an update to fix this (thanks!) but I haven't had time to test it yet, just came back from holidays. The fix is on the master branch only at the moment.
Fix by this commit: 8daa2e308b5ac2f08d3dc506626e7d872588e362
Answers checklist.
IDF version.
v5.3
Espressif SoC revision.
ESP32-S3 (QFN56) (revision v0.1)
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Custom board
Power Supply used.
USB
What is the expected behavior?
I have updated from IDF 4.4 to 5.3. Everything seems to work, but I keep receiving a warning on the terminal, which is printed multiple times per second. The Wi-Fi does work as expected, but I don't want to release the update to production if there are potential issues with the Wi-Fi.
I've tried searching for this warning and can't find anything. Sadly the Wi-Fi code is closed-source so I am unable to debug further.
What is the actual behavior?
See above.
Steps to reproduce.
I initialise Wi-Fi following the example here https://github.com/espressif/esp-idf/blob/v5.3/examples/wifi/getting_started/station/main/station_example_main.c
My Wi-Fi code is:
and
The warnings start after
esp_wifi_start
, not at any point before.Debug Logs.