2022-06-21 10:19:40 +00:00
|
|
|
From: Sophie Brun <sophie@offensive-security.com>
|
|
|
|
Date: Tue, 21 Jun 2022 12:15:03 +0200
|
|
|
|
Subject: Fix build for linux kernel >= 5.17
|
|
|
|
|
|
|
|
Origin: https://github.com/aircrack-ng/rtl8188eus/commit/0f1905259ec9b85fd1453be3abd322ff543e12bc
|
|
|
|
---
|
2022-10-06 13:05:13 +00:00
|
|
|
include/ieee80211.h | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
2022-06-21 10:19:40 +00:00
|
|
|
|
|
|
|
diff --git a/include/ieee80211.h b/include/ieee80211.h
|
2022-10-06 13:05:13 +00:00
|
|
|
index 89d2eff..5d7ebe1 100644
|
2022-06-21 10:19:40 +00:00
|
|
|
--- a/include/ieee80211.h
|
|
|
|
+++ b/include/ieee80211.h
|
2022-10-06 13:05:13 +00:00
|
|
|
@@ -1535,13 +1535,13 @@ extern __inline int is_multicast_mac_addr(const u8 *addr)
|
2022-06-21 10:19:40 +00:00
|
|
|
return (addr[0] != 0xff) && (0x01 & addr[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
-extern __inline int is_broadcast_mac_addr(const u8 *addr)
|
|
|
|
+__inline 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)
|
|
|
|
+__inline 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));
|