Return-path: Received: from mail-yw0-f46.google.com ([209.85.213.46]:41746 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758758Ab1IINzG (ORCPT ); Fri, 9 Sep 2011 09:55:06 -0400 Received: by ywf7 with SMTP id 7so1630089ywf.19 for ; Fri, 09 Sep 2011 06:55:06 -0700 (PDT) Message-ID: <4E6A1AB7.8080605@lwfinger.net> (sfid-20110909_155511_180102_4346E9FE) Date: Fri, 09 Sep 2011 08:55:03 -0500 From: Larry Finger MIME-Version: 1.0 To: Semigod King CC: wireless Subject: Re: mac80211 driver for RT3070 wifi card does not work on big-endian platform References: <4E6911C2.2030309@lwfinger.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 09/09/2011 07:05 AM, Semigod King wrote: > Larry, > Thank you for looking at this issue. I will try your code change tonight and let > you know test results. I have an openwrt cross build system ready on my freebsd > at home. That will not change a thing. Other than trip some sparse warnings, le32_to_cpu() and cpu_to_le32() do the same thing. On little-endian boxes, they are a no-op, and on big-endian platforms, they both reverse the byte order. Switching the call only makes it clearer what is happening. I am having trouble getting Ubuntu 11.04 running on my Macbook. The OS is installed, but no X at the moment. BTW, please do not drop the Cc to wireless. I want to keep the ML in the loop. Larry