Skip to content

Commit

Permalink
[Bouffalolab] Fix BL602 IPv6 address generation failure (#23821)
Browse files Browse the repository at this point in the history
* Update sdk repo for local link address duplicate

* Fix restyle
  • Loading branch information
wy-hh authored and pull[bot] committed Dec 22, 2023
1 parent 8d27812 commit 1746896
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/platform/bouffalolab/BL602/lwip_default_hooks.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#ifndef _LWIP_DEFAULT_HOOKS_H_
#define _LWIP_DEFAULT_HOOKS_H_
#include "lwip/arch.h"
#include "lwip/err.h"
#include "lwip/ip_addr.h"

#ifdef CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT
extern struct netif * lwip_hook_ip6_route(const ip6_addr_t * src, const ip6_addr_t * dest);
#define LWIP_HOOK_IP6_ROUTE lwip_hook_ip6_route
#endif

#ifdef CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT
extern const ip6_addr_t * lwip_hook_nd6_get_gw(struct netif * netif, const ip6_addr_t * dest);
#define LWIP_HOOK_ND6_GET_GW lwip_hook_nd6_get_gw
#endif

#endif /* _LWIP_DEFAULT_HOOKS_H_ */
4 changes: 4 additions & 0 deletions third_party/bouffalolab/bl602/bl602_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ template("bl602_sdk") {
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/include",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver",
"${bl602_sdk_root}/components/network/dns_server/include",
"${bl602_sdk_root}/components/network/rfparam_adapter_tmp/rftlv",

"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Inc",
"${bl602_sdk_root}/components/security/blcrypto_suite/inc/blcrypto_suite",
Expand Down Expand Up @@ -259,6 +260,7 @@ template("bl602_sdk") {
#include defines
"OS_USING_FREERTOS",
"BL602_MATTER_SUPPORT",
"PBUF_POOL_SIZE=20",
"TD_DIAGNOSIS_STA",
"CONFIG_ENABLE_IPV6_ADDR_CALLBACK",
"CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT",
Expand Down Expand Up @@ -320,6 +322,7 @@ template("bl602_sdk") {
"${bl602_sdk_root}/components/stage/easyflash4/src/ef_utils.c",
"${bl602_sdk_root}/components/sys/blmtd/bl_mtd.c",
"${bl602_sdk_root}/components/sys/blota/bl_sys_ota_cli.c",
"${bl602_sdk_root}/components/utils/src/utils_hex.c",
"${bl602_sdk_root}/components/utils/src/utils_hexdump.c",
"${bl602_sdk_root}/components/utils/src/utils_sha256.c",
"${chip_root}/third_party/mbedtls/repo/library/aes.c",
Expand Down Expand Up @@ -548,6 +551,7 @@ template("bl602_sdk") {
"${bl602_sdk_root}/components/utils/src/utils_rbtree.c",

#rebase add
"${bl602_sdk_root}/components/network/rfparam_adapter_tmp/rftlv/phy_rftlv.c",
"${bl602_sdk_root}/components/network/wifi_hosal/port/wifi_hosal_bl602.c",
"${bl602_sdk_root}/components/network/wifi_hosal/wifi_hosal.c",
"${bl602_sdk_root}/components/os/bl_os_adapter/bl_os_adapter/bl_os_hal.c",
Expand Down
2 changes: 1 addition & 1 deletion third_party/bouffalolab/repo
Submodule repo updated 7 files
+4 −0 .gitmodules
+11 −0 clean
+1 −1 components
+1 −1 customer_app
+1 −1 docs
+1 −1 tools
+4 −4 version.mk

0 comments on commit 1746896

Please sign in to comment.