]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Avoid strict-aliasing warning with gcc 4.7
authorJouni Malinen <j@w1.fi>
Sun, 11 Nov 2012 18:28:27 +0000 (20:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Nov 2012 18:28:27 +0000 (20:28 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/drivers/driver_nl80211.c

index e345455728460a69344c26a9706d54429762fdfa..b86bc5abfc08777d35345824821bd4b753f29679 100644 (file)
@@ -5310,7 +5310,7 @@ static int wpa_driver_nl80211_send_mntr(struct wpa_driver_nl80211_data *drv,
 
        if (noack)
                txflags |= IEEE80211_RADIOTAP_F_TX_NOACK;
-       *(le16 *) &rtap_hdr[12] = host_to_le16(txflags);
+       WPA_PUT_LE16(&rtap_hdr[12], txflags);
 
        res = sendmsg(drv->monitor_sock, &msg, 0);
        if (res < 0) {