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 d447cd596f
('Updates for stricter automatic memcpy bounds checking').
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
094e949265
commit
5914ebf584
1 changed files with 1 additions and 4 deletions
|
@ -527,10 +527,7 @@ struct ieee80211_mgmt {
|
||||||
* FH Params, DS Params, CF Params, IBSS Params, TIM */
|
* FH Params, DS Params, CF Params, IBSS Params, TIM */
|
||||||
u8 variable[];
|
u8 variable[];
|
||||||
} STRUCT_PACKED beacon;
|
} STRUCT_PACKED beacon;
|
||||||
struct {
|
/* probe_req: only variable items: SSID, Supported rates */
|
||||||
/* only variable items: SSID, Supported rates */
|
|
||||||
u8 variable[0];
|
|
||||||
} STRUCT_PACKED probe_req;
|
|
||||||
struct {
|
struct {
|
||||||
u8 timestamp[8];
|
u8 timestamp[8];
|
||||||
le16 beacon_int;
|
le16 beacon_int;
|
||||||
|
|
Loading…
Reference in a new issue