linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: Bruno Randolf <br1@einfach.org>,
	johannes@sipsolutions.net, linville@tuxdriver.com,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH v5] cfg80211: Add nl80211 antenna configuration
Date: Mon, 02 Aug 2010 11:32:55 +0200	[thread overview]
Message-ID: <4C5690C7.2080104@openwrt.org> (raw)
In-Reply-To: <AANLkTinGdwt4bSPRDV=ZfPBmoKS42GgUVjLAg_O1vL3i@mail.gmail.com>

On 2010-08-02 11:23 AM, Luis R. Rodriguez wrote:
> On Mon, Aug 2, 2010 at 2:17 AM, Felix Fietkau <nbd@openwrt.org> wrote:
>> On 2010-08-02 11:10 AM, Luis R. Rodriguez wrote:
>>> On Mon, Aug 2, 2010 at 1:59 AM, Felix Fietkau <nbd@openwrt.org> wrote:
>>>> On 2010-08-02 7:37 AM, Luis R. Rodriguez wrote:
>>>>> I'm not, the point I was trying to make is that solving this for
>>>>> legacy and that for 802.11n this needs more thought and work.
>>>> I need this for 802.11n as well, and I believe the API is good enough
>>>> for that.
>>>
>>> Sure.
>>>
>>>>>> as long as the API is flexible
>>>>>> enough i think it can be added later as 802.11n devices are going to accept
>>>>>> antenna configuration.
>>>>>
>>>>> If you want really flexible stuff without addressing serious
>>>>> considerations before introducing a new kernel API then use debugfs.
>>>> I'd like to see this in nl80211. Is there any specific concern left that
>>>> I haven't addressed already? If so, please point me at it...
>>>
>>> The code that deals with not accepting changes unless we're not
>>> associated, and that also caches the old real hw config vs the
>>> modified one.
>> This is not really an API issue, this is more of an implementation
>> aspect. I think it's up to the driver to reject changes that it cannot
>> handle at the moment.
> 
> Huh,why not deal with this on cfg80211 and/or mac80211?
Right now, the drivers calculate this. We could make a helper function
in cfg80211 at some point, but we're talking about really small chunks
of code.

>> For 802.11n, changes that affect the chainmask should be rejected while
>> the interface is up. That way we don't run into weird cached config vs
>> hw config issues, and also keep a sane state for the HT capabilities.
> 
> Sure, I just did not see any code for this in these patches. My point
> about the hw config vs fake/mod'd is if we'd expose the mod'd config
> changes to userspace or if we'd keep them internal to cfg80211. How
> would this be dealt with?
Right now, cfg80211 doesn't know enough to handle this stuff on its own,
so let's handle it in the driver completely on the first iteration. The
patches do not need any changes for this right now.

- Felix

  reply	other threads:[~2010-08-02  9:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-29  3:58 [PATCH v5] cfg80211: Add nl80211 antenna configuration Bruno Randolf
2010-07-29  6:12 ` Luis R. Rodriguez
2010-07-29  7:48   ` Johannes Berg
2010-07-29  9:12   ` Bruno Randolf
2010-07-29 15:04     ` Luis R. Rodriguez
2010-08-02  4:13       ` Bruno Randolf
2010-08-02  5:37         ` Luis R. Rodriguez
2010-08-02  8:59           ` Felix Fietkau
2010-08-02  9:10             ` Luis R. Rodriguez
2010-08-02  9:17               ` Felix Fietkau
2010-08-02  9:23                 ` Luis R. Rodriguez
2010-08-02  9:32                   ` Felix Fietkau [this message]
2010-08-02  9:52                     ` Luis R. Rodriguez
2010-08-02 10:10                       ` Felix Fietkau
2010-08-02 10:18                         ` Luis R. Rodriguez
2010-08-02 10:47                           ` Felix Fietkau
2010-08-02 10:51                             ` Luis R. Rodriguez
2010-08-02 11:18                               ` Felix Fietkau
2010-08-02 17:45                                 ` Luis R. Rodriguez
2010-08-02 11:01                             ` Johannes Berg
2010-08-02 11:19                               ` Felix Fietkau

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=4C5690C7.2080104@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=br1@einfach.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --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 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).