Page 1 of 1

Wifi Log Message meaning

Posted: Tue Jul 07, 2020 7:47 pm
by dedvalson
Hi,

I am debugging a WiFi issue and would like some understanding of the following message that comes out of the log:

Code: Select all

 wifi: new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
Is there a document somewhere that describes what the various values mean?

On the system that fails I get this. It would help a lot to understand what the 1,0 means.

Code: Select all

I (68993232) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (68993242) wifi:state: init -> auth (b0)
I (68993242) wifi:state: auth -> assoc (0)
I (68993252) wifi:state: assoc -> run (10)
I (68997302) wifi:state: run -> init (2c0)
I (68997302) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (68997302) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1

Re: Wifi Log Message meaning

Posted: Tue Jul 07, 2020 9:20 pm
by WiFive
It means primary channel 1 secondary channel 0 (none). 2c0 might give some useful info but I don't know what it means.

Re: Wifi Log Message meaning

Posted: Fri Jul 23, 2021 2:15 pm
by Neil.Macmullen
I had a search through the IDF source code (https://github.com/espressif/esp-idf) and couldn't find source for these error messages. I'm not sure if they are emitted from the ROM or included in the IDF as binaries but it's pretty frustrating. There seem to be quite a lot of google hits for
wifi: state: run -> init (2c0)
but this looks like a fairly generic failure code. Would be nice to know for sure though....

Re: Wifi Log Message meaning

Posted: Fri Jul 23, 2021 8:03 pm
by WiFive
I believe the upper byte is disconnection reason which is 2 WIFI_REASON_AUTH_EXPIRE