rtw88-usb: fix rtw8703b build with kernel 6.6+

This commit is contained in:
coolsnowwolf 2024-09-25 15:39:42 +08:00
parent 297d4adf02
commit a75453bbc9
2 changed files with 12 additions and 1 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rtw88-usb
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2024-04-10

View File

@ -0,0 +1,11 @@
--- a/rtw8703b.c
+++ b/rtw8703b.c
@@ -655,7 +655,7 @@
dm_info->txagc_remnant_ofdm = 0;
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0) || defined(BUILD_OPENWRT)
#define FIELD_PREP_CONST FIELD_PREP
#endif