]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add missing host_to_le32() for big endian hosts
authorMichal Kazior <michal.kazior@tieto.com>
Sat, 20 Jul 2013 14:17:32 +0000 (17:17 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jul 2013 14:17:32 +0000 (17:17 +0300)
Compiling hostapd with VHT enabled on a big endian machine resulted in
an undefined symbol error. Fix this by defining the missing macro.

Signed-hostap: Michal Kazior <michal.kazior@tieto.com>

src/utils/common.h

index e4f70313031593cdd921cdc53c839fdab36d9735..29f0b9535a23b6c7730939ed5dfdfa15aebbe846 100644 (file)
@@ -205,6 +205,7 @@ static inline unsigned int wpa_swap_32(unsigned int v)
 #define be_to_host16(n) (n)
 #define host_to_be16(n) (n)
 #define le_to_host32(n) bswap_32(n)
+#define host_to_le32(n) bswap_32(n)
 #define be_to_host32(n) (n)
 #define host_to_be32(n) (n)
 #define le_to_host64(n) bswap_64(n)