mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add 6.9 compatibility fix for UWE and rewrite rockchip64 kernel config
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -448,6 +448,11 @@ driver_uwe5622() {
|
||||
|
||||
process_patch_file "${SRC}/patch/misc/wireless-uwe5622/wireless-uwe5622-Fix-compilation-with-6.7-kernel.patch" "applying"
|
||||
process_patch_file "${SRC}/patch/misc/wireless-uwe5622/wireless-uwe5622-reduce-system-load.patch" "applying"
|
||||
|
||||
if linux-version compare "${version}" ge 6.9; then
|
||||
process_patch_file "${SRC}/patch/misc/wireless-uwe5622/uwe5622-v6.9.patch" "applying"
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
33
patch/misc/wireless-uwe5622/uwe5622-v6.9.patch
Normal file
33
patch/misc/wireless-uwe5622/uwe5622-v6.9.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: John Doe <john.doe@somewhere.on.planet>
|
||||
Date: Thu, 6 Jun 2024 13:25:27 +0000
|
||||
Subject: Patching kernel rockchip64 files
|
||||
drivers/net/wireless/uwe5622/unisocwifi/cmdevt.c
|
||||
|
||||
Signed-off-by: John Doe <john.doe@somewhere.on.planet>
|
||||
---
|
||||
drivers/net/wireless/uwe5622/unisocwifi/cmdevt.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/net/wireless/uwe5622/unisocwifi/cmdevt.c b/drivers/net/wireless/uwe5622/unisocwifi/cmdevt.c
|
||||
index 1f2f6efb9184..dfe03b0636da 100755
|
||||
--- a/drivers/net/wireless/uwe5622/unisocwifi/cmdevt.c
|
||||
+++ b/drivers/net/wireless/uwe5622/unisocwifi/cmdevt.c
|
||||
@@ -3299,11 +3299,13 @@ void sprdwl_event_chan_changed(struct sprdwl_vif *vif, u8 *data, u16 len)
|
||||
/* we will be active on the channel */
|
||||
cfg80211_chandef_create(&chandef, ch,
|
||||
NL80211_CHAN_HT20);
|
||||
else
|
||||
wl_err("%s, ch is null!\n", __func__);
|
||||
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19, 2))
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,9, 0))
|
||||
+ cfg80211_ch_switch_notify(vif->ndev, &chandef, 0);
|
||||
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19, 2))
|
||||
cfg80211_ch_switch_notify(vif->ndev, &chandef, 0, 0);
|
||||
#else
|
||||
cfg80211_ch_switch_notify(vif->ndev, &chandef);
|
||||
#endif
|
||||
}
|
||||
--
|
||||
Created with Armbian build tools https://github.com/armbian/build
|
||||
|
||||
Reference in New Issue
Block a user