Skip to content

Commit

Permalink
rtw88-usb: fix rtw8703b build with kernel 6.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Sep 25, 2024
1 parent 297d4ad commit a75453b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/kernel/rtw88-usb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions package/kernel/rtw88-usb/patches/103-fix-rtw8703b-build.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a75453b

Please sign in to comment.