Skip to content

Commit fc7afc3

Browse files
icsys-aalkartben
authored andcommitted
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 <[email protected]>
1 parent cb50748 commit fc7afc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/wifi/winc1500/wifi_winc1500.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,8 @@ static void handle_socket_msg_accept(struct socket_data *sd, void *pvMsg)
904904
/** The iface is reset when getting a new context. */
905905
a_sd->context->iface = sd->context->iface;
906906

907+
net_context_set_state(a_sd->context, NET_CONTEXT_CONNECTED);
908+
907909
/** Setup remote */
908910
a_sd->context->remote.sa_family = AF_INET;
909911
net_sin(&a_sd->context->remote)->sin_port =

0 commit comments

Comments
 (0)