Change the number of active antennas (RF-chains)

Okhwan Lee ohlee at mwnl.snu.ac.kr
Thu Sep 11 20:48:07 PDT 2014


Hi,  

Thank you for your answer.  
I use 3.16.1 kernel version,  3.16.1 backport version and 10.1.467.2-1 firmware version.  
I am curious to know your testing.  

This is my test bash-script.

########### test.sh ###########

#!/usr/bin/sudo /bin/bash
rmmod ath10k_pci ath10k_core ath mac80211 cfg80211
modprobe ath10k_pci  
ifconfig wlan0 2>/dev/null 1>/dev/null
while [ $? -ne 0 ]  
do
ifconfig wlan0 2>/dev/null 1>/dev/null
done
echo 0x12 > /sys/module/ath10k_core/parameters/debug_mask
iw dev wlan0 interface add mon0 type monitor
iw mon0 set freq 5180 80 5210
ifconfig mon0 up



######################

then … type the following command in shell prompt  

echo 0x1 > /sys/kernel/debug/ieee80211/phy*/ath10k/rx_chainmask
echo 0x7 > /sys/kernel/debug/ieee80211/phy*/ath10k/rx_chainmask

.
.
.

I also test it by using hostapd.

Thank you.  

--
Okhwan Lee,
Multimedia & Wireless Networking Lab. (MWNL),
Seoul National University (SNU).

Tel: +82-2-880-1755
Cell: +82-10-4632-1980
URL: http://mwnl.snu.ac.kr/~ohlee


On 2014년 9월 11일 Thursday at 오후 11:21, Ben Greear wrote:

> On 09/11/2014 12:37 AM, Okhwan Lee wrote:
> > Hi,
> >  
> > I have been trying to configure the number of active antennas (not
> > spatial stream) by using ath10k/QCA9880.
> >  
> > When I use ath9k, we can easily change the number of active antenna by
> > using REG_WRITE(ah, AR_PHY_RX_CHAINMASK, ah->rxchainmask) function
> > used in ar9003_hw_set_chain_masks.
> >  
> > However, in ath10k, we failed to handle the values (e.g, rx/tx chain
> > mask of QCA9880) by using ath10k_wmi_pdev_set_param(ar,
> > ar->wmi.pdev_param->rx_chain_mask, rx_ant) funcion in used in
> > __ath10k_set_antenna.
>  
>  
>  
> Newer kernels should have this support, and it seemed to work in my
> testing. I did not test power consumption.
>  
> What kernel version are you using?
>  
> Thanks,
> Ben
>  
> --  
> Ben Greear <greearb at candelatech.com (mailto:greearb at candelatech.com)>
> Candela Technologies Inc http://www.candelatech.com





More information about the ath10k mailing list