openwrt-pf/package/kernel/mac80211
Georgi Valkov 8ab2eb1262
mac80211: mwifiex: replace one-element arrays with flexible array members
Replace deprecated one-element arrays with flexible array members.
CONFIG_FORTIFY_SOURCE reports the following warning when
one-element arrays are used as variable-length buffers:

sta_cmd.c:1033 mwifiex_sta_prepare_cmd
memcpy: detected field-spanning write (size 84) of single field
"domain->triplet" at .../marvell/mwifiex/sta_cmd.c:1033 (size 3)

Convert affected structs to use flexible array members.
- Preserve existing wire layouts.
- Use DECLARE_FLEX_ARRAY() for structs inside affected unions.

This fix has been accepted upstream:
1cb5845a58

Tested-on: WRT3200ACM
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24451
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-07-28 20:21:31 +02:00
..
patches mac80211: mwifiex: replace one-element arrays with flexible array members 2026-07-28 20:21:31 +02:00
scripts mac80211: replace backticks by $(...) 2020-05-13 19:01:23 +02:00
ath.mk mac80211: ath12k: backport thermal sensor support 2026-03-13 19:52:59 +01:00
broadcom.mk mac80211: broadcom: fix Makefile syntax error 2026-03-15 10:56:13 +01:00
intel.mk mac80211: iwlwifi: Add DRIVER_11BE_SUPPORT 2025-09-04 12:09:35 +02:00
Makefile mac80211: mwifiex: replace one-element arrays with flexible array members 2026-07-28 20:21:31 +02:00
marvell.mk treewide: remove DRIVER_11N_SUPPORT 2022-12-13 10:54:50 +01:00
ralink.mk mac80211: ralink: remove rt2x00soc.ko 2025-12-08 18:47:45 +01:00
realtek.mk mac80211: realtek: rtw88: add RTL8822CS support 2025-10-16 21:39:16 +02:00