Hi Simon,

On Fri, Jul 6, 2012 at 6:20 PM, Simon Wunderlich
<simon.wunderl...@s2003.tu-chemnitz.de> wrote:
> Hey,
>
> we have trouble with an AR9330 (Hornet) based AP. This device has 2 antennas, 
> and is supposed to support diversity (2 RX, 1 TX). However, diversity is not 
> really enabled because the "alternative" antenna is not considered as "good", 
> because not enough frames are received. It seems that at 99% of the time, 
> alt_rssi (read from rs->rs_rssi_ctl1) is invalid (set to ATH9K_RSSI_BAD, 
> -128), while main_rssi (read from rs->rs_rssi_ctl0) usually has sane values.

its been some good amount of time i had taken/tested take a look at
this. actually Gabor Juhos added the support for AR9330.
seems AR9003 family chipsets can exhibit this behaviour. i quickly
checked with AR9285(AR9002) which seems to have a positive RSSI
regulary in ctl0/ctl1.
i also have a AR9485(AR9003 family) which might be similar to AR9330.
just checked with removing the antenna in chain0 seems to bring
positive values in rssi_ctl1.
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.
also please see the throughput difference with/without antenna
diversity with one antenna broken.

I will check out the proper technical reason for such a
preference/compare with AR9285 (or) if its a bug in the code itself.
thanks for looking into this feature!

>
> We test by sending from a 1m distance (Laptop), and both antennas are 
> connected, so the alternative antenna should usually get some sane frames too.
>
> We have also tried to swap the antenna configuration of main and alt (LNA1 
> and LNA2), but only the alt_rssi will be invalid, and we then receive via the 
> alternative antenna. We therefore think that the antenna wiring is not the 
> problem.
>
> We have also checked EEPROM values, which seem to be correct as well. FYI, 
> register set after reading the EEPROM are:
> AR_PHY_MC_GAIN_CTRL = 13EF0200
> AR_PHY_CCK_DETECT = 803E6788
>
> Any ideas/pointers/suggestions?
>
> Thanks!
>         Simon
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk/23yMACgkQrzg/fFk7axZ86wCg8A5QQH+H+8H8lMiqBeCpYIyN
> fhEAnjs+pcyM462tbkre2M342k8DEX0C
> =i53p
> -----END PGP SIGNATURE-----
>



-- 
thanks,
shafi
_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to