Skip to content

fix realtek_rtl8195am IPv6 build fails update #7056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion targets/TARGET_Realtek/TARGET_AMEBA/rtw_emac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void RTW_EMAC::get_ifname(char *name, uint8_t size) const

uint8_t RTW_EMAC::get_hwaddr_size() const
{
return ETHARP_HWADDR_LEN;
return ETH_HWADDR_LEN;
}

bool RTW_EMAC::get_hwaddr(uint8_t *addr) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

#include <dhcp/dhcps.h>
//#include <dhcp/dhcps.h>
//#include <flash/stm32_flash.h>
#include <platform/platform_stdlib.h>
#include <wifi/wifi_conf.h>
Expand Down Expand Up @@ -1001,7 +1001,9 @@ int wifi_off(void)
return 0;
}
#if CONFIG_LWIP_LAYER
dhcps_deinit();
#ifndef CONFIG_MBED_ENABLED
dhcps_deinit();
#endif
#if !DEVICE_EMAC
LwIP_DHCP(0, DHCP_STOP);
netif_set_down(&xnetif[0]);
Expand Down Expand Up @@ -1043,7 +1045,9 @@ int wifi_off(void)
int wifi_off_fastly(void)
{
#if CONFIG_LWIP_LAYER
dhcps_deinit();
#ifndef CONFIG_MBED_ENABLED
dhcps_deinit();
#endif
#if !DEVICE_EMAC
LwIP_DHCP(0, DHCP_STOP);
#endif
Expand Down Expand Up @@ -1688,7 +1692,9 @@ int wifi_restart_ap(
}

// stop dhcp server
dhcps_deinit();
#ifndef CONFIG_MBED_ENABLED
dhcps_deinit();
#endif

#ifdef CONFIG_CONCURRENT_MODE
if(idx > 0){
Expand Down
Loading