Skip to content

Commit e83c949

Browse files
krish2718jukkar
authored andcommitted
[noup] zephyr: Fix the Wi-Fi secure associations
Due to a recent change the Zephyr network stack sends the protocol in network byte order, so, need to be converted to host order before using it. This was dropping all EAPoL frames and broke secure association. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 697fd2c commit e83c949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/l2_packet/l2_packet_zephyr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void l2_packet_receive(int sock, void *eloop_ctx, void *sock_ctx)
9494
// FIXME: sll_addr is not being filled as L2 header is not removed
9595
hdr = (const struct ieee802_1x_hdr *) buf;
9696

97-
if (ll.sll_protocol != ETH_P_EAPOL) {
97+
if (ntohs(ll.sll_protocol) != ETH_P_EAPOL) {
9898
return;
9999
}
100100

0 commit comments

Comments
 (0)