From: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
To: "Gábor Stefanik" <netrolller.3d@gmail.com>
Cc: Nick Kossifidis <mickflemm@gmail.com>, Hans Maes <Hans@bitnet.be>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: how to set antenna iw + ath5k
Date: Thu, 16 Apr 2009 17:22:46 +0200 [thread overview]
Message-ID: <49E74D46.6030707@nets.rwth-aachen.de> (raw)
In-Reply-To: <69e28c910904160637j5769be3au94821d48bfecf6f2@mail.gmail.com>
G=E1bor Stefanik wrote:
> On Thu, Apr 16, 2009 at 3:11 PM, Nick Kossifidis <mickflemm@gmail.com=
> wrote:
> =20
>> 2009/4/16 Hans Maes <Hans@bitnet.be>:
>> =20
>>> Hello,
>>>
>>> I'm not sure this is the correct place to ask my question, but I've=
been
>>> searching on google for ages now and can't seem to find an answer s=
o I'm
>>> asking it here.
>>> If not, please yell at me and tell me where to go whine instead ;-)
>>>
>>> I'm using CM11 a/b/g cards with the Atheros AR5414A Chip, which hav=
e 2
>>> antenna connectors.
>>> I only have 1 antenna connected to the MAIN connector.
>>> Running a self compiled 2.6.29 kernel on a few debian lenny boxes w=
ith ath5k
>>> module for the wireless cards, set up in mesh mode.
>>> Seems to work fine on the test bench, but behaves rather poorly in
>>> production environment.
>>> Everything related to the mesh network setup seems to work, but I h=
ave about
>>> 40% - 60% packet loss on the entire netwerk (about 15 nodes)
>>>
>>> I'm guessing this has something to do with the antenna diversity se=
tting.
>>>
>>> Can anybody tell me how to tell the ath5k module to disable antenna
>>> diversity and only use the MAIN antenna ?
>>>
>>> If this is a RTFM thingie, then I apologize, I just can't seem to f=
ind it
>>> anywhere.
>>>
>>> Please reply to my personal e-mail address as well, I'm not subscri=
bed to
>>> the list.
>>>
>>> Thanks for your help.
>>>
>>> Regards,
>>>
>>> Hans
>>> =20
>> After this patch...
>> https://lists.ath5k.org/pipermail/ath5k-devel/2009-April/002264.html
>>
>> It's possible to tell the driver to use one fixed antenna (in your
>> case its fixed antenna A). Just change...
>> ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT);
>>
>> with
>> ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_A);
>>
>> we will have a better way to change this in the future ;-)
>> =20
>
> I wonder if just exporting that as a modparam is a good-enough
> choice... though perhaps the best solution would be something like "i=
w
> phy phy0 antenna 1 up/down". Or perhaps we should make antenna
> diversity depend on the PCI ID, defaulting to 1 antenna when diversit=
y
> support cannot be determined.
>
> =20
modparam seems somewhat broken, thinking of multiple wireless cards...
My feature request would be to allow setup fixed txantenna only for
broadcast/multicast frames.
I think it would work for almost all setups, even if only
one antenna connector is used, as diversity logic
will naturally handle unicast frames right. Or did I miss something?
BTW: is it theoretically possible to turn off RX antenna diversity, and
what would be the potential gain?
Best regards,
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-04-16 15:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 11:41 how to set antenna iw + ath5k Hans Maes
2009-04-16 13:11 ` Nick Kossifidis
2009-04-16 13:37 ` Gábor Stefanik
2009-04-16 15:22 ` Arnd Hannemann [this message]
2009-04-16 15:45 ` Nick Kossifidis
2009-04-21 11:56 ` Hans Maes
2009-04-21 14:27 ` Bob Copeland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49E74D46.6030707@nets.rwth-aachen.de \
--to=hannemann@nets.rwth-aachen.de \
--cc=Hans@bitnet.be \
--cc=linux-wireless@vger.kernel.org \
--cc=mickflemm@gmail.com \
--cc=netrolller.3d@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).