From: Johannes Berg Date: Mon, 29 Aug 2022 09:46:38 +0000 (+0200) Subject: wifi: use struct_group to copy addresses X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7c422dc57e77e55402633b51bba276e4b12d7ee4;p=carl9170fw.git wifi: use struct_group to copy addresses We sometimes copy all the addresses from the 802.11 header for the AAD, which may cause complaints from fortify checks. Use struct_group() to avoid the compiler warnings/errors. Change-Id: Ic3ea389105e7813b22095b295079eecdabde5045 Signed-off-by: Johannes Berg Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 874cfde..651bafe 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -308,9 +308,11 @@ struct ieee80211_hdr { struct ieee80211_hdr_3addr { __le16 frame_control; __le16 duration_id; - u8 addr1[6]; - u8 addr2[6]; - u8 addr3[6]; + struct_group(addrs, + u8 addr1[6]; + u8 addr2[6]; + u8 addr3[6]; + ); __le16 seq_ctrl; } __packed __aligned(2);