-->
Page 1 of 1

connstatus.cgi showing wrong status. Bug?

PostPosted: Thu May 07, 2015 11:40 am
by dayzman
Hi

If I visit http://192.168.4.1/wifi/connstatus.cgi I get 'idle' even when the device is connected to an AP on bootup. My reading is that, on boot up, resetTimerCb() in cgiwifi.c doesn't get called so connTryStatus doesn't take the value CONNTRY_WORKING. On the other hand, connTryStatus never takes the value CONNTRY_SUCCESS.

Should connTryStatus take CONNTRY_SUCCESS the device connects to an AP on bootup? I don't think the connection status should be 'idle' when there's already an established connection.

Thanks

Re: connstatus.cgi showing wrong status. Bug?

PostPosted: Thu May 07, 2015 7:41 pm
by Sprite_tm
Connstatus.cgi is meant to show the status of the link when associating. The 'idle' means that there's no new association with an AP going on, the 'working' means it's actually trying to associate. Maybe I should include a few comments that clarify that use.

Re: connstatus.cgi showing wrong status. Bug?

PostPosted: Thu May 07, 2015 10:40 pm
by dayzman
Sprite_tm wrote:Connstatus.cgi is meant to show the status of the link when associating. The 'idle' means that there's no new association with an AP going on, the 'working' means it's actually trying to associate. Maybe I should include a few comments that clarify that use.


I see. But then CONNTRY_SUCCESS is an enum but it's never used.

Re: connstatus.cgi showing wrong status. Bug?

PostPosted: Fri May 08, 2015 3:30 am
by Sprite_tm
dayzman wrote:I see. But then CONNTRY_SUCCESS is an enum but it's never used.


That's because the CGI routine actually detects the success state in a different way, so that state in the enum wasn't needed.