]> git.ipfire.org Git - thirdparty/hostap.git/commit
atheros: Do not use struct ieee80211_mgmt::u.probe_req
authorJouni Malinen <j@w1.fi>
Sat, 2 Apr 2016 13:52:43 +0000 (16:52 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 2 Apr 2016 13:55:02 +0000 (16:55 +0300)
commit094e9492659a5dd572fa2a399d7cfcb480ea51c6
tree8a372e30553e6194e4ab0a9e9d56fff8cb1731dd
parentc01120a05fb696c8e38d73afe7ac0c6f67c508de
atheros: 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>
src/drivers/driver_atheros.c