aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-04-02 13:53:04 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-02 13:55:02 (GMT)
commit5914ebf5845b405eb3d6e29572df22daf0d8bb0d (patch)
treeae08e1be5255745fc6ad43915c43e36a0cc6751a
parent094e9492659a5dd572fa2a399d7cfcb480ea51c6 (diff)
downloadhostap-5914ebf5845b405eb3d6e29572df22daf0d8bb0d.zip
hostap-5914ebf5845b405eb3d6e29572df22daf0d8bb0d.tar.gz
hostap-5914ebf5845b405eb3d6e29572df22daf0d8bb0d.tar.bz2
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 <j@w1.fi>
-rw-r--r--src/common/ieee802_11_defs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
index 73ffc99..e1a8ef7 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;