Skip to content

Commit

Permalink
fix: define missing kernel version macros
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChenL committed Jun 21, 2024
1 parent 7eb68dc commit 004f9c7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions debian/patches/fix-linux-6.9-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,25 @@ index 2c337d8..c9f464d 100644
#endif

}
diff --git a/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_main.c b/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_main.c
index 7c5d9e0..e455956 100644
--- a/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_main.c
+++ b/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_main.c
@@ -502,10 +502,17 @@ static const int rwnx_hwq2uapsd[NL80211_NUM_ACS] = {
#define P2P_ALIVE_TIME_MS (1*1000)
#define P2P_ALIVE_TIME_COUNT 200

+//because android kernel 5.15 uses kernel 6.0 or 6.1 kernel api
#ifdef ANDROID_PLATFORM
#define HIGH_KERNEL_VERSION KERNEL_VERSION(5, 15, 41)
+#define HIGH_KERNEL_VERSION2 KERNEL_VERSION(5, 15, 41)
+#define HIGH_KERNEL_VERSION3 KERNEL_VERSION(5, 15, 104)
+#define HIGH_KERNEL_VERSION4 KERNEL_VERSION(6, 1, 0)
#else
#define HIGH_KERNEL_VERSION KERNEL_VERSION(6, 0, 0)
+#define HIGH_KERNEL_VERSION2 KERNEL_VERSION(6, 1, 0)
+#define HIGH_KERNEL_VERSION3 KERNEL_VERSION(6, 3, 0)
+#define HIGH_KERNEL_VERSION4 KERNEL_VERSION(6, 3, 0)
#endif

extern uint8_t scanning;

0 comments on commit 004f9c7

Please sign in to comment.