On Wed, 2016-02-17 at 14:52 -0800, Naveen Singh wrote:
1) dhcp_callback in network.c gets called from dhcp state machine
after losing the lease.
2) Since it is a failure case, dhcp_failure gets called
At _this_ point the service needs to be taken to ready state.
3) From dhcp_failure we call __connman_ipconfig_gateway_remove which
ends up calling __connman_connection_gateway_remove.
Yes, the above patch addresses only point 3). I'm not really sure it
will work as expected, it is possible that ConnMan anyway restores the
gateway. Needs more investigation.
Now with your fix that you suggested even though we have cleared
address we are still making the state as READY which probably is not
the right thing to do. Do you think doing a state machine transition
from dhcp_failure to CONFIGURATION is the right thing to do?