platform/upstream/crda.git
16 years agoFixed an inconsistency in OFDM and CCK flags definition
Benoit PAPILLAULT [Thu, 9 Oct 2008 20:16:42 +0000 (22:16 +0200)]
Fixed an inconsistency in OFDM and CCK flags definition

This makes the flags match Linux nl80211.h

Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoUse const and add is_valid_regdom() check
Benoit PAPILLAULT [Mon, 20 Oct 2008 16:03:30 +0000 (09:03 -0700)]
Use const and add is_valid_regdom() check

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Singed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
16 years agoAdded documentation on the file format
Benoit PAPILLAULT [Thu, 9 Oct 2008 20:16:39 +0000 (22:16 +0200)]
Added documentation on the file format

Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoAdded libnl dependency
Benoit PAPILLAULT [Thu, 9 Oct 2008 20:16:38 +0000 (22:16 +0200)]
Added libnl dependency

Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoRemove silly debug print from reg_handler()
Luis R. Rodriguez [Tue, 30 Sep 2008 15:10:17 +0000 (08:10 -0700)]
Remove silly debug print from reg_handler()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoInitialize gcrypt in dump.c
Luis R. Rodriguez [Tue, 30 Sep 2008 15:08:58 +0000 (08:08 -0700)]
Initialize gcrypt in dump.c

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoMakefile: add support for DESTDIR.
Davide Pesavento [Sun, 28 Sep 2008 20:09:04 +0000 (22:09 +0200)]
Makefile: add support for DESTDIR.

Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoUse char literals in comparisons, instead of their ASCII codes.
Davide Pesavento [Sun, 28 Sep 2008 20:08:21 +0000 (22:08 +0200)]
Use char literals in comparisons, instead of their ASCII codes.

Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoDelay netlink initialization and cache allocation.
Davide Pesavento [Sun, 28 Sep 2008 20:07:27 +0000 (22:07 +0200)]
Delay netlink initialization and cache allocation.

By calling nl80211_init() a bit later, we can simplify error handling
and avoid a lot of goto's in error paths.

While at it, fix a couple of minor leaks in openssl-related code.

Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoDo not initialize gcrypt twice.
Davide Pesavento [Sun, 28 Sep 2008 20:06:36 +0000 (22:06 +0200)]
Do not initialize gcrypt twice.

Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoFix gcrypt initialization
Johannes Berg [Wed, 17 Sep 2008 22:56:30 +0000 (15:56 -0700)]
Fix gcrypt initialization

This seems to fix to get this to work on some versions of gcrypt.

