From patchwork Fri Apr 22 04:48:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Chadd X-Patchwork-Id: 726241 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3M4mJkD001038 for ; Fri, 22 Apr 2011 04:48:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751003Ab1DVEsR (ORCPT ); Fri, 22 Apr 2011 00:48:17 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:51194 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912Ab1DVEsR (ORCPT ); Fri, 22 Apr 2011 00:48:17 -0400 Received: by wwa36 with SMTP id 36so369836wwa.1 for ; Thu, 21 Apr 2011 21:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:cc:content-type; bh=OKRbDVFCxLOKCZ5Eeb0pSle4IFdPBHT6F+OuMlCpsZI=; b=JXU5Q4gvGIhOeQR3+G/y/TAG119ioS6Z+cAX/+42X3nliHDBvo/10ZrO6djFBDW+x7 PYzk5F5IUvZSO5C56s1KVwFWVLleKxCjgua6mF6AJDuprs/8Lb7Zga9MDZpikzeI8Em7 822xwyonxAO5mDYRBYem9yKx+FrztdJvflJc0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=MK+MWJC4exW+s2ff9yKexdh1btbMPi3MpXkQRFyNcW+5rylt4KOg/KIfXL+rgLqvPt IUGwOU7UoSYz1+Fy9Xcw0ukXu7YQcTlosXklIW0oo2jrie+SoRREO9Kt2Mx68mq2b3gW 8ZG9LTpApNDnbHVnX2ybIyOnWLkPMy24NjAS0= MIME-Version: 1.0 Received: by 10.227.61.16 with SMTP id r16mr697318wbh.24.1303447695775; Thu, 21 Apr 2011 21:48:15 -0700 (PDT) Received: by 10.227.174.13 with HTTP; Thu, 21 Apr 2011 21:48:15 -0700 (PDT) Date: Fri, 22 Apr 2011 12:48:15 +0800 X-Google-Sender-Auth: PTTE13u2jBjdr5IM4SwK9et8Qbc Message-ID: Subject: [ath9k] Fix xpaBiasLvlFreq parameter for AR9160 TX calibration From: Adrian Chadd To: ath9k-devel Cc: linux-wireless@vger.kernel.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 22 Apr 2011 04:48:19 +0000 (UTC) The xpaBiasLvlFreq parameter array is made up of 16 bit words which aren't byte-swapped like the other 16-bit eeprom parameters are. It's only used by the AR9160. Signed-off-by: Adrian Chadd --- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index 995949d..c031854 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c @@ -231,6 +231,10 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah) integer = swab32(pModal->antCtrlChain[i]); pModal->antCtrlChain[i] = integer; } + for (i = 0; i < 3; i++) { + word = swab16(pModal->xpaBiasLvlFreq[i]); + pModal->xpaBiasLvlFreq[i] = word; + } for (i = 0; i < AR_EEPROM_MODAL_SPURS; i++) { word = swab16(pModal->spurChans[i].spurChan);