Skip to content

Commit 453ae0c

Browse files
committed
drivers: wifi: eswifi: Use peer_addr as addr in eswifi_socket_recvfrom
1 parent 50a23a6 commit 453ae0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/wifi/eswifi/eswifi_socket_offload.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,9 @@ static ssize_t eswifi_socket_recvfrom(void *obj, void *buf, size_t len,
391391
socklen_t *fromlen)
392392
{
393393
if (fromlen != NULL) {
394-
errno = EOPNOTSUPP;
395-
return -1;
394+
int sock = OBJ_TO_SD(obj);
395+
struct eswifi_off_socket *socket = &eswifi->socket[sock];
396+
*from = socket->peer_addr;
396397
}
397398

398399
return eswifi_socket_recv(obj, buf, len, flags);

0 commit comments

Comments
 (0)