Return-path: Received: from mail.atheros.com ([12.19.149.2]:64841 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757654Ab1D1OXL (ORCPT ); Thu, 28 Apr 2011 10:23:11 -0400 Received: from mail.atheros.com ([10.234.20.104]) by sidewinder.atheros.com for ; Thu, 28 Apr 2011 07:22:44 -0700 From: Mohammed Shafi Shajakhan To: CC: , , , Mohammed Shafi Shajakhan Subject: [RFC/RFT 0/9] ath9k: Add Antenna diversity support for AR9485 Date: Thu, 28 Apr 2011 19:52:50 +0530 Message-ID: <1304000579-5784-1-git-send-email-mshajakhan@atheros.com> (sfid-20110428_162315_093693_473B2412) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Mohammed Shafi Shajakhan *These are purely RFC/RFT patches, none of them are tested. once tested we will send it as patches. *This patch set adds Antenna diversity support for AR9485, previously antenna diversity is only supported in AR9285 *The basic antenna diversity algorithm remains the same *slight change in the diversity field in eeprom *introduction of main/alt gain table and lna1_lna2 delta fields *initially set LNA1 for main antenna *introduction of diversity group *based on diversity group, fast diversity bias parmaters and lna1_lna2_delta varies *implement an API to take the decision of swapping main/ALT LNA's for AR9485 *configure fast diversity bias based on diversity group Mohammed Shafi Shajakhan (9): ath9k_hw: make antenna diversity modules chip specific ath9k_hw: enable Antenna diversity for AR9485 ath9k_hw: define registers/macros to support Antenna diversity ath9k_hw: config diversity based on eeprom contents ath9k_hw: define modules to get/set Antenna diversity paramaters ath9k_hw: define antenna diversity group ath9k: Implement an API to swap main/ALT LNA's ath9k: configure fast_div_bias based on diversity group ath9k: make sure main_rssi is positive drivers/net/wireless/ath/ath9k/ar9002_mac.c | 2 + drivers/net/wireless/ath/ath9k/ar9002_phy.c | 10 +- drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 50 +++++- drivers/net/wireless/ath/ath9k/ar9003_mac.c | 2 + drivers/net/wireless/ath/ath9k/ar9003_phy.c | 44 +++++ drivers/net/wireless/ath/ath9k/ar9003_phy.h | 31 +++- drivers/net/wireless/ath/ath9k/ath9k.h | 1 - drivers/net/wireless/ath/ath9k/hw-ops.h | 12 ++ drivers/net/wireless/ath/ath9k/hw.c | 16 ++ drivers/net/wireless/ath/ath9k/hw.h | 23 ++- drivers/net/wireless/ath/ath9k/recv.c | 211 ++++++++++++++++++------ 11 files changed, 337 insertions(+), 65 deletions(-)