All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: linville@tuxdriver.com, kathy.giori@atheros.com,
	amod.bodas@atheros.com, david.quan@atheros.com,
	michael.green@atheros.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2] cfg80211: process new country regulatory flags (DFS)
Date: Wed, 22 Dec 2010 15:02:05 +0100	[thread overview]
Message-ID: <1293026525.3531.21.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1292864555-28661-3-git-send-email-lrodriguez@atheros.com>

On Mon, 2010-12-20 at 12:02 -0500, Luis R. Rodriguez wrote:

> --- a/include/linux/nl80211.h
> +++ b/include/linux/nl80211.h
> @@ -858,6 +858,9 @@ enum nl80211_commands {
>   *	attributes, specifying what a key should be set as default as.
>   *	See &enum nl80211_key_default_types.
>   *
> + * @NL80211_ATTR_REG_COUNTRY_FLAGS: Country specific regulatory flags.
> + *	These are @NL80211_CFLAG_DFS_*
> + *

Please also add a note "(u16)" here or so.

> +#define flag_check_print(_str) \
> +	do { \
> +		if (has_flag) \
> +			pr_info(", "); \
> +		pr_info(_str); \
> +		has_flag = true; \
> +	} while (0)
> +
> +static void print_country_flags(u16 flags)
> +{

Can you move the define into the function, and also #undef it please?

Also -- it seems that this is never reported back to be printed by iw
reg get? I think that might be needed? If you do, it should only report
the ones that the kernel knows about (i.e. mask them with the _ALL
thing)

Does it make sense to actually have this a bitmask rather than an enum?
Do we think there's some place that needs _multiple_ rules?

johannes


  reply	other threads:[~2010-12-22 14:02 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 17:02 [PATCH 0/8] wireless: DFS region support Luis R. Rodriguez
2010-12-20 17:02 ` [PATCH 1/8] wireless-regdb: Add DFS bit fields for countries Luis R. Rodriguez
2010-12-22 13:58   ` Johannes Berg
2010-12-22 14:21     ` Luis R. Rodriguez
2010-12-20 17:02 ` [PATCH 1/2] cfg80211: process new country regulatory flags (DFS) Luis R. Rodriguez
2010-12-22 14:02   ` Johannes Berg [this message]
2010-12-22 14:29     ` Luis R. Rodriguez
2010-12-20 17:02 ` [PATCH 2/2] cfg80211: pass DFS region to drivers through reg_notifier() Luis R. Rodriguez
2010-12-21 10:53   ` Johannes Berg
2010-12-21 12:43     ` Luis R. Rodriguez
2010-12-22 14:03   ` Johannes Berg
2010-12-22 14:26     ` Luis R. Rodriguez
2010-12-20 17:02 ` [PATCH 4/8] crda: synch up nl80211.h copy file Luis R. Rodriguez
2010-12-20 17:02 ` [PATCH 5/8] crda: synch up nl80211.h header with upstream for country flags Luis R. Rodriguez
2010-12-22 14:02   ` Johannes Berg
2010-12-22 14:36     ` Luis R. Rodriguez
2010-12-20 17:02 ` [PATCH 1/2] iw: fix country print Luis R. Rodriguez
2010-12-20 17:02 ` [RFC 8/8] wireless-regdb: add FCC as the DFS region for US Luis R. Rodriguez
2011-01-04 18:49 ` [PATCH 0/8] wireless: DFS region support John W. Linville
2011-01-05 18:28   ` Luis R. Rodriguez
2011-01-05 18:30     ` John W. Linville
2011-01-05 21:26       ` Luis R. Rodriguez

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=1293026525.3531.21.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=amod.bodas@atheros.com \
    --cc=david.quan@atheros.com \
    --cc=kathy.giori@atheros.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lrodriguez@atheros.com \
    --cc=michael.green@atheros.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.