Skip to content

Commit d69efa5

Browse files
prashantraradbridge
authored andcommitted
Revert "Fixing changes to make greentea test mbed-os-tests-netsocket-connectivity pass for target Realtek AMEBA"
This reverts commit 1fcfced.
1 parent fc24d80 commit d69efa5

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
@@ -247,9 +247,8 @@ nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
247247
nsapi_error_t RTWInterface::disconnect()
248248
{
249249
char essid[33];
250-
250+
251251
wlan_emac_link_change(false);
252-
mbed_lwip_bringdown();
253252
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
254253
return NSAPI_ERROR_NO_CONNECTION;
255254
if(wifi_disconnect()<0){

0 commit comments

Comments
 (0)