aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-06-23 17:37:09 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-23 17:37:09 (GMT)
commitcad0f50e02e3169296bd53ad1efacd0e3f90732a (patch)
tree716c9d788f95475eab40715c6552e1f145f7e11e
parentecabb132b99b4dc4e8819c6471c168add8cb73ff (diff)
downloadhostap-cad0f50e02e3169296bd53ad1efacd0e3f90732a.zip
hostap-cad0f50e02e3169296bd53ad1efacd0e3f90732a.tar.gz
hostap-cad0f50e02e3169296bd53ad1efacd0e3f90732a.tar.bz2
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>
-rw-r--r--src/drivers/driver_nl80211.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 92a7de0..b403792 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -2826,10 +2826,7 @@ static void wpa_driver_nl80211_handle_eapol_tx_status(int sock,
u8 data[2048];
struct msghdr msg;
struct iovec entry;
- struct {
- struct cmsghdr cm;
- char control[512];
- } control;
+ u8 control[512];
struct cmsghdr *cmsg;
int res, found_ee = 0, found_wifi = 0, acked = 0;
union wpa_event_data event;