forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: ipq60xx: add UBI FIT image for Linksys MR7350 ipq60xx: add linksys MR7350 sysupgrade support kernel: bump 5.4 to 5.4.222 uboot-envtools: add Xiaomi Redmi Router AX6000 support kernel: add support for rtl88x2bu driver ipq807x: add MPILIB for kernel 5.15 ipq807x: add CONFIG_CRYPTO for kernel 5.15 ipq807x: fix kernel 5.15 support for mf269 (coolsnowwolf#10354)
- Loading branch information
Showing
9 changed files
with
269 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.4 = .221 | ||
LINUX_KERNEL_HASH-5.4.221 = 27b37fc1fed7b4dcddf5a0a3730fabf25197c0ba13ace684481aa5444649df0a | ||
LINUX_VERSION-5.4 = .222 | ||
LINUX_KERNEL_HASH-5.4.222 = 351af7a7ee11544e605d9d97add1421576d69459762d9a704f243db7d1c0324b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=rtl88x2bu | ||
PKG_RELEASE=1 | ||
|
||
PKG_LICENSE:=GPLv2 | ||
PKG_LICENSE_FILES:= | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/morrownr/88x2bu-20210702.git | ||
PKG_MIRROR_HASH:=d8bc277348cf97a1b645e2c1c07c9a0dcb9ce5796b7fd5bdce87d19b5f3e17bb | ||
PKG_SOURCE_DATE:=2022-10-19 | ||
PKG_SOURCE_VERSION:=73a681a0db4a9ad132f85d567e225374c1e6a12b | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
|
||
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h | ||
|
||
include $(INCLUDE_DIR)/kernel.mk | ||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define KernelPackage/rtl88x2bu | ||
SUBMENU:=Wireless Drivers | ||
TITLE:=Driver for Realtek 88x2bu devices | ||
DEPENDS:=+kmod-cfg80211 +kmod-usb-core +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT | ||
FILES:=\ | ||
$(PKG_BUILD_DIR)/88x2bu.ko | ||
AUTOLOAD:=$(call AutoProbe,88x2bu) | ||
PROVIDES:=kmod-rtl88x2bu | ||
endef | ||
|
||
NOSTDINC_FLAGS := \ | ||
$(KERNEL_NOSTDINC_FLAGS) \ | ||
-I$(PKG_BUILD_DIR) \ | ||
-I$(PKG_BUILD_DIR)/include \ | ||
-I$(STAGING_DIR)/usr/include/mac80211-backport \ | ||
-I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \ | ||
-I$(STAGING_DIR)/usr/include/mac80211 \ | ||
-I$(STAGING_DIR)/usr/include/mac80211/uapi \ | ||
-include backport/backport.h | ||
|
||
NOSTDINC_FLAGS+=-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -DBUILD_OPENWRT | ||
|
||
define Build/Compile | ||
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \ | ||
$(KERNEL_MAKE_FLAGS) \ | ||
M="$(PKG_BUILD_DIR)" \ | ||
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \ | ||
CONFIG_RTL8822BU=m \ | ||
modules | ||
endef | ||
|
||
$(eval $(call KernelPackage,rtl88x2bu)) |
15 changes: 15 additions & 0 deletions
15
package/kernel/rtl88x2bu/patches/001-use-kernel-byteorder.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Fix compile problem when rtw_byteorder.h and asm/byteorder.h gets | ||
included in addition for example indirectly, do not use realtek own copy | ||
of the byteorder headers. | ||
|
||
--- a/include/drv_types.h | ||
+++ b/include/drv_types.h | ||
@@ -30,7 +30,7 @@ | ||
#include <drv_conf.h> | ||
#include <basic_types.h> | ||
#include <osdep_service.h> | ||
-#include <rtw_byteorder.h> | ||
+#include <asm/byteorder.h> | ||
#include <wlan_bssdef.h> | ||
#include <wifi.h> | ||
#include <ieee80211.h> |
31 changes: 31 additions & 0 deletions
31
package/kernel/rtl88x2bu/patches/002-use-kernel-wireless-header.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Fix wireless.h to use linux kernel header files | ||
including uapi version of wireless.h | ||
|
||
--- a/include/linux/wireless.h | ||
+++ b/include/linux/wireless.h | ||
@@ -18,16 +18,17 @@ | ||
|
||
/***************************** INCLUDES *****************************/ | ||
|
||
-#if 0 | ||
+#if 1 | ||
#include <linux/types.h> /* for __u* and __s* typedefs */ | ||
#include <linux/socket.h> /* for "struct sockaddr" et al */ | ||
#include <linux/if.h> /* for IFNAMSIZ and co... */ | ||
+ #include <linux/wireless.h> | ||
+ #include <uapi/linux/wireless.h> | ||
#else | ||
#define __user | ||
/* typedef uint16_t __u16; */ | ||
#include <sys/socket.h> /* for "struct sockaddr" et al */ | ||
#include <net/if.h> /* for IFNAMSIZ and co... */ | ||
-#endif | ||
|
||
/****************************** TYPES ******************************/ | ||
#ifdef CONFIG_COMPAT | ||
@@ -84,4 +85,5 @@ struct iwreq { | ||
union iwreq_data u; | ||
}; | ||
|
||
+#endif | ||
#endif /* _LINUX_WIRELESS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.