[openwrt/openwrt] ath10k-ct: fix build error on linux kernel 6.6

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 11 12:18:10 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ba521e5cf29815aa0c1f2258c6e3ecf42d28c237

commit ba521e5cf29815aa0c1f2258c6e3ecf42d28c237
Author: Weijie Gao <hackpascal at gmail.com>
AuthorDate: Fri Mar 1 00:47:56 2024 +0800

    ath10k-ct: fix build error on linux kernel 6.6
    
    Fix a build error caused by fortify checking memcpy data range.
    
    Signed-off-by: Weijie Gao <hackpascal at gmail.com>
---
 .../ath10k-ct/patches/300-fix-fortify-checking-error.patch    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/kernel/ath10k-ct/patches/300-fix-fortify-checking-error.patch b/package/kernel/ath10k-ct/patches/300-fix-fortify-checking-error.patch
new file mode 100644
index 0000000000..6966a5a487
--- /dev/null
+++ b/package/kernel/ath10k-ct/patches/300-fix-fortify-checking-error.patch
@@ -0,0 +1,11 @@
+--- a/ath10k-6.4/wmi.h
++++ b/ath10k-6.4/wmi.h
+@@ -6341,7 +6341,7 @@ struct qca9880_set_ctl_table_cmd {
+ 	__le32 ctl_len; /* in bytes.  This may be ignored in firmware,
+ 			 * make sure ctl_info data is sizeof(qca9880_power_ctl) */
+ 	/** ctl array (len adjusted to  number of words) */
+-	__le32 ctl_info[1]; /* data would be the qca9880_power_ctl table above */
++	__le32 ctl_info[]; /* data would be the qca9880_power_ctl table above */
+ };
+ 
+ /* Used by:   WMI_PDEV_SET_MIMOGAIN_TABLE_CMDID */




More information about the lede-commits mailing list