Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-18 Thread Matthias May
On 11/11/13 14:58, Sujith Manoharan wrote: Sven Eckelmann wrote: You are talking about ar9003_phy.c - ar9003_hw_set_chain_masks? No, the device is 3x3 and ah-caps.tx_chainmask ah-caps.rx_chainmask are 7 and not 5. The AR_PHY_ANALOG_SWAP := AR_PHY_SWAP_ALT_CHAIN is only done when one of them

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-18 Thread Sujith Manoharan
Matthias May wrote: I'm in the position where i want to use a 9390 as 2x2 instead of 3x3. I use backports-3.12-1. I've set the rx and tx mask in eeprom to 0x5. Every 30 seconds there is a short disconnect. Enabling some logging in echo 0x050C /sys/kernel/debug/ieee80211/phy0/ath9k/debug

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-18 Thread Matthias May
On 18/11/13 14:12, Sujith Manoharan wrote: Matthias May wrote: I'm in the position where i want to use a 9390 as 2x2 instead of 3x3. I use backports-3.12-1. I've set the rx and tx mask in eeprom to 0x5. Every 30 seconds there is a short disconnect. Enabling some logging in echo 0x050C

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-18 Thread Sujith Manoharan
Matthias May wrote: I'm in the position where i want to use a 9390 as 2x2 instead of 3x3. I use backports-3.12-1. I've set the rx and tx mask in eeprom to 0x5. 0x5 is not a valid chainmask on AR9390. The official statement is: We intentionally didn’t productize the chain mask of 0x5 on

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-18 Thread Sujith Manoharan
Matthias May wrote: root@CHD500279:/# echo 0x40d8 /sys/kernel/debug/ieee80211/phy6/ath9k/regidx root@CHD500279:/# cat /sys/kernel/debug/ieee80211/phy6/ath9k/regval 0x0004 On another device showing the same behaviour (but with various other patches and based on

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-14 Thread Sujith Manoharan
Alex Hacker wrote: Thank you Sujith. Probably I understood the following patch in a wrong way. Felix removed all chain masks checking. If the mask 5 is invalid, how about the mask 4 and 6? The patch is correct. For calibration, the mask that is calibrated in the EEPROM has to be used. Even if

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-11 Thread Sven Eckelmann
On Friday 08 November 2013 18:33:19 Adrian Chadd wrote: Hm, is the 0x5 chainmask triggering the ALT_CHAIN logic? You are talking about ar9003_phy.c - ar9003_hw_set_chain_masks? No, the device is 3x3 and ah-caps.tx_chainmask ah-caps.rx_chainmask are 7 and not 5. The AR_PHY_ANALOG_SWAP :=

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-11 Thread Sujith Manoharan
Sven Eckelmann wrote: You are talking about ar9003_phy.c - ar9003_hw_set_chain_masks? No, the device is 3x3 and ah-caps.tx_chainmask ah-caps.rx_chainmask are 7 and not 5. The AR_PHY_ANALOG_SWAP := AR_PHY_SWAP_ALT_CHAIN is only done when one of them would be 5. But I am not really sure what

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-11 Thread Alex Hacker
Thank you Sujith. Probably I understood the following patch in a wrong way. Felix removed all chain masks checking. If the mask 5 is invalid, how about the mask 4 and 6? Regards, Alex commit 24171dd92096fc370b195f3f6bdc0798855dc3f9 Author: Felix Fietkau n...@openwrt.org Date: Sun Jan 20

Re: [ath9k-devel] [OpenWrt-Devel] ath9k: Deaf QCA9558 when setting rxchainmask

2013-11-08 Thread Adrian Chadd
Hm, is the 0x5 chainmask triggering the ALT_CHAIN logic? What are you trying to do? Control the receive antenna config, or the transmit antenna config? -a On 8 November 2013 16:32, Julius Schulz-Zander jul...@net.t-labs.tu-berlin.de wrote: Hi Sven, I've asked nbd about this some time ago.