openwrt-ipq-breeze303/package/kernel/mac80211/patches/nss/subsys/971-mac80211-fix-field-span-warning.patch
Sean Khan 8f2b23c53d ath11k_nss: mac80211 Use C99 flexible arrays instead of zero-length arrays
Fixes compile issues on GCC 13.3+

Signed-off-by: Sean Khan <datapronix@protonmail.com>
2024-10-11 19:19:07 -04:00

12 lines
244 B
Diff

--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -961,7 +961,7 @@ struct ieee80211_tim_ie {
u8 dtim_period;
u8 bitmap_ctrl;
/* variable size: 1 - 251 bytes */
- u8 virtual_map[1];
+ u8 virtual_map[];
} __packed;
/**