16 years agoForgot once more place to remov NO-HT40
Luis R. Rodriguez [Fri, 5 Sep 2008 19:42:27 +0000 (12:42 -0700)]
Forgot once more place to remov NO-HT40

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoNo need for NO-HT20 or NO-HT40, remove them as this code isn't used yet
Luis R. Rodriguez [Fri, 5 Sep 2008 19:40:28 +0000 (12:40 -0700)]
No need for NO-HT20 or NO-HT40, remove them as this code isn't used yet
in userspace anywhere and kernel support hasn't been merged yet.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoInstall regulatory.rules into udev directory.
Luis R. Rodriguez [Wed, 13 Aug 2008 00:33:48 +0000 (17:33 -0700)]
Install regulatory.rules into udev directory.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoUse your KLIB_BUILD path for nl80211 headers.
Luis R. Rodriguez [Tue, 12 Aug 2008 23:08:37 +0000 (16:08 -0700)]
Use your KLIB_BUILD path for nl80211 headers.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoInstead of setting NO-HT40, simply set the bandwidth to 20 MHz.
Luis R. Rodriguez [Tue, 12 Aug 2008 01:37:35 +0000 (18:37 -0700)]
Instead of setting NO-HT40, simply set the bandwidth to 20 MHz.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoLet the kernel use uevents to call CRDA.
Luis R. Rodriguez [Tue, 12 Aug 2008 01:36:48 +0000 (18:36 -0700)]
Let the kernel use uevents to call CRDA.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoRemove unused headers.
Luis R. Rodriguez [Fri, 11 Jul 2008 12:45:40 +0000 (05:45 -0700)]
Remove unused headers.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoKill NL80211_ATTR_NUM_REG_RULES.
Luis R. Rodriguez [Thu, 10 Jul 2008 22:54:02 +0000 (15:54 -0700)]
Kill NL80211_ATTR_NUM_REG_RULES.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoKill UUID stuff.
Luis R. Rodriguez [Thu, 10 Jul 2008 20:28:55 +0000 (13:28 -0700)]
Kill UUID stuff.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoThis now sends a regulatory domain properly into the kernel :D
Luis R. Rodriguez [Thu, 10 Jul 2008 14:23:05 +0000 (07:23 -0700)]
This now sends a regulatory domain properly into the kernel :D

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoAdd valid UUID processing.
Luis R. Rodriguez [Thu, 10 Jul 2008 10:54:54 +0000 (03:54 -0700)]
Add valid UUID processing.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoShut the compiler up.
Luis R. Rodriguez [Wed, 9 Jul 2008 22:41:39 +0000 (15:41 -0700)]
Shut the compiler up.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoAdd some error return values, remove some unused variables.
Luis R. Rodriguez [Wed, 9 Jul 2008 22:24:09 +0000 (15:24 -0700)]
Add some error return values, remove some unused variables.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoAdd CRDA, this needs some love, my netlink-fu sucks.
Luis R. Rodriguez [Wed, 9 Jul 2008 13:10:24 +0000 (06:10 -0700)]
Add CRDA, this needs some love, my netlink-fu sucks.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoReinstate DE, Johannes had done research on this based on
Luis R. Rodriguez [Tue, 17 Jun 2008 13:25:16 +0000 (06:25 -0700)]
Reinstate DE, Johannes had done research on this based on
data from "Frequenznutzungsplan" (as published in April 2008),
downloaded from http://www.bundesnetzagentur.de/media/archive/13358.pdf

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoAdd DFS entries into db.txt. This was done for frequency ranges
Luis R. Rodriguez [Tue, 17 Jun 2008 13:22:59 +0000 (06:22 -0700)]
Add DFS entries into db.txt. This was done for frequency ranges
in 5260 MHz - 5700 MHz. For frequency ranges with a larger span
we split them to ensure DFS is still used only on the specific band.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoRemove edge power stuff from source as its not needed.
Luis R. Rodriguez [Thu, 5 Jun 2008 20:55:38 +0000 (13:55 -0700)]
Remove edge power stuff from source as its not needed.
If we can standardize on it later then good but this needs
more review on implementations by different vendors.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agoImport a suggested guide for regulatory db.txt.
Luis R. Rodriguez [Thu, 5 Jun 2008 20:46:32 +0000 (13:46 -0700)]
Import a suggested guide for regulatory db.txt.
Extend the documentation to explain details on compliance limits,
and DFS. Add a LICENSE.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
16 years agofix small problem with previous commit
Johannes Berg [Thu, 29 May 2008 16:45:37 +0000 (18:45 +0200)]
fix small problem with previous commit

16 years agoparse country lists right away
Johannes Berg [Thu, 29 May 2008 16:35:27 +0000 (18:35 +0200)]
parse country lists right away

16 years agoremove no-ht20 flag
Johannes Berg [Thu, 29 May 2008 16:21:10 +0000 (18:21 +0200)]
remove no-ht20 flag

16 years agokey2pub: print out explicit key length
Johannes Berg [Thu, 29 May 2008 16:21:04 +0000 (18:21 +0200)]
key2pub: print out explicit key length

16 years agoadd edge-power settings
Johannes Berg [Tue, 27 May 2008 13:48:27 +0000 (15:48 +0200)]
add edge-power settings

