linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [RFC V2 2/2] cfg80211/nl80211: Enable drivers to implement mac address based ACL
Date: Wed, 05 Sep 2012 15:42:58 +0200	[thread overview]
Message-ID: <1346852578.4364.13.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1346824110-26382-2-git-send-email-vthiagar@qca.qualcomm.com>

On Wed, 2012-09-05 at 11:18 +0530, Vasanthakumar Thiagarajan wrote:

> + * @NL80211_ATTR_MAC_ACL_MAX: u16 attribute to advertise the maximum
> + *	number of mac addresses that a device can support for MAC
> + *	access control.

Why not use u32? I know we won't use more than u16 most likely, but u32
takes just as much space in netlink messages ...


> Drivers
> + *	which advertise the support for mac address based access control have to
> + *	implement this callback.

You might consider checking this in register_wiphy?


So about the race condition ... shouldn't the initial MAC list be given
in the start_ap() call, so that the AP can start up with a proper ACL
already in place, rather than starting up & then modifying later?

johannes


  reply	other threads:[~2012-09-05 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05  5:48 [RFC V2 1/2] cfg80211: Move the definition of struct mac_address up Vasanthakumar Thiagarajan
2012-09-05  5:48 ` [RFC V2 2/2] cfg80211/nl80211: Enable drivers to implement mac address based ACL Vasanthakumar Thiagarajan
2012-09-05 13:42   ` Johannes Berg [this message]
2012-09-06 10:09     ` Vasanthakumar Thiagarajan
2012-09-06 10:11       ` 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=1346852578.4364.13.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=vthiagar@qca.qualcomm.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).