Fix byte order of VHT Basic MCS set for big endian hosts
authorJouni Malinen <j@w1.fi>
Tue, 7 Aug 2012 17:49:23 +0000 (20:49 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Aug 2012 17:49:23 +0000 (20:49 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/ieee802_11_vht.c

index 3ad33c8..6ba6758 100644 (file)
@@ -65,7 +65,7 @@ u8 * hostapd_eid_vht_operation(struct hostapd_data *hapd, u8 *eid)
 
        /* VHT Basic MCS set comes from hw */
        /* Hard code 1 stream, MCS0-7 is a min Basic VHT MCS rates */
-       oper->vht_basic_mcs_set = 0xfffc;
+       oper->vht_basic_mcs_set = host_to_le16(0xfffc);
        pos += sizeof(*oper);
 
        return pos;