replace custom macros with is_broadcast_ether_addr

Replace usage of custom macros with is_broadcast_ether_addr. All buffers
are properly aligned. Remove the now unsued macros MacAddr_isBcst and
IS_MAC_ADDRESS_BROADCAST.

Link: https://lore.kernel.org/r/20210805205010.31192-1-straube.linux@gmail.com
This commit is contained in:
Michael Straube
2021-08-05 22:50:10 +02:00
committed by Carlos Garcés
parent 2965c273c9
commit 03af80bee9
6 changed files with 4 additions and 18 deletions

View File

@@ -441,13 +441,6 @@ enum WIFI_REG_DOMAIN {
#define GetAddr4Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 24))
#define MacAddr_isBcst(addr) \
(\
((addr[0] == 0xff) && (addr[1] == 0xff) && \
(addr[2] == 0xff) && (addr[3] == 0xff) && \
(addr[4] == 0xff) && (addr[5] == 0xff)) ? _TRUE : _FALSE \
)
__inline static int IS_MCAST(const u8 *da)
{
if ((*da) & 0x01)