linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zefir Kurtisi <zefir.kurtisi@neratec.com>
To: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
	Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [PATCH 0/8] wireless: add DFS master support
Date: Sat, 08 Oct 2011 19:46:21 +0200	[thread overview]
Message-ID: <4E908C6D.7040703@neratec.com> (raw)
In-Reply-To: <CAB=NE6Xz26oOudnyw17_1ijqe+L8qwQAGH8qjZEocgHQOY54eg@mail.gmail.com>

On 08.10.2011 00:32, Luis R. Rodriguez wrote:
> On Fri, Oct 7, 2011 at 3:29 PM, Luis R. Rodriguez
> <mcgrof@qca.qualcomm.com>  wrote:
>> On Fri, Oct 7, 2011 at 2:11 PM, Luis R. Rodriguez
>> <mcgrof@qca.qualcomm.com>  wrote:
>>> On Tue, Oct 4, 2011 at 5:14 PM, Luis R. Rodriguez
>>> <mcgrof@qca.qualcomm.com>  wrote:
>>>> On Tue, Oct 4, 2011 at 4:47 PM, Luis R. Rodriguez
>>>> <mcgrof@qca.qualcomm.com>  wrote:
>>>>> This set of 8 patches adds DFS master support to the Linux wireless subsystem.
>>>>> I've reviewed future possible changes to DFS master regions and it seems that
>>>>> we are not going to be having multiple DFS regions for one country, instead
>>>>> we'll always have one DFS region for one country.
>>>>>
>>>>> The changes here are spread out throughout wireless-regdb, crda the kernel and
>>>>> lastly iw. The changes made allow for older verions of CRDA to work with new
>>>>> wireless-regdb files with DFS region support. If you want DFS master region
>>>>> support you'll need to upgrade your CRDA, your kernel and then hope someone
>>>>> implements DFS master support for your respective driver.
>>>>>
>>>>> This patch series does not have specific driver changes, although some seem to
>>>>> be backing in the oven right now.
>>>>
>>>> Here's a puzzle though... If we change this series to use the other
>>>> pad byte that was available, the first pad byte, instead of the last
>>>> one, we loose backward compatibility support and I cannot figure out
>>>> why. What I ended up seeing was that crda sends the message, and for
>>>> some reason (return code is 222 from nl_wait_for_ack(), whatever that
>>>> is) the kernel rejects it. I suspect it may have to do with some sort
>>>> of offset to the *other* data that makes some of the rules output
>>>> invalid data for the attribute policy, but at least when I hexdump the
>>>> wireless-regdb the only changes I see are in the signature and the pad
>>>> shift.
>>>>
>>>> I got tired of trying though and after seeing flipping the pad bytes
>>>> things worked decided to stay with it. In my original RFC in December
>>>> I had used u16 instead, but since the data was in the last pad byte
>>>> things still worked. So something is fishy about only using the first
>>>> pad byte. The change below, as far as I can tell, should not have any
>>>> issues but it does with the older version of CRDA and even a new one.
>>>
>>> Johannes spotted the issue, I'll send the fix, thanks to Johannes.
>>> John, Johannes the patches still apply my fix goes on top of these
>>> changes, the fix is not addressing a regression introduced by this
>>> patchset, instead it fixes a long standing issue which would prevent
>>> us from using the next available pad byte.
>>
>> I'm going to respin this to make use of 2 bits:
>>
>> 00 unset
>> 01 FCC
>> 10 ETSI
>> 11 JP
>>
>> We may need some more DFS values later but
>
> Sorry I did not finish this e-mail I meant that we may later have a
> requirement for more DFS values but at this time we don't, we should
> consider whether or not we will want to leave more bits for usage of
> more DFS values and if so how many? Using two bits will give us
> support for what we know today but nothing for the future.
>
For the future things we do not know of today we should add another bit 
and define

111 unknown / other

to be able to mark special countrycodes that do not fully belong to the 
three known domains. We could use some invalid coding for those CCs 
(like no DFS domain set in CC but flag set for frequency band) to 
identify those special domains, but using an additional bit would make 
things easier to handle.

> If I use two bits I just don't want complains later if we have DFS
> regions split in the db spec for future changes.
>
>    Luis

Zefir

  reply	other threads:[~2011-10-08 17:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 23:47 [PATCH 0/8] wireless: add DFS master support Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 1/8] wireless-regdb: Add master DFS region support Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 2/8] wireless-regdb: add FCC as the DFS region for US Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 3/8] cfg80211: process regulatory DFS region for countries Luis R. Rodriguez
2011-10-07 19:54   ` Johannes Berg
2011-10-07 19:57     ` Luis R. Rodriguez
2011-10-07 20:05       ` Johannes Berg
2011-10-04 23:47 ` [PATCH 4/8] cfg80211: pass DFS region to drivers through reg_notifier() Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 5/8] crda: synch up nl80211.h Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 6/8] crda: add support to send DFS master region Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 7/8] iw: synch nl80211.h Luis R. Rodriguez
2011-10-04 23:47 ` [PATCH 8/8] iw: add DFS region parsing support Luis R. Rodriguez
2011-10-05  0:14 ` [PATCH 0/8] wireless: add DFS master support Luis R. Rodriguez
2011-10-07 21:11   ` Luis R. Rodriguez
2011-10-07 22:29     ` Luis R. Rodriguez
2011-10-07 22:32       ` Luis R. Rodriguez
2011-10-08 17:46         ` Zefir Kurtisi [this message]
2011-10-08 18:26           ` Luis R. Rodriguez
2011-10-10  7:48             ` Johannes Berg
2011-10-10  9:13             ` Zefir Kurtisi
2011-10-10 19:05               ` Luis R. Rodriguez
2011-10-10 23:32                 ` 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=4E908C6D.7040703@neratec.com \
    --to=zefir.kurtisi@neratec.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@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).