From: Felix Fietkau <nbd@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] RFC: expose antCtrlCommon aka. AR_PHY_SWITCH_COM via nl80211
Date: Wed, 02 Nov 2011 18:52:27 +0100 [thread overview]
Message-ID: <4EB1835B.2010704@openwrt.org> (raw)
In-Reply-To: <4EB18291.1000906@allnet.de>
On 2011-11-02 6:49 PM, Daniel Golle wrote:
> Hi Adrian,
>
> On 11/02/2011 06:22 PM, Adrian Chadd wrote:
>> There's an antenna switch field in the EEPROM, so I take it that you
>> require multiple "valid" values? What/why would you choose between
>> them?
> according to the OEM it's allowed to set 0x09a00210 for horizontal or 0x0a900120
> for vertical. I assume that the TX-antenna is meant by that, i.e. 0x09a00210
> means horizontal-TX/vertical-RX.
> From what i understand, misconfiguration could damage the RX-part of the card,
> so the user should only be allowed to change the value to anything else than
> what is stored in the eeprom if we know it's a valid setting.
>
> As far as I understand the EEPROM only stores a single value for the
> antenna-switch setting, i.e. if there multiple valid values these must come from
> somewhere else.
>
> I don't know the exact electronic details of the implementation, so I'd go with
> a list of known-to-be-good values (passed to the driver via platform-data)
> instead of a causal check (e.g. don't allow to set the TX and RX to the same
> antenna or whatever you imagine to possibly be an invalid setting).
I think passing such 'magic' values from user space to the driver is a
bad idea. The abstraction should happen within the driver and exposed
via the antenna control API.
- Felix
next prev parent reply other threads:[~2011-11-02 17:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 17:14 [ath9k-devel] RFC: expose antCtrlCommon aka. AR_PHY_SWITCH_COM via nl80211 Daniel Golle
2011-11-02 17:22 ` Adrian Chadd
2011-11-02 17:49 ` Daniel Golle
2011-11-02 17:52 ` Felix Fietkau [this message]
2011-11-02 18:02 ` Adrian Chadd
2011-11-02 18:16 ` Daniel Golle
2011-11-02 19:50 ` Felix Fietkau
2011-11-03 0:23 ` Daniel Golle
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=4EB1835B.2010704@openwrt.org \
--to=nbd@openwrt.org \
--cc=ath9k-devel@lists.ath9k.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.