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

Added missing namespace to function call #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -615,7 +615,7 @@ int sl_si91x_sendto_async(int socket,

int sl_si91x_recv(int socket, uint8_t *buf, size_t buf_len, int32_t flags)
{
return recvfrom(socket, buf, buf_len, flags, NULL, NULL);
return sl_si91x_recvfrom(socket, buf, buf_len, flags, NULL, NULL);
}

int sl_si91x_recvfrom(int socket,
Expand Down
Expand Up @@ -287,7 +287,7 @@ sl_status_t convert_si91x_wifi_client_info(sl_wifi_client_info_response_t *clien

sl_client_info->ip_address.type = ip_address_size == SL_IPV4_ADDRESS_LENGTH ? SL_IPV4 : SL_IPV6;

memcpy(&sl_client_info->mac_adddress, si91x_client_info->mac, sizeof(sl_mac_address_t));
memcpy(&sl_client_info->mac_address, si91x_client_info->mac, sizeof(sl_mac_address_t));
memcpy(sl_ip_address, si91x_ip_address, ip_address_size);
}

Expand Down
2 changes: 1 addition & 1 deletion components/protocol/wifi/inc/sl_wifi_types.h
Expand Up @@ -405,7 +405,7 @@ typedef struct {

/// Wi-Fi client info
typedef struct {
sl_mac_address_t mac_adddress; ///< MAC Address of the client
sl_mac_address_t mac_address; ///< MAC Address of the client
sl_ip_address_t ip_address; ///< IP address of client
} sl_wifi_client_info_t;

Expand Down
2 changes: 1 addition & 1 deletion components/protocol/wifi/si91x/sl_wifi.c
Expand Up @@ -1597,7 +1597,7 @@ sl_status_t sl_wifi_get_ap_client_list(sl_wifi_interface_t interface,
station_info_index < client_info.client_count && station_info_index < client_list_count;
station_info_index++) {
memcpy(client_list[station_info_index].octet,
client_info.client_info[station_info_index].mac_adddress.octet,
client_info.client_info[station_info_index].mac_address.octet,
sizeof(sl_mac_address_t));
}
}
Expand Down
12 changes: 6 additions & 6 deletions examples/snippets/cli_demo/wifi_commands.c
Expand Up @@ -1080,12 +1080,12 @@ sl_status_t wifi_get_ap_client_info_command_handler(console_args_t *argument)
sl_wifi_client_info_t *station_info = &client_info.client_info[station_info_index];
printf("%d) MAC Address is %x:%x:%x:%x:%x:%x",
station_info_index + 1,
station_info->mac_adddress.octet[0],
station_info->mac_adddress.octet[1],
station_info->mac_adddress.octet[2],
station_info->mac_adddress.octet[3],
station_info->mac_adddress.octet[4],
station_info->mac_adddress.octet[5]);
station_info->mac_address.octet[0],
station_info->mac_address.octet[1],
station_info->mac_address.octet[2],
station_info->mac_address.octet[3],
station_info->mac_address.octet[4],
station_info->mac_address.octet[5]);

print_sl_ip_address(&station_info->ip_address);
}
Expand Down