Skip to content

Commit

Permalink
ath10k-ct: fix build error on linux kernel 6.6
Browse files Browse the repository at this point in the history
Fix a build error caused by fortify checking memcpy data range.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
  • Loading branch information
hackpascal committed Mar 1, 2024
1 parent 1af60c2 commit cbff199
Showing 1 changed file with 11 additions and 0 deletions.
@@ -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 */

0 comments on commit cbff199

Please sign in to comment.