public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH v3 7/8] wireless-regdb: Use db.txt file for wlanap.cgi
Date: Thu, 05 Aug 2021 12:21:21 +0200	[thread overview]
Message-ID: <20210805102122.3484023-7-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20210805102122.3484023-1-adolf.belka@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]

- db.txt is the text file version of the wireless settings by country database
- Using db.txt means that regdbdump from crda is not required by wlanap.cgi
- This patch copies the db.txt file from the source tarball to /lib/firmware/ where
   it can be read by wlanap.cgi
- This version of the patch renames the db.txt file to regulatorydb.txt
- Updated rootfile to include db.txt

Signed-off-by: Adolf Belka <adolf.belka(a)ipfire.org>
---
 config/rootfiles/common/wireless-regdb | 1 +
 lfs/wireless-regdb                     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/config/rootfiles/common/wireless-regdb b/config/rootfiles/common/wireless-regdb
index 7e830ae1f..12376c6e7 100644
--- a/config/rootfiles/common/wireless-regdb
+++ b/config/rootfiles/common/wireless-regdb
@@ -1,3 +1,4 @@
+lib/firmware/regulatorydb.txt
 lib/firmware/regulatory.db
 lib/firmware/regulatory.db.p7s
 #usr/lib/crda
diff --git a/lfs/wireless-regdb b/lfs/wireless-regdb
index 6cffd34ba..8b89795ae 100644
--- a/lfs/wireless-regdb
+++ b/lfs/wireless-regdb
@@ -72,5 +72,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 	cd $(DIR_APP) && make install
+	cp -vf $(DIR_APP)/db.txt /lib/firmware/regulatorydb.txt
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)
-- 
2.32.0


  parent reply	other threads:[~2021-08-05 10:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 10:21 [PATCH v3 1/8] make.sh: Remove crda and remaining python2 modules Adolf Belka
2021-08-05 10:21 ` [PATCH v3 2/8] crda: removal from kernel 4.15 and onwards Adolf Belka
2021-08-05 10:21 ` [PATCH v3 3/8] python-m2crypto: removal of python2 module Adolf Belka
2021-08-05 10:21 ` [PATCH v3 4/8] python-typing: Removal of this " Adolf Belka
2021-08-05 10:21 ` [PATCH v3 5/8] python-setuptools: " Adolf Belka
2021-08-05 10:21 ` [PATCH v3 6/8] ipaddr: " Adolf Belka
2021-08-05 10:21 ` Adolf Belka [this message]
2021-08-05 10:33   ` [PATCH v3 7/8] wireless-regdb: Use db.txt file for wlanap.cgi Bernhard Bitsch
2021-08-05 10:21 ` [PATCH v3 8/8] wlanap.cgi: Access db.txt in place of using regdbdump on regulatory.bin Adolf Belka
2021-08-05 10:40   ` Bernhard Bitsch
2021-08-05 10:55     ` Adolf Belka
2021-08-05 20:31       ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210805102122.3484023-7-adolf.belka@ipfire.org \
    --to=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox