From 5fd245756138023112c06dfc771ac229c7902f84 Mon Sep 17 00:00:00 2001 From: Ole Morten Haaland Date: Fri, 12 Nov 2021 08:27:57 +0100 Subject: [PATCH] drivers: wifi: winc1500: Update function name The close function was renamed in the hal to avoid a name clash with an internal POSIX function. Signed-off-by: Ole Morten Haaland --- drivers/wifi/winc1500/wifi_winc1500.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/wifi/winc1500/wifi_winc1500.c b/drivers/wifi/winc1500/wifi_winc1500.c index 826a9d79ac7..2502719a6e4 100644 --- a/drivers/wifi/winc1500/wifi_winc1500.c +++ b/drivers/wifi/winc1500/wifi_winc1500.c @@ -54,7 +54,7 @@ NMI_API sint16 send(SOCKET sock, void *pvSendBuffer, NMI_API sint16 sendto(SOCKET sock, void *pvSendBuffer, uint16 u16SendLength, uint16 flags, struct sockaddr *pstrDestAddr, uint8 u8AddrLen); -NMI_API sint8 close(SOCKET sock); +NMI_API sint8 winc1500_close(SOCKET sock); enum socket_errors { SOCK_ERR_NO_ERROR = 0, @@ -596,7 +596,7 @@ static int winc1500_put(struct net_context *context) memset(&(context->remote), 0, sizeof(struct sockaddr_in)); context->flags &= ~NET_CONTEXT_REMOTE_ADDR_SET; - ret = close(sock); + ret = winc1500_close(sock); net_pkt_unref(sd->rx_pkt); @@ -899,7 +899,7 @@ static void handle_socket_msg_accept(struct socket_data *sd, void *pvMsg) * context as well. The new context gives us another socket * so we have to close that one first. */ - close((int)a_sd->context->offload_context); + winc1500_close((int)a_sd->context->offload_context); a_sd->context->offload_context = (void *)((int)accept_msg->sock);