Skip to content

Commit

Permalink
Update sl_net_for_lwip.c source file to work with Wiseconnect 3.4.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored Nov 17, 2024
1 parent eab695e commit fda1ddf
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions components/service/network_manager/src/sl_net_for_lwip.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ sl_net_wifi_lwip_context_t *wifi_client_context = NULL;
sl_net_wifi_lwip_context_t *wifi_ap_context = NULL;
uint32_t gOverrunCount = 0;

extern sys_thread_t lwip_thread;

/******************************************************************************
Static Functions
******************************************************************************/
Expand Down Expand Up @@ -269,6 +267,11 @@ static void set_sta_link_up(sl_net_wifi_client_profile_t *profile)

#if LWIP_IPV4
uint64_t addr = wifi_client_context->netif.ip_addr.addr;
#endif
#if LWIP_IPV6
// uint64_t addr = wifi_client_context->netif.ip_addr.u_addr.ip4.addr;
#endif
#if LWIP_IPV4
SL_DEBUG_LOG("DHCP IP: %u.%u.%u.%u\n",
NETIF_IPV4_ADDRESS(addr, 0),
NETIF_IPV4_ADDRESS(addr, 1),
Expand Down Expand Up @@ -300,7 +303,7 @@ static void set_sta_link_down(void)
******************************************************************************/
sl_status_t sl_net_wifi_ap_init(sl_net_interface_t interface,
const void *configuration,
void *workspace,
const void *workspace,
sl_net_event_handler_t event_handler)
{
UNUSED_PARAMETER(interface);
Expand Down Expand Up @@ -440,3 +443,21 @@ sl_status_t sl_si91x_host_process_data_frame(sl_wifi_interface_t interface, sl_w

return SL_STATUS_OK;
}

sl_status_t sl_net_configure_ip(sl_net_interface_t interface,
const sl_net_ip_configuration_t *ip_config,
uint32_t timeout)
{
UNUSED_PARAMETER(interface);
UNUSED_PARAMETER(ip_config);
UNUSED_PARAMETER(timeout);
return SL_STATUS_WIFI_UNSUPPORTED;
}

sl_status_t sl_net_get_ip_address(sl_net_interface_t interface, sl_net_ip_address_t *ip_address, uint32_t timeout)
{
UNUSED_PARAMETER(interface);
UNUSED_PARAMETER(ip_address);
UNUSED_PARAMETER(timeout);
return SL_STATUS_WIFI_UNSUPPORTED;
}

0 comments on commit fda1ddf

Please sign in to comment.