Skip to content
Commit 424ea9f5 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by David Leach
Browse files

drivers: wifi: esp_at: do not connect socket on bind(INADDR_ANY)



All connect() syscalls result in EISCONN error, since underlying
_sock_connect() is attempted to be called twice. Once from net_context.c'
bind_default() (with INADDR_ANY) as part of esp_bind() and second time as
part of esp_connect().

Do not call _sock_connect() from esp_bind(INADDR_ANY), which happens as
part of connect().

Fixes: dbf3d6e9 ("drivers: esp_at: implement bind() and recvfrom() for
  UDP sockets")
Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent 79c3ba80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment