Skip to content

Commit

Permalink
Merge pull request #6160 from TeemuKultala/status_callback_fix
Browse files Browse the repository at this point in the history
fix issue 6150
  • Loading branch information
cmonr committed Feb 23, 2018
2 parents 55f710f + 34ef116 commit 1d1eef4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions features/FEATURE_LWIP/lwip-interface/lwip_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,7 @@ static bool lwip_ppp = false;

static nsapi_error_t mbed_set_dhcp(struct netif *lwip_netif)
{
if (!lwip_ppp) {
netif_set_up(lwip_netif);
}
netif_set_up(lwip_netif);

#if LWIP_DHCP
if (lwip_dhcp && lwip_dhcp_has_to_be_set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ nsapi_error_t PPPCellularInterface::connect()
* mbed_ppp_init() is a blocking call, it will block until
* connected, or timeout after 30 seconds*/
retcode = nsapi_ppp_connect(_fh, callback(this, &PPPCellularInterface::ppp_status_cb), _uname, _pwd, _stack);
if (retcode == NSAPI_ERROR_OK && _connect_is_blocking) {
_connect_status = NSAPI_STATUS_GLOBAL_UP;
}
} while ((_connect_status == NSAPI_STATUS_CONNECTING && _connect_is_blocking) &&
apn_config && *apn_config);

Expand Down

0 comments on commit 1d1eef4

Please sign in to comment.