Skip to content

crda: few more updates

Luis R. Rodriguez linux-wireless wireless-regdb 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6crda: relicense under copyleft-next-0.3.0LICENSE copyleft-next-0.3.0+232 -10 replies
2/6crda: fix -pedantic gcc compilationcrda.c+3 -10 replies
3/6crda: add regulatory domain stream parserMakefile db2rd.c reglib.c +1 more+627 -20 replies
4/6crda: add regulatory domain optimizerMakefile optimize.c reglib.c +1 more+360 -40 replies
5/6crda: make ssl keys include stdint.hutils/key2pub.py+2 -00 replies
6/6crda: make reglib a shared libraryMakefile+36 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] crda: few more updates

Here's a second spin, after quite a bit more testing I ran into a few small issues with the parser and library. This has these additional fixes / enhancements:

* Lifts the restriction on 32 rules, although the kernel is limited by this we don't adhere to this limit on our stream parser or optimizer

* The union code got updated to address two cases that are invalid for unions

* A few fixes on db2rd and optimizer on using the stream parser, if its NULL, bail, we weren't checking for it

* The optimizer was not considering band differences as part of its key broker (when it decides it can use two rules for optimization), to address this we deduce the band and add that to the key mixing. Note that this will need to be updated upon new frequency band additions. This limits the scope of optimizations between their own respective bands.

I've also gone ahead and tested this with a huge fluffy non optimized regulatory domain of 40 rules, and also with the wireless-regdb db.txt. I'll send some optimizations based on this for wireless-regdb.

The only patches that go modified are the stream parser and the optimizer.

Luis R. Rodriguez (6):
crda: relicense under copyleft-next-0.3.0
crda: fix -pedantic gcc compilation
crda: add regulatory domain stream parser
crda: add regulatory domain optimizer
crda: make ssl keys include stdint.h
crda: make reglib a shared library

 LICENSE             |  14 +-
 Makefile            |  54 +++-
 copyleft-next-0.3.0 | 219 ++++++++++++++
 crda.c              |   4 +-
 db2rd.c             |  32 ++
 optimize.c          |  40 +++
 reglib.c            | 839 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 reglib.h            |  60 ++++
 utils/key2pub.py    |   2 +
 9 files changed, 1252 insertions(+), 12 deletions(-)
 create mode 100644 copyleft-next-0.3.0
 create mode 100644 db2rd.c
 create mode 100644 optimize.c
Signature · 1 line
1.8.4.rc3