From 5914ebf5845b405eb3d6e29572df22daf0d8bb0d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 2 Apr 2016 16:53:04 +0300 Subject: [PATCH] Remove struct ieee80211_mgmt::u.probe_req This struct in the union is empty, but the design of using a zero-length u8 array here is not fully compatible with C++ and can result in undesired compiler warnings. This struct is not used anymore, so it can be removed from the struct ieee80211_mgmt definition to complete the changes started in commit d447cd596f0a9f73850229e7fa2bdd35755dc750 ('Updates for stricter automatic memcpy bounds checking'). Signed-off-by: Jouni Malinen --- src/common/ieee802_11_defs.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index 73ffc9998..e1a8ef78e 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -527,10 +527,7 @@ struct ieee80211_mgmt { * FH Params, DS Params, CF Params, IBSS Params, TIM */ u8 variable[]; } STRUCT_PACKED beacon; - struct { - /* only variable items: SSID, Supported rates */ - u8 variable[0]; - } STRUCT_PACKED probe_req; + /* probe_req: only variable items: SSID, Supported rates */ struct { u8 timestamp[8]; le16 beacon_int;