From patchwork Wed Jul 28 17:29:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 4575 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GZghX6JJVz3xGN for ; Wed, 28 Jul 2021 17:32:12 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GZghX3C6Sz6Zf; Wed, 28 Jul 2021 17:32:12 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GZghX2h3hz2y2L; Wed, 28 Jul 2021 17:32:12 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GZghW6T3Dz2xSn for ; Wed, 28 Jul 2021 17:32:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GZghW3G1Nz5QX; Wed, 28 Jul 2021 17:32:11 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1627493531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YTDbpAU7QwQMK79dyxfB1OOob3Xi2qkX5GYrsOlClZg=; b=fzx90NNtCeBFvvsKn7fOaCS6VQ9vOoTzLvEDbHXbKBCyAFcYjrgXk5/3U2umYNLxClo3YV idolXvNQtpOgPoAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1627493531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YTDbpAU7QwQMK79dyxfB1OOob3Xi2qkX5GYrsOlClZg=; b=KHO6SXkCIfLKLbY/8WVokrEunh8pNPZn0rMWYAvj+lz4gt3F4iIMO/K7KDolV9Ik8owKRG XOs8F0CcQu8ZuWTcbfhSvtv24VYSL+oDFiCynI8E7jcZlwsrZk1tVgy1Wk/B93JBVwafE+ R0xbyErzP90ASQJp0YTFcpAOkVCMEyHQZ7COOnPAg3cfI54Y6B2xas6OX2pW7f8tL7MeLc SUddwa8HZrfG3Pi9qFMkbPE9Th1hoaiU3c0+QVe8PVe6e60C1V43Ltrq9es4QFuouO2P/d RzkGf69/o2O/APZGvLaVgrz0R50Un6tc/Et9OIQRHYd66UJi1fkCvtf3clzL0g== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH v2 7/8] wireless-regdb: Use db.txt file for wlanap.cgi Date: Wed, 28 Jul 2021 19:29:31 +0200 Message-Id: <20210728172932.2737967-7-adolf.belka@ipfire.org> In-Reply-To: <20210728172932.2737967-1-adolf.belka@ipfire.org> References: <20210728172932.2737967-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - 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 - Updated rootfile to include db.txt Signed-off-by: Adolf Belka --- 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..2ebbfc169 100644 --- a/config/rootfiles/common/wireless-regdb +++ b/config/rootfiles/common/wireless-regdb @@ -1,3 +1,4 @@ +lib/firmware/db.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..1ef7da231 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/db.txt @rm -rf $(DIR_APP) @$(POSTBUILD)