Pavel Roskin [Thu, 6 Aug 2009 17:45:07 +0000 (13:45 -0400)]
CRDA and cross-compilation
On Thu, 2009-08-06 at 09:56 -0700, Luis R. Rodriguez wrote:
> ACK, is it possible to make it simpler?
OK, here's my take.
We only need a native compiler to verify regulatory.bin. I believe it's
orthogonal to building CRDA.
For someone doing a cross-compilation, it makes no sense to verify the
installed regulatory.bin. Thus, the verification should be optional.
But the compilation of regdbdump shouldn't be. Firstly, it's installed
by "make install". Secondly, somebody may want to verify regulatory.bin
on the target system.
Here's the patch:
crda: make it possible to disable verification
Signed-off-by: Pavel Roskin <proski@gnu.org>
Johannes Berg [Fri, 17 Apr 2009 21:49:45 +0000 (23:49 +0200)]
break lines nicer in 64-bit openssl keys
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Fri, 17 Apr 2009 21:27:20 +0000 (23:27 +0200)]
make openssl keys 64-bit safe
openssl uses unsigned longs -- which are 8 bytes on 64-bit
platforms, not 4, so the python code needs to account for
that... how stupid!
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Fri, 17 Apr 2009 21:26:17 +0000 (23:26 +0200)]
make openssl verification safe for multiple keys
it seems openssl caches some things in there and subsequent
uses of the same key struct fail or something -- since this
fixes it I'm not bothering trying to figure out what's wrong
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Luis R. Rodriguez [Fri, 17 Apr 2009 19:26:23 +0000 (12:26 -0700)]
Allow distributions to specify a custom pubkeys dir
Distributions which need a custom pubkey dir can just
specify it upon build time.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 6 Mar 2009 01:30:41 +0000 (17:30 -0800)]
Doh, forgot to add crda after SBINDIR
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 24 Feb 2009 19:47:13 +0000 (11:47 -0800)]
Add comments to explain paths
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 24 Feb 2009 19:43:38 +0000 (11:43 -0800)]
Add /usr/local/lib/crda/regulatory.bin as first in path
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Helmut Schaa [Tue, 24 Feb 2009 14:31:50 +0000 (15:31 +0100)]
crda: allow loading of regulatory.bin from /lib/crda in addition to /usr/lib/crda
As crda is typically installed in /sbin it might be worth to install
regulatory.bin into /lib/crda instead of /usr/lib/crda. Hence, extend
crda to try both paths for loading the database.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Luis R. Rodriguez [Tue, 24 Feb 2009 19:41:49 +0000 (11:41 -0800)]
Fix Makefile to not overwrite udev/regulatory.rules for SBINDIR changes
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Daniel Mierswa [Wed, 11 Feb 2009 07:39:55 +0000 (08:39 +0100)]
also replace the SBINDIR used in the rules file
Daniel Mierswa [Fri, 6 Feb 2009 14:00:35 +0000 (15:00 +0100)]
use SBINDIR in install target of CRDA
You supply the user with a chance to specify SBINDIR during make
install, yet forgot to use it in one place at the install target. I
attached a patch against trunk for crda.git which fixes that.
Pat Erley [Mon, 2 Feb 2009 23:16:42 +0000 (15:16 -0800)]
crda: rename nl_handle to nl_sock for libnl-2.0
Upstream has renamed nl_handle to nl_sock. Update crda to the new names
and add #define for libnl-1.1.
Signed-off-by: Pat Erley <pat-lkml@erley.org>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Pavel Roskin [Fri, 30 Jan 2009 22:33:06 +0000 (14:33 -0800)]
crda: report if no supported version of libnl is found
Otherwise, the error messase would be very confusing.
Luis R. Rodriguez [Sun, 25 Jan 2009 03:22:51 +0000 (19:22 -0800)]
Update debian example changelog
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Sat, 24 Jan 2009 23:17:50 +0000 (15:17 -0800)]
Updates spec file version
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego E. 'Flameeyes' Pettenò [Sat, 24 Jan 2009 21:39:26 +0000 (13:39 -0800)]
crda: Fix --as-needed usage
For --as-needed to work (and for traditional ld too) the libraries should
always be passed _after_ the object files, move them so that they are
picked up properly.
Also rename LIBS to NLLIBS to avoid confusion between LIBS/LDLIBS.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 23 Jan 2009 23:36:13 +0000 (15:36 -0800)]
Adds example debian package directory to help maintainers
This one uses cdbs to make debian/rules smaller.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 23 Jan 2009 23:17:16 +0000 (15:17 -0800)]
Adds example RPM spec file (assumes 1.0.0 which I will mark shortly).
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 23 Jan 2009 23:03:08 +0000 (15:03 -0800)]
Small makefile fix
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 23 Jan 2009 22:12:48 +0000 (14:12 -0800)]
Add regdbdump.8 man page and update Makefile
We add a man page for regdbdump and we correct some typos
on the Makefile. We now add SBINDIR and MANDIR targets as
well for installation.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 23 Jan 2009 21:05:10 +0000 (13:05 -0800)]
Fix typo on man page regarding udev rule path
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Fri, 23 Jan 2009 20:54:18 +0000 (12:54 -0800)]
Adds a crda man page, update Makefile for distributions
This adds crda man page and adds options the Makefile
to let distributions customize their udev rule target
directory and level for the regulatory.rules.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Michael Buesch [Sun, 18 Jan 2009 13:59:25 +0000 (05:59 -0800)]
crda: Throw verbose error message if M2Crypto is missing
Instead of throwing a cryptic Python backtrace, throw a better error message, if
the M2Crypto module is not installed.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Pavel Roskin [Sat, 10 Jan 2009 00:16:50 +0000 (19:16 -0500)]
crda: prevent key2pub.py from generating bogus output on failure
Specify output file on the command line, so that it's not created in
case of fatal errors, such as asbence of M2Crypto.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Luis R. Rodriguez [Mon, 22 Dec 2008 20:18:19 +0000 (12:18 -0800)]
Add a checker for REG_BIN and easy instructions on how to add it
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Pat Erley [Mon, 22 Dec 2008 18:37:52 +0000 (10:37 -0800)]
Allow CRDA to use new libnl2
This patch updates CRDA to use the new libnl-2 interface, and adds
backwards compatability with libnl-1. It follows the same pattern that
the patch included into iw uses.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Pat Erley <pat-lkml@erley.org>
Johannes Berg [Wed, 10 Dec 2008 10:19:34 +0000 (11:19 +0100)]
crda: fix two bugs
1) wrong wildcard expansion in makefile
2) multiple pubkeys don't work
This fixes both of these issues.
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Thu, 4 Dec 2008 03:01:54 +0000 (19:01 -0800)]
Sync nl80211.h - a few updates and now under the ISC license
It contains a few nl80211 updates, this file is also now
under the ISC license which removes any legal ambiguity
from ISC licensed programs (like this one) from shipping
it.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 12:27:11 +0000 (13:27 +0100)]
Use Makefile dependency information for linking.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 12:27:04 +0000 (13:27 +0100)]
Split printing functions to their own translation unit.
This allows to avoid linking them in the crda binary where they are
not used.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 12:26:57 +0000 (13:26 +0100)]
Move is_valid_reg_rule() in intersect.c.
The function is only ever used in that translation unit so it makes no
sense to define it for all the binaries.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 11:11:31 +0000 (12:11 +0100)]
Avoid implicit declaration of memset() with OpenSSL.
When building the libgcrypt-based code, string.h is included through
libgcrypt itself, but when building with OpenSSL it's missing.
Include it explicitly so that it's always safe.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 11:11:23 +0000 (12:11 +0100)]
Mark constant the generated key tables for libgcrypt.
Since they are never modified, mark the key tables constant so they
are emitted in .rodata.
Note that even though they are probably also never modified, the
OpenSSL tables generate warnings when they are marked constant, as
such they are untouched.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 11:11:15 +0000 (12:11 +0100)]
Mark functions static when not used outside their translation unit.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego E. 'Flameeyes' Pettenò [Mon, 1 Dec 2008 22:20:33 +0000 (14:20 -0800)]
Ignore built files.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 22:19:25 +0000 (14:19 -0800)]
Don't use recursive make for verify target
This makes the build more parallel since regdbdump.o build and link
can happen in parallel with the keys generation and the build of the
rest of the units.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 22:17:46 +0000 (14:17 -0800)]
Make it possible to switch gcrypt/openssl via knob
By building with "make USE_OPENSSL=1", OpenSSL will be used in
libcrypt's stead. This also allows for properly depend just on the
keys-*.c source file that is actually going to be used.
Note that the all target is moved up so that it still hits as default
target.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 22:04:36 +0000 (14:04 -0800)]
Fix dependencies for parallel make and others
Since the keys .c files are included by reglib.c, it's not the final
output to depend on them but rather reglib.o.
This not only fixes proper regeneration of reglib.o when the pem files
are changed, but also allows proper parallel make of the package.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diego 'Flameeyes' Pettenò [Mon, 1 Dec 2008 22:01:43 +0000 (14:01 -0800)]
Fix building with --as-needed LD flag
When using GNU ld --as-needed option, you need to ensure that the
order of parameters to the linker is formally correct, with libraries
coming after the object files. For this reason, don't use LDFLAGS for
passing the libraries, and make sure that LDLIBS goes at the end of
the line.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 24 Nov 2008 17:58:23 +0000 (09:58 -0800)]
Install regdbdump
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 24 Nov 2008 17:55:23 +0000 (09:55 -0800)]
Rename dump to regdbdump, update README
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 17 Nov 2008 22:13:37 +0000 (14:13 -0800)]
We ship our own nl80211.h so remove KLIB stuff
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 17 Nov 2008 21:56:08 +0000 (13:56 -0800)]
Update README and remove utils/web that the wireless-regdb.git sucked in.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 17 Nov 2008 21:39:56 +0000 (13:39 -0800)]
Add linville's public key and use it, also do rely
on regulutory.bin being present where the distribution
wants it to be. Note that it should be installed first.
You only need regulatory.bin present to verify the signature
used to build it matches.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 17 Nov 2008 19:43:11 +0000 (11:43 -0800)]
Whoops, forgot to git-mv regulatory.rules :)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 17 Nov 2008 19:37:45 +0000 (11:37 -0800)]
Move regulatory.rules to its own dir
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Mon, 17 Nov 2008 19:35:51 +0000 (11:35 -0800)]
Separate db.txt authorship from this package, also rely on
external URLs to retrieve the regulatory.bin and public keys.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Thu, 30 Oct 2008 19:36:19 +0000 (12:36 -0700)]
Ship nl80211.h and use it
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Wed, 29 Oct 2008 10:41:55 +0000 (03:41 -0700)]
Remove some comments that no longer apply on intersect
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Wed, 29 Oct 2008 10:33:43 +0000 (03:33 -0700)]
This fixes SIGSEGV and incorrect free() calls
This needs some more review...
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Wed, 29 Oct 2008 10:32:07 +0000 (03:32 -0700)]
Make intersection logic a bit more readable
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Wed, 29 Oct 2008 09:41:22 +0000 (02:41 -0700)]
Add intersection code, not working yet :(
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Wed, 29 Oct 2008 08:53:13 +0000 (01:53 -0700)]
Double pointers obfuscate code, die
Lets make country2rd() easier to read by not using
double pointers.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Wed, 29 Oct 2008 08:45:03 +0000 (01:45 -0700)]
is_valid_reg_rule() is false when freq_diff is 0
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 28 Oct 2008 22:44:37 +0000 (15:44 -0700)]
Add conversion utitlies, standardize printing
This adds country2rd() and friends which allows us to
use more friendlier data structures that are not big endian
and standardizes printing this new rd structure.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 28 Oct 2008 22:15:36 +0000 (15:15 -0700)]
Share common routines into a reg lib, other objects will later reuse.
renamed: regdb.c -> reglib.c
renamed: crda.h -> reglib.h
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 28 Oct 2008 00:41:54 +0000 (17:41 -0700)]
Move last helpers to crda.h, forgot to add crda.h to git too
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 28 Oct 2008 00:39:38 +0000 (17:39 -0700)]
Avoid stdlib, this saves 145 bytes
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Luis R. Rodriguez [Tue, 28 Oct 2008 00:06:21 +0000 (17:06 -0700)]
Move common helpers and functions into crda.h
We keep regdb.h clean specifically for file regdb data structures.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Davide Pesavento [Thu, 23 Oct 2008 23:07:42 +0000 (01:07 +0200)]
Makefile improvements.
* use pkg-config for libnl and openssl
* fix dir creation in the 'install' target
* transform all 'keys-*.c' targets into a single pattern rule
* better output in non-verbose mode
* general cleanup
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Davide Pesavento [Thu, 23 Oct 2008 23:07:16 +0000 (01:07 +0200)]
Fix some trivial warnings.
Fix warnings spit out by gcc -Wextra and checkpatch.pl
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Davide Pesavento [Thu, 23 Oct 2008 23:06:35 +0000 (01:06 +0200)]
Use the correct index when iterating over the array of public keys.
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Davide Pesavento [Thu, 23 Oct 2008 23:06:06 +0000 (01:06 +0200)]
Unify and share get_file_ptr() too.
Identical code used by both crda.c and dump.c
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
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