Davide Pesavento [Thu, 23 Oct 2008 23:05:35 +0000 (01:05 +0200)]
Ignore more binary files.
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Davide Pesavento [Thu, 23 Oct 2008 23:04:59 +0000 (01:04 +0200)]
Consolidate db signature validation in one function.
Both crda.c and dump.c had their own version of the code which
checks the validity of the signature on the regulatory db.
Having a common implementation shared by both files makes
maintenance easier and removes code duplication.
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Evgeni Golov [Mon, 20 Oct 2008 15:47:32 +0000 (17:47 +0200)]
crda: Fix the keys-gcrypt.c target and remove key.priv.pem on clean
* use $(wildcard *.pem) in the keys-gcrypt.c target
* remove key.priv.pem if it's the test-key in the
clean target
Signed-off-by: Evgeni Golov <sargentd@die-welt.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Johannes Berg [Thu, 29 May 2008 16:45:37 +0000 (18:45 +0200)]
fix small problem with previous commit
Johannes Berg [Thu, 29 May 2008 16:35:27 +0000 (18:35 +0200)]
parse country lists right away
Johannes Berg [Thu, 29 May 2008 16:21:10 +0000 (18:21 +0200)]
remove no-ht20 flag
Johannes Berg [Thu, 29 May 2008 16:21:04 +0000 (18:21 +0200)]
key2pub: print out explicit key length
Johannes Berg [Tue, 27 May 2008 13:48:27 +0000 (15:48 +0200)]
add edge-power settings
Johannes Berg [Tue, 27 May 2008 13:15:21 +0000 (15:15 +0200)]
make db2bin take explicit arguments
Johannes Berg [Tue, 27 May 2008 12:59:27 +0000 (14:59 +0200)]
add NO-HT20, NO-HT40 flags
Johannes Berg [Tue, 27 May 2008 10:53:22 +0000 (12:53 +0200)]
verify that struct sizes are as expected
Johannes Berg [Tue, 27 May 2008 10:36:49 +0000 (12:36 +0200)]
remove "max IR" from database
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
Johannes Berg [Tue, 27 May 2008 09:26:21 +0000 (11:26 +0200)]
add no-ibss and passive-scan flags
Johannes Berg [Tue, 27 May 2008 09:11:38 +0000 (11:11 +0200)]
add another allowed band for Germany
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)
Johannes Berg [Mon, 26 May 2008 15:12:23 +0000 (17:12 +0200)]
put units in brackets
Johannes Berg [Mon, 26 May 2008 15:11:03 +0000 (17:11 +0200)]
fix syntax errors
Johannes Berg [Mon, 26 May 2008 15:10:23 +0000 (17:10 +0200)]
don't break within unit
Johannes Berg [Mon, 26 May 2008 15:08:06 +0000 (17:08 +0200)]
show mW slightly differently
Johannes Berg [Mon, 26 May 2008 15:06:56 +0000 (17:06 +0200)]
show mW in web viewer
Johannes Berg [Mon, 26 May 2008 15:01:33 +0000 (17:01 +0200)]
improve web viewer a bit
Johannes Berg [Mon, 26 May 2008 13:23:49 +0000 (15:23 +0200)]
update db.txt explanations
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)
Johannes Berg [Mon, 26 May 2008 13:04:29 +0000 (15:04 +0200)]
new regulatory database scheme, flags are per-rule now
Johannes Berg [Sun, 25 May 2008 00:48:10 +0000 (02:48 +0200)]
.. and update web viewer
Johannes Berg [Sun, 25 May 2008 00:47:41 +0000 (02:47 +0200)]
rename 'restrictions' to the more appropriate 'permissions' in the code
Johannes Berg [Sun, 25 May 2008 00:33:33 +0000 (02:33 +0200)]
web viewer: remove debug country names
Johannes Berg [Sun, 25 May 2008 00:17:04 +0000 (02:17 +0200)]
nicer comment for DE entry
Johannes Berg [Sun, 25 May 2008 00:09:41 +0000 (02:09 +0200)]
web viewer: fix bug
Johannes Berg [Sun, 25 May 2008 00:08:49 +0000 (02:08 +0200)]
web viewer: remove 'no such country' handling
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.
Johannes Berg [Sat, 24 May 2008 23:58:05 +0000 (01:58 +0200)]
move country comments after table in web viewer
Johannes Berg [Sat, 24 May 2008 23:55:15 +0000 (01:55 +0200)]
improve unknown country handling
Johannes Berg [Sat, 24 May 2008 23:51:14 +0000 (01:51 +0200)]
display per-country comments
Johannes Berg [Sat, 24 May 2008 23:44:12 +0000 (01:44 +0200)]
web interfaces fixes
Johannes Berg [Sat, 24 May 2008 23:43:18 +0000 (01:43 +0200)]
adjust web viewer
Johannes Berg [Sat, 24 May 2008 23:41:01 +0000 (01:41 +0200)]
rewrite parser to be more object-oriented
Johannes Berg [Sat, 24 May 2008 23:39:59 +0000 (01:39 +0200)]
fix typo
Johannes Berg [Sat, 24 May 2008 23:34:50 +0000 (01:34 +0200)]
more sorting
Johannes Berg [Sat, 24 May 2008 23:23:41 +0000 (01:23 +0200)]
sort rules within collections
Johannes Berg [Sat, 24 May 2008 22:36:01 +0000 (00:36 +0200)]
reorder comments for DE entry a bit
Johannes Berg [Sat, 24 May 2008 21:49:29 +0000 (23:49 +0200)]
add current information for Germany
Johannes Berg [Sat, 24 May 2008 21:09:53 +0000 (23:09 +0200)]
move magic pattern into README
Johannes Berg [Sat, 24 May 2008 19:53:17 +0000 (21:53 +0200)]
remove useless VERIFY_SIGNATURE #ifdef
Johannes Berg [Sat, 24 May 2008 18:53:14 +0000 (20:53 +0200)]
some README clarifications
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
Johannes Berg [Sat, 24 May 2008 17:38:24 +0000 (19:38 +0200)]
update README
Johannes Berg [Sat, 24 May 2008 17:38:09 +0000 (19:38 +0200)]
Makefile: read all *.pem files for public keys
Johannes Berg [Sat, 24 May 2008 17:34:54 +0000 (19:34 +0200)]
allow key2pub.py to read public pem files too
Johannes Berg [Sat, 24 May 2008 17:11:39 +0000 (19:11 +0200)]
remove sql creator, not currently needed
Johannes Berg [Sat, 24 May 2008 17:04:20 +0000 (19:04 +0200)]
update .gitignore
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
Johannes Berg [Fri, 23 May 2008 14:36:13 +0000 (16:36 +0200)]
fix some references in regdb.h
Johannes Berg [Fri, 23 May 2008 12:51:07 +0000 (14:51 +0200)]
web: fix invalid country codes being passed
Johannes Berg [Fri, 23 May 2008 12:41:29 +0000 (14:41 +0200)]
clarify units
Johannes Berg [Fri, 23 May 2008 12:27:56 +0000 (14:27 +0200)]
another web bugfix, cleanup
Johannes Berg [Fri, 23 May 2008 12:27:03 +0000 (14:27 +0200)]
web bugfix
Johannes Berg [Fri, 23 May 2008 12:26:18 +0000 (14:26 +0200)]
add countries heading to web
Johannes Berg [Fri, 23 May 2008 12:10:19 +0000 (14:10 +0200)]
sort display by start frequency
Johannes Berg [Fri, 23 May 2008 12:02:39 +0000 (14:02 +0200)]
web bugfix
Johannes Berg [Fri, 23 May 2008 11:59:47 +0000 (13:59 +0200)]
make web regdb configurable
Johannes Berg [Fri, 23 May 2008 11:56:31 +0000 (13:56 +0200)]
add moinmoin macro
Johannes Berg [Fri, 23 May 2008 11:56:22 +0000 (13:56 +0200)]
parser: fix flag dict name
Johannes Berg [Fri, 23 May 2008 10:54:30 +0000 (12:54 +0200)]
add newline after country definition in dumped output
Johannes Berg [Fri, 23 May 2008 10:51:47 +0000 (12:51 +0200)]
regdb.h: add note that countries are sorted
Johannes Berg [Fri, 23 May 2008 10:50:45 +0000 (12:50 +0200)]
sort countries by alpha2 in binary database
Johannes Berg [Fri, 23 May 2008 10:41:13 +0000 (12:41 +0200)]
make dump.c dump in the db.txt format
Johannes Berg [Fri, 23 May 2008 10:35:16 +0000 (12:35 +0200)]
db2bin bugfix
Johannes Berg [Fri, 23 May 2008 10:21:30 +0000 (12:21 +0200)]
give better 'unused' warnings
Johannes Berg [Fri, 23 May 2008 10:09:59 +0000 (12:09 +0200)]
allow inlining power definition