]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove struct ieee80211_mgmt::u.probe_req
authorJouni Malinen <j@w1.fi>
Sat, 2 Apr 2016 13:53:04 +0000 (16:53 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 2 Apr 2016 13:55:02 +0000 (16:55 +0300)
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 <j@w1.fi>
src/common/ieee802_11_defs.h

index 73ffc9998e8b5d7dba753d5c608c2b754613b888..e1a8ef78ea5b85b8676bf504ffb22b577b4ceafc 100644 (file)
@@ -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;