From: Sven Eckelmann Date: Fri, 06 Jul 2012 18:35:55 +0200 Subject: [ath9k-devel] ath9k: Problems with diversity on AR9330 In-Reply-To: <5244861.J1Tyef1FCX@bentobox> References: <20120706125043.GA23189@pandem0nium> <5244861.J1Tyef1FCX@bentobox> Message-ID: <4991617.K7XqcvhjBY@bentobox> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Friday 06 July 2012 17:13:42 Sven Eckelmann wrote: [...] > > I just also observer the chain0 is "preferred" unless the RSSI is so > > poor in it so chain1 is taken. > > Please check if this work out for your case too. > > Removing the antenna on chain0 doesn't change the alt_rssi value for us. We > only noticed that frames with alt_rssi != -128 have the value rx_ant_conf > == 1 (LNA2) when only chain1 is attached and rx_ant_conf == 2 (LNA1) when > both/chain0-only are attached. Still most of the packets had alt_rssi == > -128 and we saw changes in curr_main_set and curr_alt_set (after lot of > data was sent). Here are some logs. We added some debug printk before first check in ath_ant_comb_scan ("if (main_rssi > 0 && alt_rssi > 0) {"). We can see a difference in the output after (a more or less long time) both antennas were unplugged. The output looks extreme different when at least one antenna is attached. alt_ant_conf is calculated using "alt_ant_conf = (rs->rs_rssi_ctl[2]) & ATH_ANT_RX_MASK;" and could be wrong. curr_alt_set and curr_main_set come from div_ant_conf queried using ath9k_hw_antdiv_comb_conf_get. Kind regards Sven -------------- next part -------------- A non-text attachment was scrubbed... Name: after_both_antennas_unplugged.txt.zip Type: application/zip Size: 1355 bytes Desc: not available Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120706/47294036/attachment-0002.zip -------------- next part -------------- A non-text attachment was scrubbed... Name: at_least_one_antenna.txt.zip Type: application/zip Size: 1297 bytes Desc: not available Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120706/47294036/attachment-0003.zip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120706/47294036/attachment-0001.pgp