Skip to content
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

Update sl_net_for_lwip.c source file to work with Wiseconnect 3.4.0 #241

Merged
merged 1 commit into from
Nov 17, 2024
Merged
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
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;
}
Loading