mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
wireless: fix ipw warning; add is_broadcast_ether_addr() to linux/etherdevice.h
This commit is contained in:
parent
2179a59db1
commit
9bd481f859
2 changed files with 7 additions and 1 deletions
|
@ -68,6 +68,12 @@ static inline int is_multicast_ether_addr(const u8 *addr)
|
|||
return ((addr[0] != 0xff) && (0x01 & addr[0]));
|
||||
}
|
||||
|
||||
static inline int is_broadcast_ether_addr(const u8 *addr)
|
||||
{
|
||||
return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) &&
|
||||
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
|
||||
}
|
||||
|
||||
/**
|
||||
* is_valid_ether_addr - Determine if the given Ethernet address is valid
|
||||
* @addr: Pointer to a six-byte array containing the Ethernet address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue