nl80211: Simplify cbmsg buffer

The control message received from the kernel needs some space, but
there's no need for the strange typing that breaks clang compilation.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2012-06-23 20:37:09 +03:00 committed by Jouni Malinen
parent ecabb132b9
commit cad0f50e02

View file

@ -2826,10 +2826,7 @@ static void wpa_driver_nl80211_handle_eapol_tx_status(int sock,
u8 data[2048]; u8 data[2048];
struct msghdr msg; struct msghdr msg;
struct iovec entry; struct iovec entry;
struct { u8 control[512];
struct cmsghdr cm;
char control[512];
} control;
struct cmsghdr *cmsg; struct cmsghdr *cmsg;
int res, found_ee = 0, found_wifi = 0, acked = 0; int res, found_ee = 0, found_wifi = 0, acked = 0;
union wpa_event_data event; union wpa_event_data event;