linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v4 1/2] wireless:  Support ht-capabilities over-rides.
Date: Mon, 07 Nov 2011 18:02:48 +0100	[thread overview]
Message-ID: <1320685368.3993.49.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4EB806D7.6050104@candelatech.com>

On Mon, 2011-11-07 at 08:27 -0800, Ben Greear wrote:

> >> +	kfree(rdev->wiphy.ht_capa_mod_mask);
> >> +	rdev->wiphy.ht_capa_mod_mask = NULL;
> >
> > That doesn't seem right -- drivers should typically assign a static
> > const variable to this pointer that can't be freed.
> 
> Earlier I think you argued that all of mac80211 drivers automatically supported
> these features as long as I put in the limitations that certain values
> could only be increased and certain only decreased, etc.
> 
> So, I put it in the mac80211 code instead of down in the drivers.
> But, I can move it into ath9k if you prefer.

Err, no -- if I'm talking about "drivers" from cfg80211's point of view,
mac80211 is one of those "drivers"! This comment was only about the
weird way of freeing it and static const etc.

johannes


  reply	other threads:[~2011-11-07 17:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 20:10 [PATCH v4 1/2] wireless: Support ht-capabilities over-rides greearb
2011-11-04 20:10 ` [PATCH v4 2/2] mac80211: Support ht-cap over-rides greearb
2011-11-07  9:13   ` Johannes Berg
2011-11-07 16:19     ` Ben Greear
2011-11-07 17:06       ` Johannes Berg
2011-11-04 21:03 ` [PATCH v4 1/2] wireless: Support ht-capabilities over-rides Johannes Berg
2011-11-07  9:06 ` Johannes Berg
2011-11-07 16:27   ` Ben Greear
2011-11-07 17:02     ` Johannes Berg [this message]
2011-11-07 17:40   ` Ben Greear
2011-11-07 17:42     ` Johannes Berg
2011-11-07 17:45       ` Ben Greear

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=1320685368.3993.49.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=greearb@candelatech.com \
    --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).