* Ath9k, single antenna on ar9280
@ 2011-10-14 15:46 Stanislav Demakov
2011-10-15 1:45 ` Adrian Chadd
2011-10-15 11:38 ` Felix Fietkau
0 siblings, 2 replies; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-14 15:46 UTC (permalink / raw)
To: linux-wireless
I've noticed that set_antenna and get_antenna functionality was added
to the ath9k driver. But iw phy set antenna command still isn't
working.
I know that before there was a workaround by setting chainmasks number
to 1, but this is not exactly what I need. I just need to enable only
one physical antenna and allow the adapter work only in 1x1 mode.
Is it possible?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-14 15:46 Ath9k, single antenna on ar9280 Stanislav Demakov
@ 2011-10-15 1:45 ` Adrian Chadd
2011-10-15 7:39 ` Stanislav Demakov
2011-10-15 11:38 ` Felix Fietkau
1 sibling, 1 reply; 18+ messages in thread
From: Adrian Chadd @ 2011-10-15 1:45 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
.. well, that's basically how you convince the MIMO radios to work in 1x1 mode.
Adrian
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 1:45 ` Adrian Chadd
@ 2011-10-15 7:39 ` Stanislav Demakov
2011-10-15 9:48 ` Adrian Chadd
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 7:39 UTC (permalink / raw)
To: Adrian Chadd; +Cc: linux-wireless
Well, before, I did this:
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
So what exactly changed now after they added set\get_antenna functions
to the driver?
2011/10/15 Adrian Chadd <adrian@freebsd.org>:
> .. well, that's basically how you convince the MIMO radios to work in 1x1 mode.
>
>
>
> Adrian
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 7:39 ` Stanislav Demakov
@ 2011-10-15 9:48 ` Adrian Chadd
2011-10-15 10:02 ` Stanislav Demakov
0 siblings, 1 reply; 18+ messages in thread
From: Adrian Chadd @ 2011-10-15 9:48 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
You'll have to ask Felix and others, but I think they're more generic
APIs to support things like AR9285 (and the relevant AR9300/AR9400
series NICs) which implement 1x1 but have "classic" style antenna
diversity.
Also, as I've discovered, you _can_ glue an antenna switch onto the
side of a MIMO NIC. Eg, I have an AR9220 based NIC (2x2:2) which has
three antennas, both the second and third are connected to chain 1 via
an antenna switch.
Adrian
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 9:48 ` Adrian Chadd
@ 2011-10-15 10:02 ` Stanislav Demakov
2011-10-15 11:29 ` Adrian Chadd
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 10:02 UTC (permalink / raw)
To: Adrian Chadd; +Cc: linux-wireless
Thanks. I'll ask him.
>>both the second and third are connected to chain 1 via
an antenna switch.
That's interesting. Could you give me a clue how to implement this?
Also after doing that, will it be enough to use only one physical
antenna connector?
2011/10/15 Adrian Chadd <adrian@freebsd.org>:
> You'll have to ask Felix and others, but I think they're more generic
> APIs to support things like AR9285 (and the relevant AR9300/AR9400
> series NICs) which implement 1x1 but have "classic" style antenna
> diversity.
>
> Also, as I've discovered, you _can_ glue an antenna switch onto the
> side of a MIMO NIC. Eg, I have an AR9220 based NIC (2x2:2) which has
> three antennas, both the second and third are connected to chain 1 via
> an antenna switch.
>
>
>
> Adrian
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 10:02 ` Stanislav Demakov
@ 2011-10-15 11:29 ` Adrian Chadd
2011-10-15 11:33 ` Stanislav Demakov
0 siblings, 1 reply; 18+ messages in thread
From: Adrian Chadd @ 2011-10-15 11:29 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 15 October 2011 18:02, Stanislav Demakov <s.demakov@gmail.com> wrote:
> Thanks. I'll ask him.
>
>>>both the second and third are connected to chain 1 via
> an antenna switch.
>
> That's interesting. Could you give me a clue how to implement this?
> Also after doing that, will it be enough to use only one physical
> antenna connector?
It depends on how it's all wired up. And yes, once you know how it's
wired up and which antenna configuration words to program in, you can
run just one of three antennas.
adrian
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 11:29 ` Adrian Chadd
@ 2011-10-15 11:33 ` Stanislav Demakov
2011-10-15 11:49 ` Adrian Chadd
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 11:33 UTC (permalink / raw)
To: Adrian Chadd; +Cc: linux-wireless
If you tell me how exactly you did it on the AR9220 in your case, this
will be a good example at least.
2011/10/15 Adrian Chadd <adrian@freebsd.org>:
> On 15 October 2011 18:02, Stanislav Demakov <s.demakov@gmail.com> wrote:
>> Thanks. I'll ask him.
>>
>>>>both the second and third are connected to chain 1 via
>> an antenna switch.
>>
>> That's interesting. Could you give me a clue how to implement this?
>> Also after doing that, will it be enough to use only one physical
>> antenna connector?
>
> It depends on how it's all wired up. And yes, once you know how it's
> wired up and which antenna configuration words to program in, you can
> run just one of three antennas.
>
>
>
> adrian
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-14 15:46 Ath9k, single antenna on ar9280 Stanislav Demakov
2011-10-15 1:45 ` Adrian Chadd
@ 2011-10-15 11:38 ` Felix Fietkau
2011-10-15 11:45 ` Stanislav Demakov
1 sibling, 1 reply; 18+ messages in thread
From: Felix Fietkau @ 2011-10-15 11:38 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 2011-10-14 5:46 PM, Stanislav Demakov wrote:
> I've noticed that set_antenna and get_antenna functionality was added
> to the ath9k driver. But iw phy set antenna command still isn't
> working.
Did you try bringing down all active wlanX interfaces belonging to that
phy before running that command?
- Felix
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 11:38 ` Felix Fietkau
@ 2011-10-15 11:45 ` Stanislav Demakov
2011-10-15 11:52 ` Felix Fietkau
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 11:45 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless
Ok, just have tried:
ifconfig wlan0 down
and then tested it:
iw phy phy0 set antenna all all
but it's only showing iw help as before.
I'm using the latest compiled compat-wireless.
2011/10/15 Felix Fietkau <nbd@openwrt.org>:
> On 2011-10-14 5:46 PM, Stanislav Demakov wrote:
>>
>> I've noticed that set_antenna and get_antenna functionality was added
>> to the ath9k driver. But iw phy set antenna command still isn't
>> working.
>
> Did you try bringing down all active wlanX interfaces belonging to that phy
> before running that command?
>
> - Felix
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 11:33 ` Stanislav Demakov
@ 2011-10-15 11:49 ` Adrian Chadd
0 siblings, 0 replies; 18+ messages in thread
From: Adrian Chadd @ 2011-10-15 11:49 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 15 October 2011 19:33, Stanislav Demakov <s.demakov@gmail.com> wrote:
> If you tell me how exactly you did it on the AR9220 in your case, this
> will be a good example at least.
I haven't yet written to code for FreeBSD/ath9k. Sorry.
Adrian
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 11:45 ` Stanislav Demakov
@ 2011-10-15 11:52 ` Felix Fietkau
2011-10-15 12:13 ` Stanislav Demakov
0 siblings, 1 reply; 18+ messages in thread
From: Felix Fietkau @ 2011-10-15 11:52 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 2011-10-15 1:45 PM, Stanislav Demakov wrote:
> Ok, just have tried:
>
> ifconfig wlan0 down
>
> and then tested it:
>
> iw phy phy0 set antenna all all
>
> but it's only showing iw help as before.
> I'm using the latest compiled compat-wireless.
Try using "1 1" instead of "all all".
Are you using the latest iw version?
- Felix
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 11:52 ` Felix Fietkau
@ 2011-10-15 12:13 ` Stanislav Demakov
2011-10-15 12:19 ` Felix Fietkau
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 12:13 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless
Ok, I've compiled and installed iw from git. Now I have this (wlan0 is down):
sudo iw phy phy0 set antenna 1 1
command failed: Operation not supported (-95)
2011/10/15 Felix Fietkau <nbd@openwrt.org>:
> On 2011-10-15 1:45 PM, Stanislav Demakov wrote:
>>
>> Ok, just have tried:
>>
>> ifconfig wlan0 down
>>
>> and then tested it:
>>
>> iw phy phy0 set antenna all all
>>
>> but it's only showing iw help as before.
>> I'm using the latest compiled compat-wireless.
>
> Try using "1 1" instead of "all all".
> Are you using the latest iw version?
>
> - Felix
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 12:13 ` Stanislav Demakov
@ 2011-10-15 12:19 ` Felix Fietkau
2011-10-15 12:24 ` Stanislav Demakov
0 siblings, 1 reply; 18+ messages in thread
From: Felix Fietkau @ 2011-10-15 12:19 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 2011-10-15 2:13 PM, Stanislav Demakov wrote:
> Ok, I've compiled and installed iw from git. Now I have this (wlan0 is down):
>
> sudo iw phy phy0 set antenna 1 1
>
> command failed: Operation not supported (-95)
No idea then. It works on all of my systems.
- Felix
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 12:19 ` Felix Fietkau
@ 2011-10-15 12:24 ` Stanislav Demakov
2011-10-15 12:39 ` Felix Fietkau
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 12:24 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless
I'm running Ubuntu Server 11.10 - (kernel: Linux server
3.0.0-12-generic x86_64)
ath9k from compat-wireless-2011-10-12 and current iw from git compiled
with libnl1.
The wireless chip is AR9280. (2x2 MIMO)
Also
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
is written at boot.
Is something wrong above?
2011/10/15 Felix Fietkau <nbd@openwrt.org>:
> On 2011-10-15 2:13 PM, Stanislav Demakov wrote:
>>
>> Ok, I've compiled and installed iw from git. Now I have this (wlan0 is
>> down):
>>
>> sudo iw phy phy0 set antenna 1 1
>>
>> command failed: Operation not supported (-95)
>
> No idea then. It works on all of my systems.
>
> - Felix
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 12:24 ` Stanislav Demakov
@ 2011-10-15 12:39 ` Felix Fietkau
2011-10-15 13:34 ` Stanislav Demakov
0 siblings, 1 reply; 18+ messages in thread
From: Felix Fietkau @ 2011-10-15 12:39 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 2011-10-15 2:24 PM, Stanislav Demakov wrote:
> I'm running Ubuntu Server 11.10 - (kernel: Linux server
> 3.0.0-12-generic x86_64)
>
> ath9k from compat-wireless-2011-10-12 and current iw from git compiled
> with libnl1.
>
> The wireless chip is AR9280. (2x2 MIMO)
>
> Also
> echo 1> /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
> echo 1> /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
> is written at boot.
>
> Is something wrong above?
Do not mess with the rx_chainmask/tx_chainmask parameters, that may be
the reason why it's not working for you.
- Felix
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 12:39 ` Felix Fietkau
@ 2011-10-15 13:34 ` Stanislav Demakov
2011-10-15 13:41 ` Stanislav Demakov
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 13:34 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless
I've found it. Hostapd was the reason. After killing it set antenna works.
Thanks. :)
2011/10/15 Felix Fietkau <nbd@openwrt.org>:
> On 2011-10-15 2:24 PM, Stanislav Demakov wrote:
>>
>> I'm running Ubuntu Server 11.10 - (kernel: Linux server
>> 3.0.0-12-generic x86_64)
>>
>> ath9k from compat-wireless-2011-10-12 and current iw from git compiled
>> with libnl1.
>>
>> The wireless chip is AR9280. (2x2 MIMO)
>>
>> Also
>> echo 1> /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
>> echo 1> /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
>> is written at boot.
>>
>> Is something wrong above?
>
> Do not mess with the rx_chainmask/tx_chainmask parameters, that may be the
> reason why it's not working for you.
>
> - Felix
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 13:34 ` Stanislav Demakov
@ 2011-10-15 13:41 ` Stanislav Demakov
2011-10-15 14:22 ` Felix Fietkau
0 siblings, 1 reply; 18+ messages in thread
From: Stanislav Demakov @ 2011-10-15 13:41 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless
And the last question...
Can you confirm that after setting antenna configuration to 1x1 I can
safely detach 2nd physical connector from the adapter? I mean is there
a guarantees that device will only use the 1st antenna.
2011/10/15 Stanislav Demakov <s.demakov@gmail.com>:
> I've found it. Hostapd was the reason. After killing it set antenna works.
> Thanks. :)
>
> 2011/10/15 Felix Fietkau <nbd@openwrt.org>:
>> On 2011-10-15 2:24 PM, Stanislav Demakov wrote:
>>>
>>> I'm running Ubuntu Server 11.10 - (kernel: Linux server
>>> 3.0.0-12-generic x86_64)
>>>
>>> ath9k from compat-wireless-2011-10-12 and current iw from git compiled
>>> with libnl1.
>>>
>>> The wireless chip is AR9280. (2x2 MIMO)
>>>
>>> Also
>>> echo 1> /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
>>> echo 1> /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
>>> is written at boot.
>>>
>>> Is something wrong above?
>>
>> Do not mess with the rx_chainmask/tx_chainmask parameters, that may be the
>> reason why it's not working for you.
>>
>> - Felix
>>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Ath9k, single antenna on ar9280
2011-10-15 13:41 ` Stanislav Demakov
@ 2011-10-15 14:22 ` Felix Fietkau
0 siblings, 0 replies; 18+ messages in thread
From: Felix Fietkau @ 2011-10-15 14:22 UTC (permalink / raw)
To: Stanislav Demakov; +Cc: linux-wireless
On 2011-10-15 3:41 PM, Stanislav Demakov wrote:
> And the last question...
> Can you confirm that after setting antenna configuration to 1x1 I can
> safely detach 2nd physical connector from the adapter? I mean is there
> a guarantees that device will only use the 1st antenna.
Changing the antenna configuration will alter the chainmask accordingly,
so it should be safe to disconnect the second physical connector.
- Felix
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2011-10-15 14:22 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 15:46 Ath9k, single antenna on ar9280 Stanislav Demakov
2011-10-15 1:45 ` Adrian Chadd
2011-10-15 7:39 ` Stanislav Demakov
2011-10-15 9:48 ` Adrian Chadd
2011-10-15 10:02 ` Stanislav Demakov
2011-10-15 11:29 ` Adrian Chadd
2011-10-15 11:33 ` Stanislav Demakov
2011-10-15 11:49 ` Adrian Chadd
2011-10-15 11:38 ` Felix Fietkau
2011-10-15 11:45 ` Stanislav Demakov
2011-10-15 11:52 ` Felix Fietkau
2011-10-15 12:13 ` Stanislav Demakov
2011-10-15 12:19 ` Felix Fietkau
2011-10-15 12:24 ` Stanislav Demakov
2011-10-15 12:39 ` Felix Fietkau
2011-10-15 13:34 ` Stanislav Demakov
2011-10-15 13:41 ` Stanislav Demakov
2011-10-15 14:22 ` Felix Fietkau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).