mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-25 23:15:00 +00:00
Broke out implementation of severel functions out of header file.
The was causing build failures on the arm64 architecture
This commit is contained in:
parent
ab5429edad
commit
055e126fd3
@ -2218,3 +2218,19 @@ const char *action_public_str(u8 action)
|
|||||||
return _action_public_str[action];
|
return _action_public_str[action];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int is_multicast_mac_addr(const u8 *addr)
|
||||||
|
{
|
||||||
|
return ((addr[0] != 0xff) && (0x01 & addr[0]));
|
||||||
|
}
|
||||||
|
|
||||||
|
int is_broadcast_mac_addr(const u8 *addr)
|
||||||
|
{
|
||||||
|
return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \
|
||||||
|
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
|
||||||
|
}
|
||||||
|
|
||||||
|
int is_zero_mac_addr(const u8 *addr)
|
||||||
|
{
|
||||||
|
return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
|
||||||
|
(addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
|
||||||
|
}
|
||||||
|
@ -1308,29 +1308,11 @@ enum ieee80211_state {
|
|||||||
#define IP_FMT "%d.%d.%d.%d"
|
#define IP_FMT "%d.%d.%d.%d"
|
||||||
#define IP_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3]
|
#define IP_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3]
|
||||||
|
|
||||||
#ifdef PLATFORM_FREEBSD //Baron change func to macro
|
extern int is_multicast_mac_addr(const u8 *addr);
|
||||||
#define is_multicast_mac_addr(Addr) ((((Addr[0]) & 0x01) == 0x01) && ((Addr[0]) != 0xff))
|
|
||||||
#define is_broadcast_mac_addr(Addr) ((((Addr[0]) & 0xff) == 0xff) && (((Addr[1]) & 0xff) == 0xff) && \
|
|
||||||
(((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
|
|
||||||
(((Addr[5]) & 0xff) == 0xff))
|
|
||||||
#else
|
|
||||||
extern __inline int is_multicast_mac_addr(const u8 *addr)
|
|
||||||
{
|
|
||||||
return ((addr[0] != 0xff) && (0x01 & addr[0]));
|
|
||||||
}
|
|
||||||
|
|
||||||
extern __inline int is_broadcast_mac_addr(const u8 *addr)
|
extern int is_broadcast_mac_addr(const u8 *addr);
|
||||||
{
|
|
||||||
return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \
|
|
||||||
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
|
|
||||||
}
|
|
||||||
|
|
||||||
extern __inline int is_zero_mac_addr(const u8 *addr)
|
extern int is_zero_mac_addr(const u8 *addr);
|
||||||
{
|
|
||||||
return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
|
|
||||||
(addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
|
|
||||||
}
|
|
||||||
#endif //PLATFORM_FREEBSD
|
|
||||||
|
|
||||||
#define CFG_IEEE80211_RESERVE_FCS (1<<0)
|
#define CFG_IEEE80211_RESERVE_FCS (1<<0)
|
||||||
#define CFG_IEEE80211_COMPUTE_FCS (1<<1)
|
#define CFG_IEEE80211_COMPUTE_FCS (1<<1)
|
||||||
|
Loading…
Reference in New Issue
Block a user