Return-path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:59039 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753107Ab1K2JBw (ORCPT ); Tue, 29 Nov 2011 04:01:52 -0500 Received: by eaak14 with SMTP id k14so2776022eaa.19 for ; Tue, 29 Nov 2011 01:01:51 -0800 (PST) MIME-Version: 1.0 Date: Tue, 29 Nov 2011 11:01:50 +0200 Message-ID: (sfid-20111129_100155_369051_F43FA1C4) Subject: ar9390 failing AGC calibration on powerpc platform From: wireless newbie To: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org Cc: Felix Fietkau , openwrt-devel@lists.openwrt.org, Mohammed Shafi Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi, I have been trying to get my ar9390 based wlan module to work as an AP on my powerpc target. There seems to be some issues with AGC calibration though. As soon as I start hostapd, I get the following: ath9k 0000:01:00.0: mon.wlan0: Features changed: 0x00004800 -> 0x00004000 ath: Unable to reset hardware; reset status -5 (freq 2412 MHz) Could not set interface mon.wlan0 flags: Input/output error nl80211: Failed to set interface wlan0 into AP mode nl80211 driver initialization failed. ELOOP: remaining socket: sock=8 eloop_data=0x10219770 user_data=0x10219d18 handler=0x1002b8c0 ELOOP: remaining socket: sock=10 eloop_data=0x1021c0b8 user_data=(nil) handler=0x100353e0 Further debugging revealed that the problem was AGC calibration that didn't finish and that can be seen from the logs too: ath: timeout (100000 us) on reg 0xa2c4: 0x00158dd9 & 0x00000001 != 0x00000000 I moved that module to x86 ubuntu 11.10 pc to see if it works there. For my surprise it worked just fine. So it seems that there is something related to powerpc platform. I'm using kernel 2.6.39 and compat wireless drivers from november. Would it be possible that there is some endianess stuff somewhere that isn't handled properly?