All of lore.kernel.org
 help / color / mirror / Atom feed
From: Holger Schurig <holgerschurig@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: "Luis R. Rodriguez" <mcgrof@gmail.com>
Subject: Re: PROPOSAL: cfg80211 antenna selection
Date: Thu, 26 Nov 2009 08:51:00 +0100	[thread overview]
Message-ID: <200911260851.00192.holgerschurig@gmail.com> (raw)
In-Reply-To: <43e72e890911250736l33afdf8ak1c806e5f5482f9da@mail.gmail.com>

> While at it might as well make this some configurable struct
> which the drivers can add to the wiphy just as with the
> subbands. 

Something like this?


struct ieee80211_antenna lbs_antennas {
	u32 hwvalue;
	u32 flags;
	u32 capability;
	int max_gain;
}

static struct ieee80211_antenna lbs_antennas[] = {
	{
		.hwvalue = 0,
		.capability = IEEE80211_ANTENNA_RXTX,
	}
};

wiphy->antennas = lbs_antennas;
wiphy->n_anteanns = ARRAY_SIZE(lbs_antennas);

Or should the antennas be added to "struct
ieee80211_supported_band" instead of wiphy?


Capabilities could be

#define IEEE80211_ANTENNA_RX         BIT(0)
#define IEEE80211_ANTENNA_TX         BIT(1)
#define IEEE80211_ANTENNA_OMNI       BIT(2)
#define IEEE80211_ANTENNA_SECTIONAL  BIT(3)
#define IEEE80211_ANTENNA_RXTX
   (IEEE80211_ANTENNA_RX | IEEE80211_ANTENNA_TX)

An unknown gain would be set to 0.



> Not sure how to get this from other cards. Anyone know how
> about on b43, iwlwifi, rallink? 

Libertas doesn't give this to you, AFAIK you can just get the
number of antennas.


> Not sure if allowing for ops for chainmask setting would also
> be helpeful here, that would need some review.

What is "chainmask setting", I don't even know the concept.



You didn't give any comment on my mask idea for the user-space 
API.

-- 
http://www.holgerschurig.de

  reply	other threads:[~2009-11-26  7:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25  8:41 PROPOSAL: cfg80211 antenna selection Holger Schurig
2009-11-25 14:37 ` Bob Copeland
2009-11-26  7:35   ` Holger Schurig
2009-11-25 15:36 ` Luis R. Rodriguez
2009-11-26  7:51   ` Holger Schurig [this message]
2009-11-26 23:40     ` Nick Kossifidis

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=200911260851.00192.holgerschurig@gmail.com \
    --to=holgerschurig@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@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 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.