From: Robert Marko Date: Thu, 25 May 2023 18:05:40 +0000 (+0200) Subject: ath10k-ct: drop spectral fix for 5.10 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e6d10b85efe8accaa126af43173e4cba4ba56197;p=openwrt%2Fstaging%2Fthess.git ath10k-ct: drop spectral fix for 5.10 This was needed when we had 5.10 kernel as well, but now that all targets are running 5.15 or 6.1 we can safely drop it. Signed-off-by: Robert Marko --- diff --git a/package/kernel/ath10k-ct/patches/300-ath10k-ct-Fix-spectral-scan-NULL-pointer.patch b/package/kernel/ath10k-ct/patches/300-ath10k-ct-Fix-spectral-scan-NULL-pointer.patch deleted file mode 100644 index 6a14a75a32..0000000000 --- a/package/kernel/ath10k-ct/patches/300-ath10k-ct-Fix-spectral-scan-NULL-pointer.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 0d2e335d780bda1432a9ba719c8200f796d27854 Mon Sep 17 00:00:00 2001 -From: Robert Marko -Date: Mon, 29 Nov 2021 12:27:12 +0100 -Subject: [PATCH] ath10k-ct: Fix spectral scan NULL pointer - -If spectral scan support is enabled then ath10k-ct will cause a NULL -pointer due to relay_open() being called with a const callback struct -which is only supported in kernel 5.11 and later. - -So, simply check the kernel version and if 5.11 and newer use the const -callback struct, otherwise use the regular struct. - -Fixes: 553a3ac ("ath10k-ct: use 5.15 version") -Signed-off-by: Robert Marko ---- - ath10k-6.2/spectral.c | 4 ++++ - 1 file changed, 4 insertions(+) - ---- a/ath10k-6.2/spectral.c -+++ b/ath10k-6.2/spectral.c -@@ -497,7 +497,11 @@ static int remove_buf_file_handler(struc - return 0; - } - -+#if LINUX_VERSION_IS_GEQ(5,11,0) - static const struct rchan_callbacks rfs_spec_scan_cb = { -+#else -+static struct rchan_callbacks rfs_spec_scan_cb = { -+#endif - .create_buf_file = create_buf_file_handler, - .remove_buf_file = remove_buf_file_handler, - };