linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: RFC: Regulatory info in mac80211
@ 2007-06-06 10:00 Joerg Pommnitz
  2007-06-06 11:41 ` Johannes Berg
  2007-06-06 13:46 ` Larry Finger
  0 siblings, 2 replies; 14+ messages in thread
From: Joerg Pommnitz @ 2007-06-06 10:00 UTC (permalink / raw)
  To: linux-wireless

Larry Finger wrote:



> 1. The regulatory information is too dynamic to be placed in the kernel.



And not all regulatory information is public: as I wrote in a previous message:

I work for a company that has special regulatory permission to use channels

outside those freely available with tx power of up to 4W. This is a legitimate

use case that should not be forbidden by a new regdomain framework (I can always

hack around this, but that's just a hack, not a clean solution).



Regarding a user space daemon: keep in mind special use cases like NFSroot over WLAN.



> 2. The regulatory database should be in an ASCII file for easy updating. This database should be 

> read by a userspace daemon that reformats the information and supplies it to mac80211 upon demand.



OK.



> 3. There should be some sort of checking to verify that the database has not been hacked to modify 

> transmission power, etc. in an illegal manner. Obviously, no foolproof means of enforcing this does 

> not exist; however, we should prevent the crudest form of modifications.

Define "illegal manner". For me it is perfectly legal to use channel 14 in Europe with 4W tx power. I admit that this is a

special interest, but nonetheless perfectly legal.





--  

Regards

 

       Joerg

 











       __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: RFC: Regulatory info in mac80211
@ 2007-06-06 12:14 Joerg Pommnitz
  0 siblings, 0 replies; 14+ messages in thread
From: Joerg Pommnitz @ 2007-06-06 12:14 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

I think this is what initramfs is there for. I'm not sure whether runni=
ng from initramfs
places certain restrictions on programs like the proposed regdomain dae=
mon. If it
does, it would be important to keep these restrictions in mind when des=
igning the
new infrastructure.
=20
-- =20
Regards
=20
       Joerg
=20


----- Urspr=FCngliche Mail ----
Von: Johannes Berg <johannes@sipsolutions.net>
An: Joerg Pommnitz <pommnitz@yahoo.com>
CC: linux-wireless@vger.kernel.org
Gesendet: Mittwoch, den 6. Juni 2007, 13:41:45 Uhr
Betreff: RE: RFC: Regulatory info in mac80211

On Wed, 2007-06-06 at 03:00 -0700, Joerg Pommnitz wrote:

> Regarding a user space daemon: keep in mind special use cases like NF=
Sroot over WLAN.

That isn't going to be possible in any case since we require userspace
to set up wireless links.

johannes






      Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuch=
en Sie=B4s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RFC: Regulatory info in mac80211
@ 2007-06-05 20:51 Larry Finger
  2007-06-05 23:35 ` Luis R. Rodriguez
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Larry Finger @ 2007-06-05 20:51 UTC (permalink / raw)
  To: wireless

Given the recent discussions of regulatory/geographic domain compliance (or lack thereof) in 
mac80211, and the fact that the software is mainlined in 2.6.22, it seems a good time to start 
planning for full implementation of regulatory information in mac80211.

Roughly a year ago, I worked on such a scheme for ieee80211, but put the project on hold when I 
learned that ieee80211 and ieee80211_softmac, which is used by my driver of interest, would be 
replaced by mac80211. The project was far from complete; however, a number of individuals responded 
to my RFC's and suggested the following (the netdev archives should contain the E-mails):

1. The regulatory information is too dynamic to be placed in the kernel.

2. The regulatory database should be in an ASCII file for easy updating. This database should be 
read by a userspace daemon that reformats the information and supplies it to mac80211 upon demand.

3. There should be some sort of checking to verify that the database has not been hacked to modify 
transmission power, etc. in an illegal manner. Obviously, no foolproof means of enforcing this does 
not exist; however, we should prevent the crudest form of modifications.

4. The database should incorporate the parameters needed for 802.11a, 802.11b/g/n, 802.11d, and 802.11h.

5. There should be a scheme for translating country codes based on the outdated table 105 in 
Corrigendum 1 for 802.11b. This is the basis for the EEPROM data in the ZD1211 hardware. Note, this 
scheme is far too limited to be the only one available. If the translation code is needed for more 
than one driver, it should be placed in mac80211.

6. In case of errors such as the user daemon not running, database corruption, an illegal region 
code from the driver, etc., mac80211 should set a default set of parameters that are legal 
everywhere, and log a suitable error message.

7. ??

To begin such an undertaking, the following steps need to be done:

1. Decide what information is required. These data include, but are not limited to, the band, the 
maximum E.I.R.P. in dBm, whether the data are for indoors/outdoors/both, an indication regarding the 
use of active vs passive scans, allowed protocols, etc. I don't know enough about 802.11h to know 
what data will be required.

2. Accumulate the necessary regulatory data for the world. I found a source for such information. 
Although its price (2500 euro) was a significant problem, the NDA that went with it was a show 
stopper. The diversity of regulations is much greater than I expected. Although, I had only 
collected data on roughly half the countries in the ISO 3166 country codes, I had found 12 distinct 
sets of rules for the 2.4 GHz band and 17 sets in the 5 GHz bands, without any 802.11h information.

3. Decide on how to store this information within mac80211.

4. Decide on the structure of the ASCII database and the means of communication between the daemon 
and the kernel.

5. Prepare the data file and code the userspace and kernel components.

6. Other....

I welcome your comments.

Larry

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-06-11  2:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 10:00 RFC: Regulatory info in mac80211 Joerg Pommnitz
2007-06-06 11:41 ` Johannes Berg
2007-06-06 13:46 ` Larry Finger
  -- strict thread matches above, loose matches on Subject: below --
2007-06-06 12:14 Joerg Pommnitz
2007-06-05 20:51 Larry Finger
2007-06-05 23:35 ` Luis R. Rodriguez
2007-06-05 23:54   ` Iñaky Pérez-González
2007-06-06  4:18   ` Dan Williams
2007-06-07  7:10 ` Stefano Brivio
2007-06-07 18:52   ` Luis R. Rodriguez
2007-06-07 19:27     ` stefano.brivio
2007-06-07 21:35       ` Luis R. Rodriguez
2007-06-09  3:50 ` Daniel Drake
2007-06-11  2:44   ` Larry Finger

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).