armbian_build/patch/misc/wireless-uwe5622/uwe5622-v6.9.patch

34 lines
1.3 KiB
Diff

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