hostapd/src/l2_packet
Jouni Malinen 2d83d224ff Use ether_addr_equal() to compare whether two MAC addresses are equal
This was done with spatch using the following semantic patch and minor
manual edits to clean up coding style and avoid compiler warnings in
driver_wext.c:

@@
expression a,b;
@@
-	os_memcmp(a, b, ETH_ALEN) == 0
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	os_memcmp(a, b, ETH_ALEN) != 0
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!os_memcmp(a, b, ETH_ALEN)
+	ether_addr_equal(a, b)

Signed-off-by: Jouni Malinen <j@w1.fi>
2024-01-13 23:47:21 +02:00
..
l2_packet.h l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_freebsd.c l2_packet_freebsd: Enable receiving priority tagged (VID=0) frames 2023-10-28 17:50:09 +03:00
l2_packet_linux.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
l2_packet_ndis.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_none.c Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
l2_packet_pcap.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_privsep.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_winpcap.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
Makefile build: Make more library things common 2020-10-12 20:20:35 +03:00