From: Daniel Golle <dgolle@allnet.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] RFC: expose antCtrlCommon aka. AR_PHY_SWITCH_COM via nl80211
Date: Wed, 2 Nov 2011 19:16:18 +0100 [thread overview]
Message-ID: <4EB188F2.7060509@allnet.de> (raw)
In-Reply-To: <4EB1835B.2010704@openwrt.org>
On 11/02/2011 06:52 PM, Felix Fietkau wrote:
>> 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.
I agree that this should be abstracted away from the user.
You reckon the user should set the values via
iw phy phy0 set antenna 1 2
-> set (0x09a0,0x0210)
and
iw phy phy0 set antenna 2 1
-> set (0x0a90,0x0120)
and let the driver know that only (1,2) and (2,1) are valid settings?
it'd be nice to (additionally?) implement
iw phy phy0 set antenna horizontal
i would then imagine something like
struct ath9k_platform_switchcom_profile {
char *name;
u16 tx_antenna;
u16 rx_antenna;
}
and extend ath9k_platform_data by
u8 um_switchcom_profiles;
ath9k_platform_switchcom_profile *profiles;
As available_anntenas_rx and available_anntenas_tx are just bitmasks for now,
this first of all requires a way to handle the information about available
antenna-combinations in struct wiphy. (right?)
Cheers
Daniel
next prev parent reply other threads:[~2011-11-02 18:16 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
2011-11-02 18:02 ` Adrian Chadd
2011-11-02 18:16 ` Daniel Golle [this message]
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=4EB188F2.7060509@allnet.de \
--to=dgolle@allnet.de \
--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.