OpenWrt Forum Archive

Topic: TL WDR4300, dual band ant antennas

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all.
I'm running this marvel with OpenWRT AA 12.09-beta.
I'm wondering whether it'd be possible to configure which antenna(s) will be transmitting the 2.4 GHz signal and which one(s) the 5 GHz.
What I understand is that (so far) both frequencies get received and transmitted over all three antennas.
Any idea?
TIA.

(Last edited by uqbar on 10 Sep 2012, 07:04)

Maybe I should focus on the iw command:
# iw help
...
        phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
                Set a bitmap of allowed antennas to use for TX and RX.
                The driver may reject antenna configurations it cannot support.

How is defined the bitmap? That is, which antenna is linked to the LSB in the bitmap?
The iw output on my box is here.
While a first attempt gave me an error:

root@NOA-OfficeGW:~# iw phy phy0 set antenna all
command failed: Operation not supported (-122)

Anyone has any idea?
TIAA.

(Last edited by uqbar on 10 Sep 2012, 08:48)

I have some new infos. From CLI I have this (edited):
===================================
# iw list
Wiphy phy1
        Band 1:
...
                Frequencies:                                                                                                                                 
                        * 5180 MHz [36] (17.0 dBm)                                                                                                           
                        * 5200 MHz [40] (17.0 dBm)                                                                                                           
...
        Available Antennas: TX 0x7 RX 0x7
        Configured Antennas: TX 0x7 RX 0x7
...
Wiphy phy0
        Band 1:
...
                Frequencies:
                        * 2412 MHz [1] (27.0 dBm)
                        * 2417 MHz [2] (27.0 dBm)
...
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
...
===================================
It looks like that 802.11a uses all three antennas (0x7 == 0b111), while 802.11b uses just two (0x3 == 0b011).
Any idea which antenna is the 802.11a-only?

Usually the one in the middle... You can try setting one at a time with only one antenna physically installed?
Anyway never attach or remove antennas while router is ON

nebbia88 wrote:

Usually the one in the middle...

... usually?

nebbia88 wrote:

You can try setting one at a time with only one antenna physically installed

I think I also need to move far from the box to better check which plug has the antenna attached ...

nebbia88 wrote:

Anyway never attach or remove antennas while router is ON

Thanks for the hints!
Anyway, does the error I've got mean that I cannot define any "antenna affinity"?

Maybe try these options in etc config wireless..

https://forum.openwrt.org/viewtopic.php … 65#p166865

obviously you will se differences with or without antennas monitoring signal strenght with a wifi client quite far from the device...

The discussion might have continued from here.