diff --git a/package/kernel/rtl8188eu/patches/040-remove-extern-inline.patch b/package/kernel/rtl8188eu/patches/040-remove-extern-inline.patch new file mode 100644 index 0000000000..e3355e3aa6 --- /dev/null +++ b/package/kernel/rtl8188eu/patches/040-remove-extern-inline.patch @@ -0,0 +1,24 @@ +--- a/include/ieee80211.h ++++ b/include/ieee80211.h +@@ -1529,18 +1529,18 @@ enum ieee80211_state { + (((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) ++__inline static 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) ++__inline static 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 static 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)); diff --git a/package/kernel/rtl8192eu/patches/040-remove-extern-inline.patch b/package/kernel/rtl8192eu/patches/040-remove-extern-inline.patch new file mode 100644 index 0000000000..b925f8fd62 --- /dev/null +++ b/package/kernel/rtl8192eu/patches/040-remove-extern-inline.patch @@ -0,0 +1,24 @@ +--- a/include/ieee80211.h ++++ b/include/ieee80211.h +@@ -780,18 +780,18 @@ join_res: + #define PORT_FMT "%u" + #define PORT_ARG(x) ntohs(*((u16 *)(x))) + +-extern __inline int is_multicast_mac_addr(const u8 *addr) ++__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) ++__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)); diff --git a/package/kernel/rtl8812au-ac/patches/060-remove-extern-inline.patch b/package/kernel/rtl8812au-ac/patches/060-remove-extern-inline.patch new file mode 100644 index 0000000000..11b8a0cb12 --- /dev/null +++ b/package/kernel/rtl8812au-ac/patches/060-remove-extern-inline.patch @@ -0,0 +1,24 @@ +--- a/include/ieee80211.h ++++ b/include/ieee80211.h +@@ -1616,18 +1616,18 @@ enum ieee80211_state { + (((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) ++__inline static 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) ++__inline static 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 static 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)); diff --git a/package/kernel/rtl8821cu/patches/030-change-value-of-vht-enable.patch b/package/kernel/rtl8821cu/patches/030-change-value-of-vht-enable.patch index 34dcd8e4de..d82aa31bfd 100644 --- a/package/kernel/rtl8821cu/patches/030-change-value-of-vht-enable.patch +++ b/package/kernel/rtl8821cu/patches/030-change-value-of-vht-enable.patch @@ -1,6 +1,6 @@ --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c -@@ -238,7 +238,7 @@ +@@ -238,7 +238,7 @@ int rtw_bfee_rf_number = 0; /*Beamformee #endif /* CONFIG_80211N_HT */ #ifdef CONFIG_80211AC_VHT diff --git a/package/kernel/rtl8821cu/patches/040-wireless-5.8.patch b/package/kernel/rtl8821cu/patches/040-wireless-5.8.patch index 2453c61ff0..273ffc6805 100644 --- a/package/kernel/rtl8821cu/patches/040-wireless-5.8.patch +++ b/package/kernel/rtl8821cu/patches/040-wireless-5.8.patch @@ -1,8 +1,6 @@ -diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c -index d9c81c9..3e7e27a 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c -@@ -7149,7 +7149,7 @@ static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy, +@@ -7149,7 +7149,7 @@ static void cfg80211_rtw_mgmt_frame_regi #else struct net_device *ndev, #endif @@ -11,7 +9,7 @@ index d9c81c9..3e7e27a 100755 struct mgmt_frame_regs *upd) #else u16 frame_type, bool reg) -@@ -7178,7 +7178,7 @@ static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy, +@@ -7178,7 +7178,7 @@ static void cfg80211_rtw_mgmt_frame_regi /* Wait QC Verify */ return; @@ -20,7 +18,7 @@ index d9c81c9..3e7e27a 100755 SET_CFG80211_REPORT_MGMT(pwdev_priv, IEEE80211_STYPE_PROBE_REQ, upd->interface_stypes & BIT(IEEE80211_STYPE_PROBE_REQ >> 4)); #else switch (frame_type) { -@@ -9467,7 +9467,7 @@ static struct cfg80211_ops rtw_cfg80211_ops = { +@@ -9467,7 +9467,7 @@ static struct cfg80211_ops rtw_cfg80211_ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE) .mgmt_tx = cfg80211_rtw_mgmt_tx, @@ -29,11 +27,9 @@ index d9c81c9..3e7e27a 100755 .update_mgmt_frame_registrations = cfg80211_rtw_mgmt_frame_register, #else .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, -diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c -index 257c581..f97fa24 100755 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c -@@ -1302,6 +1302,14 @@ unsigned int rtw_classify8021d(struct sk_buff *skb) +@@ -1306,6 +1306,14 @@ unsigned int rtw_classify8021d(struct sk } @@ -48,7 +44,7 @@ index 257c581..f97fa24 100755 static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0) , void *accel_priv -@@ -1310,6 +1318,7 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb +@@ -1314,6 +1322,7 @@ static u16 rtw_select_queue(struct net_d #endif #endif )