From: Jouni Malinen Date: Tue, 7 Aug 2012 17:49:23 +0000 (+0300) Subject: Fix byte order of VHT Basic MCS set for big endian hosts X-Git-Tag: hostap_2_0~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d56af7f8cb4ef8e1df6ee635fae847c7113fd0b9;p=thirdparty%2Fhostap.git Fix byte order of VHT Basic MCS set for big endian hosts Signed-hostap: Jouni Malinen --- diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c index 3ad33c890..6ba675803 100644 --- a/src/ap/ieee802_11_vht.c +++ b/src/ap/ieee802_11_vht.c @@ -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;