summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-28resetting manifest requested domain to floortizen_3.0_ivi_releasetizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasetizen_3.0.m14.3_ivi_releasetizen_3.0.m14.2_ivi_releasetizen_3.0.2014.q3_common_releasesubmit/tizen_mobile/20141120.000000submit/tizen_ivi_genivi/20140131.015916submit/tizen_ivi/20160217.000004submit/tizen_ivi/20160217.000000submit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen/20130912.075646submit/tizen/20130710.130016ivi_oct_m2accepted/tizen/ivi/genivi/20140131.020146accepted/tizen/ivi/20160218.024207accepted/tizen/20130912.093453accepted/tizen/20130912.085408accepted/tizen/20130912.082341accepted/tizen/20130710.220957tizen_ivi_genivitizen_3.0_ivitizen_3.0.m1_tvtizen_3.0.m1_mobiletizen_3.0.m14.3_ivitizen_3.0.m14.2_ivitizen_3.0.2015.q2_commontizen_3.0.2015.q1_commontizen_3.0.2014.q4_commontizen_3.0.2014.q3_commonaccepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_genericaccepted/tizen_3.0.m14.3_iviaccepted/tizen_3.0.2014.q3_commonaccepted/tizen/ivi/stableaccepted/tizen/ivi/geniviAlexandru Cornea2-0/+8
2013-02-11Fix pathsubmit/tizen/20130517.020736submit/tizen/20130509.173546submit/tizen/20130503.190621submit/tizen/20130503.184526accepted/tizen/20130520.095203accepted/tizen/20130503.223732Anas Nashif1-2/+2
2013-02-11Add packagingAnas Nashif1-0/+37
2013-01-21crda: fix compile warning on pcc for reglib for string.hupstreamLuis R. Rodriguez1-0/+1
This fixes these compile warnings: make -j5 -l4 UDEV_RULE_DIR=/lib/udev/rules.d REG_BIN=/usr/lib64/crda/regulatory.bin USE_OPENSSL=1 CC=x86_64-pc-linux-gnu-gcc all_noverify V=1 x86_64-pc-linux-gnu-gcc -c -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o crda.o crda.c x86_64-pc-linux-gnu-gcc -c -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o intersect.o intersect.c ./utils/key2pub.py --ssl pubkeys/linville.key.pub.pem keys-ssl.c x86_64-pc-linux-gnu-gcc -c -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o print-regdom.o print-regdom.c x86_64-pc-linux-gnu-gcc -c -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o regdbdump.o regdbdump.c x86_64-pc-linux-gnu-gcc -c -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o reglib.o reglib.c reglib.c: In function ‘country2rd’: reglib.c:213:2: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration] reglib.c:213:2: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default] reglib.c: In function ‘reglib_get_rd_alpha2’: reglib.c:344:3: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration] x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o crda reglib.o crda.o `pkg-config --libs openssl` -lnl-genl-3 -lnl-3 `pkg-config --libs libnl-3.0` x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o intersect reglib.o intersect.o print-regdom.o `pkg-config --libs openssl` x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o regdbdump reglib.o regdbdump.o print-regdom.o `pkg-config --libs openssl` Reported-by: Richard Farina <sidhayn@gmail.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2012-01-18crda: rename reglib_get_*() routinesv1.1.3upstream/1.1.3Luis R. Rodriguez3-7/+7
reglib_get_country_idx() --> reglib_get_rd_alpha2() reglib_get_country_alpha2() --> reglib_get_rd_alpha2() This reflects better what we provide back out. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: make usage of regdb.h exclusive to reglib.cLuis R. Rodriguez3-11/+13
The only other remaining user of regdb.h is regdbdump tool but as I see it this utility can exist in either a reglib library, or on each OS for its own specific adaptation of the reglib code. For now we just make regdbump use the local copy of nl80211.h. Later the reglib library can have its own print / dump utility if we deem it necessary. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: make country2rd() staticLuis R. Rodriguez2-6/+3
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: clean header filesLuis R. Rodriguez3-9/+0
Remove unused headers now that we have an object (soon to be library) using what it has to separately. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: make crda use reglib_get_country_alpha2()Luis R. Rodriguez1-87/+23
This removes all file specific operations over to the reglib. This also required converting the processing of the regulatory domain from the mmap'd rules to the standard ieee80211_regdomain data structure. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: add dfs_region to the ieee80211_regdomain data structureLuis R. Rodriguez2-0/+2
This will be used later once crda.c starts using the ieee80211_regdomain data structure passed on from reglib instead of using the mmap()'d regulatory file directly. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: add new reglib_get_country_alpha2()Luis R. Rodriguez2-0/+77
This will be used by CRDA to find the alpha2. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: close fd upon leavingLuis R. Rodriguez1-0/+3
This was never done. Do this at the end for now but soon this will be changed in preference for the file opening only to be done by crda for checking which file to use to pass on to reglib for usage. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: make intersect.c use reglib_for_each_country()Luis R. Rodriguez1-81/+12
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: add a reglib iterator reglib_for_each_country()Luis R. Rodriguez4-76/+83
To allow for a simple library on reglib.c we want to enable an iterator over the regulatory database that does not have to lock the file, or pass references to the file. We instead add an iterator reglib_get_country_idx() which will use a new reglib_get_country_idx(), that does an O(n) search for each new regulatory domain it needs to read. The trade off here is to allow for a simple reglib.c implementation at the cost that upon each iteration reglib_get_country_idx() we will will be opening the regdb, and verifying the db signature. Given that the only user of this iterator is regdbdump though and that this is used for debugging for now this is trade off I am willing to live with. Systems that want to use the regdb as a database for fine tuning radio parameters dynamically and reading this file very *often* (seconds, minutes, who knows what the future holds) may want to consider a slight optimization of exporting the direct mmap() through the library but we are I think light years away from that. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-01-18crda: move country2rd() and its helper to reglib.cLuis R. Rodriguez2-61/+61
Start cleaning the way we deal with reglib.c as the goal is to make that stuff a library to be shared first in userspace with the regulatory simulator [0]. We start off by moving country2rd() and its helper over to reglib.c. [0] git://github.com/mcgrof/regsim.git Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-01-18crda: add nested support for libnl-3.2Stefan Lippers-Hollmann2-11/+18
Skip libnl-3.1 due to broken .pc files. Tested to work with: - libnl-3.2.3 (Debian 3.2.3-1) Changes-licensed-under: ISC Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2011-11-15crda: use stdint.h instead of linux/types.hLuis R. Rodriguez7-47/+47
Given that we may need to make a library out of some routines here to share with the regulatory simulator. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2011-10-10crda: add support to send DFS master regionLuis R. Rodriguez3-1/+24
wireless-regdb now has support for a DFS master region for each country. We must read this from the file and send it as an NL80211_ATTR_DFS_REGION attribute. We add a "creqs" value for the country structure but only use the first two bits as that is all we need right now. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2011-10-10crda: fix null string assumption for alpha2Luis R. Rodriguez2-15/+2
The wireless-regdb only accounts for two bytes for the country code but CRDA defined the alpha2 to be as a string of length 2, and so does the nl80211 attribute policy: [NL80211_ATTR_REG_ALPHA2] = { .type = NLA_STRING, .len = 2 }, The meaning of a string is it'll be null terminated, so if you do not add the null termination a country without the null termination will not match up with the nl80211 attribute policy. This has no impact for us unless we want to use the next available pad byte on the wireless-regdb. This fixes CRDA by using a local copy of the regdb's alpha2 that is properly null terminated and sending it. The implications of this change is that new wirelesss-regdb's that make use of the next pad byte for a country will get that country ignored for regulatory hints sent to the kernel. At this point we don't yet know what the next byte will be used for though so this has no impact. The second pad byte is being used for DFS and that is not impacted by this nor is this change required for it. Distributions should upgrade though in case we ever do decide to use this last precious country byte. I've tested that this indeed fixes the bogus issue I saw when instead of using the second pad byte we use the first pad byte. Thanks to Johannes for spotting the issue. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2011-10-03crda: synch up nl80211.hLuis R. Rodriguez1-48/+1916
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2011-08-09crda: add nested support for libnl-3.0v1.1.2Tim Gardner2-9/+16
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2010-01-25Space fixv1.1.1Luis R. Rodriguez1-1/+1
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2010-01-25Implement runtime loading of RSA public keysPaul Fertser2-1/+25
This patch allows crda to load and use additional keys from a pre-configured location for the database signature verification. This provides a convenient way for distro maintainers and card manufacturers to supply a custom regulatory database along with their public keys, without the need to recompile crda. Implemented for USE_OPENSSL=1 case only because libgcrypt lacks PEM parser. Default location for public keys in PEM format is /etc/wireless-regdb/pubkeys and can be changed by specifying RUNTIME_PUBKEY_DIR at the make command line. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-10-13crda: Cosmetic fix for udev pathTim Gardner1-1/+1
BugLink: http://bugs.launchpad.net/bugs/340995 SBINDIR already has a trailing '/', so its not needed in the udev rule. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2009-08-06CRDA and cross-compilationPavel Roskin1-2/+5
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>
2009-04-17break lines nicer in 64-bit openssl keysv1.1.0Johannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
2009-04-17make openssl keys 64-bit safeJohannes Berg1-1/+32
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>
2009-04-17make openssl verification safe for multiple keysJohannes Berg1-14/+10
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>
2009-04-17Allow distributions to specify a custom pubkeys dirv1.0.2Luis R. Rodriguez1-2/+6
Distributions which need a custom pubkey dir can just specify it upon build time. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-03-05Doh, forgot to add crda after SBINDIRLuis R. Rodriguez1-1/+1
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-02-24Add comments to explain pathsLuis R. Rodriguez1-3/+3
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-02-24Add /usr/local/lib/crda/regulatory.bin as first in pathLuis R. Rodriguez1-0/+1
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-02-24crda: allow loading of regulatory.bin from /lib/crda in addition to ↵Helmut Schaa1-3/+13
/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>
2009-02-24Fix Makefile to not overwrite udev/regulatory.rules for SBINDIR changesLuis R. Rodriguez1-3/+3
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-02-11also replace the SBINDIR used in the rules fileDaniel Mierswa2-1/+2
2009-02-06use SBINDIR in install target of CRDADaniel Mierswa1-1/+1
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.
2009-02-02crda: rename nl_handle to nl_sock for libnl-2.0Pat Erley1-13/+14
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>
2009-02-02crda: report if no supported version of libnl is foundPavel Roskin1-0/+4
Otherwise, the error messase would be very confusing.
2009-01-24Update debian example changelogLuis R. Rodriguez1-0/+6
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-01-24Updates spec file versionLuis R. Rodriguez1-1/+1
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-01-24crda: Fix --as-needed usagev1.0.1Diego E. 'Flameeyes' Pettenò1-3/+3
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>
2009-01-23Adds example debian package directory to help maintainersv1.0.0Luis R. Rodriguez6-0/+53
This one uses cdbs to make debian/rules smaller. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-01-23Adds example RPM spec file (assumes 1.0.0 which I will mark shortly).Luis R. Rodriguez1-0/+32
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-01-23Small makefile fixLuis R. Rodriguez1-2/+4
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-01-23Add regdbdump.8 man page and update MakefileLuis R. Rodriguez3-12/+68
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>
2009-01-23Fix typo on man page regarding udev rule pathLuis R. Rodriguez1-1/+1
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2009-01-23Adds a crda man page, update Makefile for distributionsLuis R. Rodriguez2-1/+94
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>
2009-01-18crda: Throw verbose error message if M2Crypto is missingMichael Buesch1-1/+7
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>
2009-01-15crda: prevent key2pub.py from generating bogus output on failurePavel Roskin2-28/+31
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>
2008-12-22Add a checker for REG_BIN and easy instructions on how to add itLuis R. Rodriguez2-2/+15
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>