private fork
Fork of GSwifiInterface by
Diff: GSwifi/GSwifi.cpp
- Revision:
- 17:c30ed7b1536d
- Parent:
- 16:105b56570533
- Child:
- 19:d035412a7803
--- a/GSwifi/GSwifi.cpp Tue Mar 04 15:01:38 2014 +0000 +++ b/GSwifi/GSwifi.cpp Fri Mar 07 15:16:55 2014 +0000 @@ -109,6 +109,16 @@ if (!r) break; DBG("retry\r\n"); wait_ms(1000); + + if (_state.dhcp && i == CFG_TRYJOIN - 1) { + cmdNDHCP(0, NULL, DEFAULT_WAIT_RESP_TIMEOUT); + r = cmdWA(_state.ssid); + if (!r && _state.dhcp) { + wait_ms(1000); + r = cmdNDHCP(_state.dhcp, NULL, CFG_TIMEOUT); + } + break; + } } break; case SEC_WPA_ENT: