mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
9cf5769636
Upstream PR 416 improvements: -AMPDU Optimization of priority calculation. (8864/8897) -8864/8897 fix wpa3 -Add cypher suite to driver capabilities (all chip) -Alignment of pcie_tx_ctrl* (all chip) -"feature" normalization for all chips (all chip) -Add modprobe parameters (all chip) -fix monitoring (all chip) -Code separation by chipset (8864/8897 <=> 8997) -dump_prob decommissioning (8864/8897/8997) -fix amsdu high ping latency (8864/8897/8997) -drop debug info in hostcmd_get_hw_spec() (8864/8897) -Add wcb_base in debug info (8864) -Rewrite AMSDU packets (8864/8897/8997) -debug rewrite output mwl_debugfs_sta_read (all chip) -Improved encryption interoperability (8864/8897/8997) -factorization encrypted packet test (8864/8897/8997) -Change 88W8864 firmware to 7.2.9.27 (8864/8897) -Fix the AMPDU session lifecycle (8864/8897/8997) -Remove the tx done packets mechanism (8864/8897) Signed-off-by: Michael Trinidad <trinidude4@hotmail.com>
52 lines
1.7 KiB
Diff
52 lines
1.7 KiB
Diff
From ad911365cac3723d1c00d048905a5e22ff4a10f3 Mon Sep 17 00:00:00 2001
|
|
From: Stefan Kalscheuer <stefan@stklcode.de>
|
|
Date: Sun, 18 Jun 2023 17:53:27 +0200
|
|
Subject: [PATCH 1/2] remove uaccess and get_fs calls from PCIe for Kenel >=
|
|
5.18
|
|
|
|
Remove the calls to deprecated get_fs and force_uaccess_* API for modern
|
|
kernels.
|
|
|
|
The get_fs functionality and the transitional force_uaccess_* calls have
|
|
been removed Kernel 5.18 [1] while read and write operations have been
|
|
refactored, so the code can work on kernel- and userspace data without
|
|
the need to shifting the boundary using set_fs().
|
|
|
|
[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=967747bbc084b93b54e66f9047d342232314cd25
|
|
|
|
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
|
|
---
|
|
hif/pcie/pcie.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
--- a/hif/pcie/pcie.c
|
|
+++ b/hif/pcie/pcie.c
|
|
@@ -1439,7 +1439,9 @@ static void pcie_bf_mimo_ctrl_decode(str
|
|
const char filename[] = "/tmp/BF_MIMO_Ctrl_Field_Output.txt";
|
|
char str_buf[256];
|
|
char *buf = &str_buf[0];
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
|
mm_segment_t oldfs;
|
|
+#endif
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0)
|
|
oldfs = get_fs();
|
|
@@ -1447,7 +1449,7 @@ static void pcie_bf_mimo_ctrl_decode(str
|
|
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
|
|
oldfs = get_fs();
|
|
set_fs(KERNEL_DS);
|
|
-#else
|
|
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
|
oldfs = force_uaccess_begin();
|
|
#endif
|
|
|
|
@@ -1471,7 +1473,7 @@ static void pcie_bf_mimo_ctrl_decode(str
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
|
|
set_fs(oldfs);
|
|
-#else
|
|
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
|
force_uaccess_end(oldfs);
|
|
#endif
|
|
}
|