]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Simplify cbmsg buffer
authorJohannes Berg <johannes.berg@intel.com>
Sat, 23 Jun 2012 17:37:09 +0000 (20:37 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 23 Jun 2012 17:37:09 +0000 (20:37 +0300)
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>

src/drivers/driver_nl80211.c

index 92a7de09a4a73eaf70aa6262f91faa19c1622513..b403792d47a18af60feed773782f053850f96273 100644 (file)
@@ -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;