mirror of https://github.com/ARMmbed/mbed-os.git
Revert "Fixing changes to make greentea test mbed-os-tests-netsocket-connectivity pass for target Realtek AMEBA"
This reverts commit 1fcfced203
.
pull/5738/head
parent
fc24d80cff
commit
d69efa578e
|
@ -594,13 +594,11 @@ nsapi_error_t mbed_lwip_emac_init(emac_interface_t *emac)
|
||||||
// Backwards compatibility with people using DEVICE_EMAC
|
// Backwards compatibility with people using DEVICE_EMAC
|
||||||
nsapi_error_t mbed_lwip_init(emac_interface_t *emac)
|
nsapi_error_t mbed_lwip_init(emac_interface_t *emac)
|
||||||
{
|
{
|
||||||
nsapi_error_t ret = NSAPI_ERROR_OK;
|
nsapi_error_t ret;
|
||||||
mbed_lwip_core_init();
|
mbed_lwip_core_init();
|
||||||
if(netif_inited == false){
|
ret = mbed_lwip_emac_init(emac);
|
||||||
ret = mbed_lwip_emac_init(emac);
|
if (ret == NSAPI_ERROR_OK) {
|
||||||
if (ret == NSAPI_ERROR_OK) {
|
netif_inited = true;
|
||||||
netif_inited = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,7 +249,6 @@ nsapi_error_t RTWInterface::disconnect()
|
||||||
char essid[33];
|
char essid[33];
|
||||||
|
|
||||||
wlan_emac_link_change(false);
|
wlan_emac_link_change(false);
|
||||||
mbed_lwip_bringdown();
|
|
||||||
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
|
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
|
||||||
return NSAPI_ERROR_NO_CONNECTION;
|
return NSAPI_ERROR_NO_CONNECTION;
|
||||||
if(wifi_disconnect()<0){
|
if(wifi_disconnect()<0){
|
||||||
|
|
Loading…
Reference in New Issue