From: Nick Kossifidis <mickflemm@gmail.com>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: Linux Wireless List <linux-wireless@vger.kernel.org>
Subject: Re: question: ATH5K, antenna-mode and fall-throught in ath5k_hw_set_fast_div()
Date: Wed, 16 Sep 2009 16:36:20 +0300 [thread overview]
Message-ID: <40f31dec0909160636j6a2022eaxdfef4889e6aafec@mail.gmail.com> (raw)
In-Reply-To: <200909161220.11538.hs4233@mail.mn-solutions.de>
2009/9/16 Holger Schurig <hs4233@mail.mn-solutions.de>:
> Hi !
>
> I have a device (fork-lift-terminal) where there is a PCCARD with
> an Atheros chip inside it. The PCCARD has an built-in antenna and
> a socket, where a cable goes to the external antenna.
>
> Using madwifi, I always did:
>
> echo 2 >/proc/sys/dev/wifi0/rxantenna
> echo 2 >/proc/sys/dev/wifi0/txantenna
> echo 0 >/proc/sys/dev/wifi0/diversity
>
> Now, with ath5k I'm planning to do this:
>
> --- linux-wl.orig/drivers/net/wireless/ath/ath5k/base.c 2009-09-16 10:43:45.000000000 +0200
> +++ linux-wl/drivers/net/wireless/ath/ath5k/base.c 2009-09-16 10:44:10.000000000 +0200
> @@ -2850,5 +2850,5 @@ ath5k_config(struct ieee80211_hw *hw, u3
> * then we must allow the user to set how many tx antennas we
> * have available
> */
> - ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT);
> + ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_B);
>
>
> ... as long as there is no offical interface for setting antenna
> mode. A bit crude, but ... :-)
>
An official interface is on the way, until then that's indeed the way
to switch to a fixed antenna ;-)
>
> However, when looking for the antenna-related code-paths, I found
> this:
>
> ath5k_hw_set_fast_div(struct ath5k_hw *ah, u8 ee_mode, bool enable)
> {
> switch (ee_mode) {
> case AR5K_EEPROM_MODE_11G:
> /* XXX: This is set to
> * disabled on initvals !!! */
> case AR5K_EEPROM_MODE_11A:
> ...
>
>
> In my case, ee_mode happens to be AR5K_EEPROM_MODE_11G, but I don't
> understand the implication of this comment. Is the XXX something
> to worry? My card is a B/G only card, so I wonder if the
> fall-through into the MODE_11A case is ok ?!?
>
As you see there is no break there so we treat G and A modes (OFDM)
the same, comment is there to let developers know that
AR5K_PHY_AGCCTL_OFDM_DIV_DIS is already disabled on initvals for G
mode (however AR5K_PHY_FAST_ANT_DIV_EN is enabled so diversity is
enabled) but it doesn't seem to make a difference anyway.
--
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
prev parent reply other threads:[~2009-09-16 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 10:20 question: ATH5K, antenna-mode and fall-throught in ath5k_hw_set_fast_div() Holger Schurig
2009-09-16 13:36 ` Nick Kossifidis [this message]
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=40f31dec0909160636j6a2022eaxdfef4889e6aafec@mail.gmail.com \
--to=mickflemm@gmail.com \
--cc=hs4233@mail.mn-solutions.de \
--cc=linux-wireless@vger.kernel.org \
/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