mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-24 15:22:34 +01:00
eapol: Fix PAE socket code
Using SOCK_DGRAM allows us to receive just the frame payload instead of raw ethernet framing.
This commit is contained in:
parent
96cd2391da
commit
0ee173e23f
@ -862,7 +862,7 @@ struct l_io *eapol_open_pae(uint32_t index)
|
||||
struct sockaddr_ll sll;
|
||||
int fd;
|
||||
|
||||
fd = socket(PF_PACKET, SOCK_RAW | SOCK_CLOEXEC, 0);
|
||||
fd = socket(PF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, htons(ETH_P_PAE));
|
||||
if (fd < 0) {
|
||||
l_error("Failed to create PAE socket %s (%d)",
|
||||
strerror(errno), errno);
|
||||
|
Loading…
Reference in New Issue
Block a user