From 9d7a63dc20854bd1075614bb808925f43fd7840a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Nov 2012 20:28:27 +0200 Subject: [PATCH] nl80211: Avoid strict-aliasing warning with gcc 4.7 Signed-hostap: Jouni Malinen --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index e34545572..b86bc5abf 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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) {