Skip to content
Commit 806842b7 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Carles Cufí
Browse files

drivers: wifi: esp_at: s/ntohs/htons/ after parsing port number



'struct sockaddr_in' should contain port number in network byte order. This
means that htons() macro should be used, instead of ntohs().

This was working before since both htons() and ntohs() end up in calling
BSWAP_16().

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent 20a69f6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment