Skip to content

Commit 199ab87

Browse files
committed
Revert "Fixing changes to make greentea test mbed-os-tests-netsocket-connectivity pass for target Realtek AMEBA"
This reverts commit 1fcfced.
1 parent 1fcfced commit 199ab87

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,11 @@ nsapi_error_t mbed_lwip_emac_init(emac_interface_t *emac)
594594
// Backwards compatibility with people using DEVICE_EMAC
595595
nsapi_error_t mbed_lwip_init(emac_interface_t *emac)
596596
{
597-
nsapi_error_t ret = NSAPI_ERROR_OK;
597+
nsapi_error_t ret;
598598
mbed_lwip_core_init();
599-
if(netif_inited == false){
600-
ret = mbed_lwip_emac_init(emac);
601-
if (ret == NSAPI_ERROR_OK) {
602-
netif_inited = true;
603-
}
599+
ret = mbed_lwip_emac_init(emac);
600+
if (ret == NSAPI_ERROR_OK) {
601+
netif_inited = true;
604602
}
605603
return ret;
606604
}

targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,8 @@ nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
228228
nsapi_error_t RTWInterface::disconnect()
229229
{
230230
char essid[33];
231-
231+
232232
wlan_emac_link_change(false);
233-
mbed_lwip_bringdown();
234233
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
235234
return NSAPI_ERROR_NO_CONNECTION;
236235
if(wifi_disconnect()<0){

0 commit comments

Comments
 (0)