mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
RTL8192DU: fix kernel 5.18 compilation
This commit is contained in:
parent
c6ebc9899b
commit
0b30cdfc0e
@ -3,8 +3,8 @@
|
|||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="RTL8192DU"
|
PKG_NAME="RTL8192DU"
|
||||||
PKG_VERSION="eb09a4e6e96a5a033afe60c71022bfa42eea148a"
|
PKG_VERSION="a4e32040416d2dba2611a8f410a4f7663a425eb3"
|
||||||
PKG_SHA256="e78c4fc28a66c1f15154a26c93bee9696965fe81a3246a751c2b4d1fa10e3454"
|
PKG_SHA256="1b3db84d541d12ac898aed23f4c45cd20382546cc1804a0bbd93fb3d80361b5a"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://github.com/lwfinger/rtl8192du"
|
PKG_SITE="https://github.com/lwfinger/rtl8192du"
|
||||||
PKG_URL="https://github.com/lwfinger/rtl8192du/archive/${PKG_VERSION}.tar.gz"
|
PKG_URL="https://github.com/lwfinger/rtl8192du/archive/${PKG_VERSION}.tar.gz"
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
diff --git a/include/ieee80211.h b/include/ieee80211.h
|
|
||||||
index 3c28a0b..2268fbd 100644
|
|
||||||
--- a/include/ieee80211.h
|
|
||||||
+++ b/include/ieee80211.h
|
|
||||||
@@ -969,18 +969,18 @@ enum ieee80211_state {
|
|
||||||
#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
|
|
||||||
#define MAC_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3],((u8*)(x))[4],((u8*)(x))[5]
|
|
||||||
|
|
||||||
-extern __inline int is_multicast_mac_addr(const u8 *addr)
|
|
||||||
+static __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)
|
|
||||||
+static __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)
|
|
||||||
+static __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));
|
|
Loading…
x
Reference in New Issue
Block a user