drivers: wifi: winc1500: removed semaphore on accept.
Listen func goes through a chain of calls to call winc1500_accept. This is done to install the accept callback and should not block. This fixes #28953 where winc1500 driver blocks on listen. Signed-off-by: Nicolai Glud <nicolai.glud@prevas.dk>
This commit is contained in:
parent
d55aa5a71b
commit
9ed7b6bd3c
1 changed files with 0 additions and 4 deletions
|
@ -436,9 +436,6 @@ static int winc1500_accept(struct net_context *context,
|
|||
K_MSEC(timeout))) {
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
} else {
|
||||
k_sem_take(&w1500_data.socket_data[socket].wait_sem,
|
||||
K_FOREVER);
|
||||
}
|
||||
|
||||
return w1500_data.socket_data[socket].ret_code;
|
||||
|
@ -941,7 +938,6 @@ static void winc1500_socket_cb(SOCKET sock, uint8 message, void *pvMsg)
|
|||
break;
|
||||
case SOCKET_MSG_ACCEPT:
|
||||
handle_socket_msg_accept(sd, pvMsg);
|
||||
k_sem_give(&sd->wait_sem);
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue