linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [wireless-next PATCH 1/5] mac80211: Support forcing station to disable 11n.
Date: Thu, 03 Nov 2011 11:17:50 -0700	[thread overview]
Message-ID: <4EB2DACE.2000707@candelatech.com> (raw)
In-Reply-To: <1320309058.3950.7.camel@jlt3.sipsolutions.net>

On 11/03/2011 01:30 AM, Johannes Berg wrote:
> On Wed, 2011-11-02 at 23:04 -0700, Ben Greear wrote:
>
>> I think I made at least most of the other changes you were asking
>> for, but I'm still baffled about what to do about fullmac drivers.
>>
>> Based on the comment above, if I simply left out the mac80211 stuff
>> then the new values passed in to the associate/connect logic will just
>> be ignored.
>>
>> So, I suppose the fullmac drivers will just silently ignore the new
>> variables as well.  I looked, but didn't figure out where fullmac
>> connects into the cfg80211 logic.  If I can find it, then I could
>> add explicit checks for the new variables and return failure if
>> they are set..but I'm not sure that is any better than just silently
>> ignoring them anyway.
>
> So I think just ignoring it would be a bad idea, because you have no way
> to know whether or not the values were used afterwards. That might be
> sufficient for you right now, but typically becomes a support problem at
> some point because people try it and can't figure out what part broke.
> That's why I think silently ignoring something like that is not a good
> idea.
>
> Hence the typical handling of this with a wiphy flag that you set and if
> it's unset but userspace is requesting this you reject the command.

So back to the capabilities flag like I added in the -v2 patch?
Do you want one flag for each thing (set-mcs, disable-ht,
disable-ht40, set-mpdu, set-msdu), or maybe one flag for all of
this:  set-ht-cap

My opinion remains that we should silently ignore un-supported
values..this way user-space works with the same config on old and new
kernels.  In future patches, we can report the actual settings via
netlink or similar.

But, I can add logic in user-space to detect kernel versions and
such and deal with this.

So, please tell me how you want it done.  If it's capabilities flags,
that is fine with me.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2011-11-03 18:17 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28  5:11 [wireless-next PATCH 1/5] mac80211: Support forcing station to disable 11n greearb
2011-10-28  5:11 ` [wireless-next PATCH 2/5] wifi: Support disabling ht40 greearb
2011-10-28  8:09   ` Johannes Berg
2011-10-28 16:25     ` Ben Greear
2011-10-28  5:11 ` [wireless-next PATCH 3/5] wifi: Allow overriding some HT information greearb
2011-10-28  8:12   ` Johannes Berg
2011-10-28 16:33     ` Ben Greear
2011-11-02  8:13       ` Johannes Berg
2011-11-02 16:59         ` Ben Greear
2011-11-02 17:49           ` Johannes Berg
2011-11-02 18:03             ` Ben Greear
2011-11-03  8:32               ` Johannes Berg
2011-10-28  5:11 ` [wireless-next PATCH 4/5] wifi: Warn if cannot add station debugfs entries greearb
2011-10-28  8:13   ` Johannes Berg
2011-10-28 16:13     ` Ben Greear
2011-10-28  5:11 ` [wireless-next PATCH 5/5] wifi-debugfs: Fix AMSDU rate printout greearb
2011-10-28  8:13   ` Johannes Berg
2011-11-17 17:49   ` Ben Greear
2011-11-17 18:03     ` John W. Linville
2011-10-28  5:15 ` [wireless-next PATCH 1/5] mac80211: Support forcing station to disable 11n Ben Greear
2011-10-28  8:08 ` Johannes Berg
2011-10-28 16:24   ` Ben Greear
2011-11-02  7:56     ` Johannes Berg
2011-11-02 16:37       ` Ben Greear
2011-10-28 18:55   ` Ben Greear
2011-11-02  7:53     ` Johannes Berg
2011-11-02 16:34       ` Ben Greear
2011-11-02 17:51         ` Johannes Berg
2011-11-03  6:04           ` Ben Greear
2011-11-03  8:30             ` Johannes Berg
2011-11-03 18:17               ` Ben Greear [this message]
2011-11-04 14:42                 ` Johannes Berg
2011-11-04 16:11                   ` Ben Greear
2011-11-04 16:17                     ` Johannes Berg

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=4EB2DACE.2000707@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --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;
as well as URLs for NNTP newsgroup(s).