16 years agomake db2bin take explicit arguments
Johannes Berg [Tue, 27 May 2008 13:15:21 +0000 (15:15 +0200)]
make db2bin take explicit arguments

16 years agoadd NO-HT20, NO-HT40 flags
Johannes Berg [Tue, 27 May 2008 12:59:27 +0000 (14:59 +0200)]
add NO-HT20, NO-HT40 flags

16 years agoverify that struct sizes are as expected
Johannes Berg [Tue, 27 May 2008 10:53:22 +0000 (12:53 +0200)]
verify that struct sizes are as expected

16 years agoremove "max IR" from database
Johannes Berg [Tue, 27 May 2008 10:36:49 +0000 (12:36 +0200)]
remove "max IR" from database

16 years agothe second 5 GHz band in DE isn't restricted to indoor
Johannes Berg [Tue, 27 May 2008 10:15:12 +0000 (12:15 +0200)]
the second 5 GHz band in DE isn't restricted to indoor

16 years agoadd no-ibss and passive-scan flags
Johannes Berg [Tue, 27 May 2008 09:26:21 +0000 (11:26 +0200)]
add no-ibss and passive-scan flags

16 years agoadd another allowed band for Germany
Johannes Berg [Tue, 27 May 2008 09:11:38 +0000 (11:11 +0200)]
add another allowed band for Germany

16 years agoshow only two decimal digits (as that is what gets saved into the binary db)
Johannes Berg [Mon, 26 May 2008 15:16:02 +0000 (17:16 +0200)]
show only two decimal digits (as that is what gets saved into the binary db)

16 years agoput units in brackets
Johannes Berg [Mon, 26 May 2008 15:12:23 +0000 (17:12 +0200)]
put units in brackets

16 years agofix syntax errors
Johannes Berg [Mon, 26 May 2008 15:11:03 +0000 (17:11 +0200)]
fix syntax errors

16 years agodon't break within unit
Johannes Berg [Mon, 26 May 2008 15:10:23 +0000 (17:10 +0200)]
don't break within unit

16 years agoshow mW slightly differently
Johannes Berg [Mon, 26 May 2008 15:08:06 +0000 (17:08 +0200)]
show mW slightly differently

16 years agoshow mW in web viewer
Johannes Berg [Mon, 26 May 2008 15:06:56 +0000 (17:06 +0200)]
show mW in web viewer

16 years agoimprove web viewer a bit
Johannes Berg [Mon, 26 May 2008 15:01:33 +0000 (17:01 +0200)]
improve web viewer a bit

16 years agoupdate db.txt explanations
Johannes Berg [Mon, 26 May 2008 13:23:49 +0000 (15:23 +0200)]
update db.txt explanations

