Browse Source

drivers: wifi: winc1500: Set context state to connected

When we accept a message the context state should be set to connected

Signed-off-by: Andreas Ålgård <aal@ixys.no>
pull/83807/head
Andreas Ålgård 8 months ago committed by Benjamin Cabé
parent
commit
fc7afc3178
  1. 2
      drivers/wifi/winc1500/wifi_winc1500.c

2
drivers/wifi/winc1500/wifi_winc1500.c

@ -904,6 +904,8 @@ static void handle_socket_msg_accept(struct socket_data *sd, void *pvMsg) @@ -904,6 +904,8 @@ static void handle_socket_msg_accept(struct socket_data *sd, void *pvMsg)
/** The iface is reset when getting a new context. */
a_sd->context->iface = sd->context->iface;
net_context_set_state(a_sd->context, NET_CONTEXT_CONNECTED);
/** Setup remote */
a_sd->context->remote.sa_family = AF_INET;
net_sin(&a_sd->context->remote)->sin_port =

Loading…
Cancel
Save