platform/upstream/crda.git
15 years agoFix Makefile to not overwrite udev/regulatory.rules for SBINDIR changes
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>
15 years agoalso replace the SBINDIR used in the rules file
Daniel Mierswa [Wed, 11 Feb 2009 07:39:55 +0000 (08:39 +0100)]
also replace the SBINDIR used in the rules file

15 years agouse SBINDIR in install target of CRDA
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.

15 years agocrda: rename nl_handle to nl_sock for libnl-2.0
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>
15 years agocrda: report if no supported version of libnl is found
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.

15 years agoUpdate debian example changelog
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>
15 years agoUpdates spec file version
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>
15 years agocrda: Fix --as-needed usage v1.0.1
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>
15 years agoAdds example debian package directory to help maintainers v1.0.0
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>
15 years agoAdds example RPM spec file (assumes 1.0.0 which I will mark shortly).
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>
15 years agoSmall makefile fix
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>
15 years agoAdd regdbdump.8 man page and update Makefile
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>
15 years agoFix typo on man page regarding udev rule path
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>
15 years agoAdds a crda man page, update Makefile for distributions
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>
15 years agocrda: Throw verbose error message if M2Crypto is missing
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>
15 years agocrda: prevent key2pub.py from generating bogus output on failure
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>
15 years agoAdd a checker for REG_BIN and easy instructions on how to add it
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>
15 years agoAllow CRDA to use new libnl2
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>
15 years agocrda: fix two bugs
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>
15 years agoSync nl80211.h - a few updates and now under the ISC license
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>
15 years agoUse Makefile dependency information for linking. l- v0.9.5
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>
15 years agoSplit printing functions to their own translation unit.
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>
15 years agoMove is_valid_reg_rule() in intersect.c.
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>
15 years agoAvoid implicit declaration of memset() with OpenSSL.
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>
15 years agoMark constant the generated key tables for libgcrypt.
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>
15 years agoMark functions static when not used outside their translation unit.
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>
15 years agoIgnore built files.
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>
15 years agoDon't use recursive make for verify target
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>
15 years agoMake it possible to switch gcrypt/openssl via knob
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>
15 years agoFix dependencies for parallel make and others
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>
15 years agoFix building with --as-needed LD flag
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>
15 years agoInstall regdbdump v0.9.4
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>
15 years agoRename dump to regdbdump, update README v0.9.3
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>
16 years agoWe ship our own nl80211.h so remove KLIB stuff v0.9.2
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>
16 years agoUpdate README and remove utils/web that the wireless-regdb.git sucked in.
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>
16 years agoAdd linville's public key and use it, also do rely
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>
16 years agoWhoops, forgot to git-mv regulatory.rules :)
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>
16 years agoMove regulatory.rules to its own dir
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>
16 years agoSeparate db.txt authorship from this package, also rely on
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>
16 years agoShip nl80211.h and use it v0.9.1
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>
16 years agoRemove some comments that no longer apply on intersect v0.9
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>
16 years agoThis fixes SIGSEGV and incorrect free() calls
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>
16 years agoMake intersection logic a bit more readable
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>
16 years agoAdd intersection code, not working yet :(
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>
16 years agoDouble pointers obfuscate code, die
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>
16 years agois_valid_reg_rule() is false when freq_diff is 0
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>
16 years agoAdd conversion utitlies, standardize printing
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>
16 years agoShare common routines into a reg lib, other objects will later reuse.
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>
16 years agoMove last helpers to crda.h, forgot to add crda.h to git too
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>
16 years agoAvoid stdlib, this saves 145 bytes
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>
16 years agoMove common helpers and functions into crda.h
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>
16 years agoMakefile improvements.
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>
16 years agoFix some trivial warnings.
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>
16 years agoUse the correct index when iterating over the array of public keys.
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>
16 years agoUnify and share get_file_ptr() too.
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>
16 years agoIgnore more binary files.
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>
16 years agoConsolidate db signature validation in one function.
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>
16 years agocrda: Fix the keys-gcrypt.c target and remove key.priv.pem on clean
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>
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)