wpa_supplicant: Do not use struct ieee80211_mgmt::u.probe_req
authorJouni Malinen <j@w1.fi>
Sat, 2 Apr 2016 13:52:02 +0000 (16:52 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 2 Apr 2016 13:55:02 +0000 (16:55 +0300)
commitc01120a05fb696c8e38d73afe7ac0c6f67c508de
treea239e7a09d7ef3794153ac840c00c886c041a090
parente1b99620c929174e7b69a8b25f17ba31e1f1f31f
wpa_supplicant: Do not use 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. Since there are no non-IE fields in the
Probe Request frames, get the location of the variable length IEs simply
by using the pointer to the frame header and the known header length.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c