Return-path: Received: from mail-gy0-f174.google.com ([209.85.160.174]:52403 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755468Ab1IHFmE (ORCPT ); Thu, 8 Sep 2011 01:42:04 -0400 Received: by gyg10 with SMTP id 10so42111gyg.19 for ; Wed, 07 Sep 2011 22:42:02 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 8 Sep 2011 13:34:14 +0800 Message-ID: (sfid-20110908_074208_549193_9CC984E5) Subject: mac80211 driver for RT3070 wifi card does not work on big-endian platform From: Semigod King To: linux-wireless@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Greetings, I would like to report a bug to you. The same problem was reported to OpenWRT developers. But, they suggest me report it to linux wireless. Problem: The wireless card can not be recognized. But, an iface with wrong MAC is created. wlan1 Link encap:Ethernet HWaddr 00:06:4E:E8:00:00 <== Wrong MAC, the correct MAC is E8:4E:06:00:74:61. Looks like byte-swapped. UP BROADCAST MULTICAST MTU:1500 Metric:1 <=== Not running RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) After making changes according to https://forum.openwrt.org/viewtopic.php?id=30132, the card can now be recognized with correct MAC and can be operated. But, it does not work yet. No RX in AP mode. No TX & RX in STA mode. I guess the TX in AP mode is meaningless. Wifi Card: Unknown brand, RT3070 chipset, USB Platform: Openwrt (MIPS, BCM6358, big-endian) Kernel: root@OpenWrt:~# uname -a Linux OpenWrt 2.6.39.4 #1 Mon Aug 22 04:57:19 MST 2011 mips GNU/Linux driver: mac80211 compat-wireless driver. kmod-rt2800-lib - 2.6.39.4+2011-08-10-2 kmod-rt2800-usb - 2.6.39.4+2011-08-10-2 kmod-rt2x00-lib - 2.6.39.4+2011-08-10-2 kmod-rt2x00-usb - 2.6.39.4+2011-08-10-2 Regards, Lucas Wang