16 years agomake 0 power values mean 'no limitation' (e.g. Germany has no limit on IR but EIRP...
Johannes Berg [Mon, 26 May 2008 13:20:25 +0000 (15:20 +0200)]
make 0 power values mean 'no limitation' (e.g. Germany has no limit on IR but EIRP only)

16 years agonew regulatory database scheme, flags are per-rule now
Johannes Berg [Mon, 26 May 2008 13:04:29 +0000 (15:04 +0200)]
new regulatory database scheme, flags are per-rule now

16 years ago.. and update web viewer
Johannes Berg [Sun, 25 May 2008 00:48:10 +0000 (02:48 +0200)]
.. and update web viewer

16 years agorename 'restrictions' to the more appropriate 'permissions' in the code
Johannes Berg [Sun, 25 May 2008 00:47:41 +0000 (02:47 +0200)]
rename 'restrictions' to the more appropriate 'permissions' in the code

16 years agoweb viewer: remove debug country names
Johannes Berg [Sun, 25 May 2008 00:33:33 +0000 (02:33 +0200)]
web viewer: remove debug country names

16 years agonicer comment for DE entry
Johannes Berg [Sun, 25 May 2008 00:17:04 +0000 (02:17 +0200)]
nicer comment for DE entry

16 years agoweb viewer: fix bug
Johannes Berg [Sun, 25 May 2008 00:09:41 +0000 (02:09 +0200)]
web viewer: fix bug

16 years agoweb viewer: remove 'no such country' handling
Johannes Berg [Sun, 25 May 2008 00:08:49 +0000 (02:08 +0200)]
web viewer: remove 'no such country' handling

16 years agoRevert "move country comments after table in web viewer"
Johannes Berg [Sat, 24 May 2008 23:58:38 +0000 (01:58 +0200)]
Revert "move country comments after table in web viewer"

This reverts commit 4a68889b3378485aba42c2499d2e2a68a4b616db.

16 years agomove country comments after table in web viewer
Johannes Berg [Sat, 24 May 2008 23:58:05 +0000 (01:58 +0200)]
move country comments after table in web viewer

16 years agoimprove unknown country handling
Johannes Berg [Sat, 24 May 2008 23:55:15 +0000 (01:55 +0200)]
improve unknown country handling

16 years agodisplay per-country comments
Johannes Berg [Sat, 24 May 2008 23:51:14 +0000 (01:51 +0200)]
display per-country comments

16 years agoweb interfaces fixes
Johannes Berg [Sat, 24 May 2008 23:44:12 +0000 (01:44 +0200)]
web interfaces fixes

16 years agoadjust web viewer
Johannes Berg [Sat, 24 May 2008 23:43:18 +0000 (01:43 +0200)]
adjust web viewer

16 years agorewrite parser to be more object-oriented
Johannes Berg [Sat, 24 May 2008 23:41:01 +0000 (01:41 +0200)]
rewrite parser to be more object-oriented

16 years agofix typo
Johannes Berg [Sat, 24 May 2008 23:39:59 +0000 (01:39 +0200)]
fix typo

16 years agomore sorting
Johannes Berg [Sat, 24 May 2008 23:34:50 +0000 (01:34 +0200)]
more sorting

16 years agosort rules within collections
Johannes Berg [Sat, 24 May 2008 23:23:41 +0000 (01:23 +0200)]
sort rules within collections

16 years agoreorder comments for DE entry a bit
Johannes Berg [Sat, 24 May 2008 22:36:01 +0000 (00:36 +0200)]
reorder comments for DE entry a bit

16 years agoadd current information for Germany
Johannes Berg [Sat, 24 May 2008 21:49:29 +0000 (23:49 +0200)]
add current information for Germany

16 years agomove magic pattern into README
Johannes Berg [Sat, 24 May 2008 21:09:53 +0000 (23:09 +0200)]
move magic pattern into README

16 years agoremove useless VERIFY_SIGNATURE #ifdef
Johannes Berg [Sat, 24 May 2008 19:53:17 +0000 (21:53 +0200)]
remove useless VERIFY_SIGNATURE #ifdef

16 years agosome README clarifications
Johannes Berg [Sat, 24 May 2008 18:53:14 +0000 (20:53 +0200)]
some README clarifications

16 years agoallow using own private key w/o danger of committing, use test-key by default
Johannes Berg [Sat, 24 May 2008 17:56:25 +0000 (19:56 +0200)]
allow using own private key w/o danger of committing, use test-key by default

16 years agoupdate README
Johannes Berg [Sat, 24 May 2008 17:38:24 +0000 (19:38 +0200)]
update README

16 years agoMakefile: read all *.pem files for public keys
Johannes Berg [Sat, 24 May 2008 17:38:09 +0000 (19:38 +0200)]
Makefile: read all *.pem files for public keys

16 years agoallow key2pub.py to read public pem files too
Johannes Berg [Sat, 24 May 2008 17:34:54 +0000 (19:34 +0200)]
allow key2pub.py to read public pem files too

16 years agoremove sql creator, not currently needed
Johannes Berg [Sat, 24 May 2008 17:11:39 +0000 (19:11 +0200)]
remove sql creator, not currently needed

16 years agoupdate .gitignore
Johannes Berg [Sat, 24 May 2008 17:04:20 +0000 (19:04 +0200)]
update .gitignore

16 years agocreate C keys on the fly (in python), rewrite Makefile, put everything into root dir
Johannes Berg [Sat, 24 May 2008 14:47:18 +0000 (16:47 +0200)]
create C keys on the fly (in python), rewrite Makefile, put everything into root dir

16 years agofix some references in regdb.h
Johannes Berg [Fri, 23 May 2008 14:36:13 +0000 (16:36 +0200)]
fix some references in regdb.h

16 years agoweb: fix invalid country codes being passed
Johannes Berg [Fri, 23 May 2008 12:51:07 +0000 (14:51 +0200)]
web: fix invalid country codes being passed

16 years agoclarify units
Johannes Berg [Fri, 23 May 2008 12:41:29 +0000 (14:41 +0200)]
clarify units

16 years agoanother web bugfix, cleanup
Johannes Berg [Fri, 23 May 2008 12:27:56 +0000 (14:27 +0200)]
another web bugfix, cleanup

16 years agoweb bugfix
Johannes Berg [Fri, 23 May 2008 12:27:03 +0000 (14:27 +0200)]
web bugfix

16 years agoadd countries heading to web
Johannes Berg [Fri, 23 May 2008 12:26:18 +0000 (14:26 +0200)]
add countries heading to web

16 years agosort display by start frequency
Johannes Berg [Fri, 23 May 2008 12:10:19 +0000 (14:10 +0200)]
sort display by start frequency

16 years agoweb bugfix
Johannes Berg [Fri, 23 May 2008 12:02:39 +0000 (14:02 +0200)]
web bugfix

16 years agomake web regdb configurable
Johannes Berg [Fri, 23 May 2008 11:59:47 +0000 (13:59 +0200)]
make web regdb configurable

16 years agoadd moinmoin macro
Johannes Berg [Fri, 23 May 2008 11:56:31 +0000 (13:56 +0200)]
add moinmoin macro

16 years agoparser: fix flag dict name
Johannes Berg [Fri, 23 May 2008 11:56:22 +0000 (13:56 +0200)]
parser: fix flag dict name

16 years agoadd newline after country definition in dumped output
Johannes Berg [Fri, 23 May 2008 10:54:30 +0000 (12:54 +0200)]
add newline after country definition in dumped output

16 years agoregdb.h: add note that countries are sorted
Johannes Berg [Fri, 23 May 2008 10:51:47 +0000 (12:51 +0200)]
regdb.h: add note that countries are sorted

16 years agosort countries by alpha2 in binary database
Johannes Berg [Fri, 23 May 2008 10:50:45 +0000 (12:50 +0200)]
sort countries by alpha2 in binary database

16 years agomake dump.c dump in the db.txt format
Johannes Berg [Fri, 23 May 2008 10:41:13 +0000 (12:41 +0200)]
make dump.c dump in the db.txt format

16 years agodb2bin bugfix
Johannes Berg [Fri, 23 May 2008 10:35:16 +0000 (12:35 +0200)]
db2bin bugfix

16 years agogive better 'unused' warnings
Johannes Berg [Fri, 23 May 2008 10:21:30 +0000 (12:21 +0200)]
give better 'unused' warnings

16 years agoallow inlining power definition
Johannes Berg [Fri, 23 May 2008 10:09:59 +0000 (12:09 +0200)]
allow inlining power definition

16 years agoallow inlining band definition
Johannes Berg [Fri, 23 May 2008 10:05:37 +0000 (12:05 +0200)]
allow inlining band definition

16 years agorefactor band parser a tad
Johannes Berg [Fri, 23 May 2008 09:53:47 +0000 (11:53 +0200)]
refactor band parser a tad

16 years agofix very stupid parser bug
Johannes Berg [Fri, 23 May 2008 09:45:41 +0000 (11:45 +0200)]
fix very stupid parser bug