From patchwork Thu Jul 11 12:50:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 258445 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 083EF2C032E for ; Thu, 11 Jul 2013 22:50:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 346499C123; Thu, 11 Jul 2013 08:50:34 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uCKlCpKd3izL; Thu, 11 Jul 2013 08:50:33 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E12AD9C12A; Thu, 11 Jul 2013 08:50:28 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 89A059C12A for ; Thu, 11 Jul 2013 08:50:27 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id reMB4CHT0Vfx for ; Thu, 11 Jul 2013 08:50:21 -0400 (EDT) Received: from ebb06.tieto.com (ebb06.tieto.com [131.207.168.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "ebb06.tieto.com", Issuer "VeriSign Class 3 Secure Server CA - G3" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 979999C123 for ; Thu, 11 Jul 2013 08:50:21 -0400 (EDT) X-AuditID: 83cfa826-b7fc96d000004032-17-51deaa0bde76 Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb06.tieto.com (SMTP Mailer) with SMTP id 25.AB.16434.B0AAED15; Thu, 11 Jul 2013 15:50:20 +0300 (EEST) Received: from uw001058.eu.tieto.com (10.28.19.57) by inbound.tieto.com (131.207.136.49) with Microsoft SMTP Server id 8.3.298.1; Thu, 11 Jul 2013 15:50:19 +0300 From: Michal Kazior To: Subject: [PATCH] Add missing host_to_le32() for big endian hosts Date: Thu, 11 Jul 2013 14:50:07 +0200 Message-ID: <1373547007-15019-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsXSfL5DS5dn1b1Ag8t7OS0WNT1gsvi29QGb A5PH55l32Tx2n9rHEsAUxWWTkpqTWZZapG+XwJXRtGoKW8Ed1oqV86waGB+zdDFyckgImEhs mP6HFcIWk7hwbz0biC0ksIpRoueGXhcjF5C9lFFi/4Z3YA1sAroSrxrPgjWICMhIvNz8CyzO LKAt0f7mOlhcWMBB4u2270wgNouAqsSCaffB4rwC7hLHLrQBxTmAlilIzJlkAxEWlDg58wnU GAmJgy9eMEPcoCJxcP1+5gmMfLOQlM1CUraAkWkVI39qUpKBmV5JZmpJvl5yfu4mRnD4rFDb wfjsgdQhRgEORiUe3ob4u4FCrIllxZW5hxglOZiURHknzL0XKMSXlJ9SmZFYnBFfVJqTWnyI UYKDWUmEV3AyUI43JbGyKrUoHyYlzcGiJM67JxgoJZCeWJKanZpakFoEk5Xh4FCS4H27Aigr WJSanlqRlplTgpBm4uAEGc4DNPwZSA1vcUFibnFmOkT+FKOilDjvSZCEAEgiozQPrhcW368Y xYFeEeZlXglUxQNMDXDdr4AGMwEN3pNyB2RwSSJCSqqBsWai1NFGXpe9/LXbBK+fT3zE+K2Q JditU1H/i//a640cqZrlrg7cD2OnSM9/FvrkxeepHz6seieTEBf2JHOG7LLgDt5gxdPysr+P 9UtPP/26ZH2UfF6b7DWnH+rlCtEBkn93Gs7/J3fBUNvdc0GgqsjvPXnbHVVET5f9n/PQJ7tV //Cys5ZGSizFGYmGWsxFxYkA0SA87coCAAA= X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com 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 --- src/utils/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/common.h b/src/utils/common.h index e4f7031..29f0b95 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -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)