diff --git a/platform/lwip/bnep_lwip.c b/platform/lwip/bnep_lwip.c index 38a2c7f3d..23b371176 100644 --- a/platform/lwip/bnep_lwip.c +++ b/platform/lwip/bnep_lwip.c @@ -41,7 +41,6 @@ * bnep_lwip_lwip_.c */ -#include "lwip/netif.h" #include "lwip/sys.h" #include "lwip/arch.h" #include "lwip/api.h" @@ -556,3 +555,7 @@ uint8_t bnep_lwip_connect(bd_addr_t addr, uint16_t l2cap_psm, uint16_t uuid_src, return ERROR_CODE_SUCCESS; } } + +struct netif *bnep_lwip_get_interface(void){ + return &btstack_netif; +} diff --git a/platform/lwip/bnep_lwip.h b/platform/lwip/bnep_lwip.h index 367c9dfde..b657c7d94 100644 --- a/platform/lwip/bnep_lwip.h +++ b/platform/lwip/bnep_lwip.h @@ -49,6 +49,8 @@ #include "bluetooth.h" #include "btstack_defines.h" +#include "lwip/netif.h" + #if defined __cplusplus extern "C" { #endif @@ -80,6 +82,11 @@ uint8_t bnep_lwip_register_service(uint16_t service_uuid, uint16_t max_frame_siz */ uint8_t bnep_lwip_connect(bd_addr_t addr, uint16_t l2cap_psm, uint16_t uuid_src, uint16_t uuid_dest); +/** + * @brief Get the Bluetooth lwIP network interface + */ +struct netif *bnep_lwip_get_interface(void); + #if defined __cplusplus } #endif