Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2280689iof; Wed, 8 Jun 2022 01:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/PjzjRcMNUmPT1OQmijSx5pSk4aGAs8sfujWZSKi32JSSR3H7K1Ps+hBnXHB8CKJpjkNL X-Received: by 2002:a17:902:e552:b0:166:3333:528a with SMTP id n18-20020a170902e55200b001663333528amr33203774plf.133.1654676247888; Wed, 08 Jun 2022 01:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676247; cv=none; d=google.com; s=arc-20160816; b=d5KluG05RuSnELKo/co3tyaKHau1gWBMr2GftJyoWNZOymM3dX4xUanTFi63NK7J+p MWHRZhWh7ArT1bKWIYBNoQNo7bYcS1oaitC/1tpsLerqUvlte5HogQx7hRSCzxsJXRNf E+pya1WVh1VaVEoEWiOlzZ/gLQw/W42ywU60rpLTMTx3tDO+fPOB3CQuxxlBgzA2/qDe 9FAE68wmrtR/jCbcXHV+WAyITkqtK1RJwsPtN9ijXVTeQYle00km1svmIj1Ykx+IRQlD S+M0tMWe9ASuw1mkGgcRJI2YfVb1dtQfWhg1SioiAvNCOtQe743a1gQDnwZtMcOM6WvB mf1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xnlA52X5oUfIwZKe14uYajyw0EmrTE8Y8RGNz+/Q9og=; b=kls4J3s10UZ3dH0DDO4PrXEcfzG5VAnMi+DzleMhajhilN0vD1qh8q3Q2ic704iwTM 0Mh23aQ5aCppG/wiSvrpX1uAL5Av9GPpNZ/ebtaKHlojZFBj43Og9BHon688P7PWxlTk MYsrFlzZHX/IKU6x8cke+pA6oXs/740UAryeey4qValQL06gsI0/dpU/ZCbIvBWqMqrs fMcSaamt/trFGH9w+Nr3aV2qOVCuopki+Mo+Md0bmt6C7zRbfaIkIh2uj6XbAbFDJBtk vBPpk46LfIVr2IR2ohglBW6zEHVEqSW9LB34p3cmuUNHiZqeOF61nbgbO2o/U2MISD3i bdFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="yy2/r4yI"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q12-20020a170902f78c00b001678b6bde1asi7451068pln.330.2022.06.08.01.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:17:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="yy2/r4yI"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5060D3A5BDC; Wed, 8 Jun 2022 00:47:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358981AbiFGUHq (ORCPT + 99 others); Tue, 7 Jun 2022 16:07:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354830AbiFGTLt (ORCPT ); Tue, 7 Jun 2022 15:11:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25384194262; Tue, 7 Jun 2022 11:07:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 72BE86171C; Tue, 7 Jun 2022 18:07:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E51AC34115; Tue, 7 Jun 2022 18:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654625227; bh=nXntMZVpla3NklUfK6+iMj4hlV8xeBF+Xq/mDF1C6kg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yy2/r4yIWfzzK5bpX0VCoHWBxbmUZkDxXMDhNZIZFzVVeLEkhDyo7FEIZal0Mju2d ebPNfZp6ntBZUd1AaOYlEL2bU2nVE+e1Tj4QpoJXZR44VpyMLNpykqWD4h2kgsYIP5 sobd9Hq9t5oMDUtNGVKziACVRFZZjTl2KXljwzJc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dimitri John Ledkov , Johannes Berg Subject: [PATCH 5.15 609/667] cfg80211: declare MODULE_FIRMWARE for regulatory.db Date: Tue, 7 Jun 2022 19:04:34 +0200 Message-Id: <20220607164952.940551650@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164934.766888869@linuxfoundation.org> References: <20220607164934.766888869@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dimitri John Ledkov commit 7bc7981eeebe1b8e603ad2ffc5e84f4df76920dd upstream. Add MODULE_FIRMWARE declarations for regulatory.db and regulatory.db.p7s such that userspace tooling can discover and include these files. Cc: stable@vger.kernel.org Signed-off-by: Dimitri John Ledkov Link: https://lore.kernel.org/r/20220414125004.267819-1-dimitri.ledkov@canonical.com Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/reg.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -806,6 +806,8 @@ static int __init load_builtin_regdb_key return 0; } +MODULE_FIRMWARE("regulatory.db.p7s"); + static bool regdb_has_valid_signature(const u8 *data, unsigned int size) { const struct firmware *sig; @@ -1077,6 +1079,8 @@ static void regdb_fw_cb(const struct fir release_firmware(fw); } +MODULE_FIRMWARE("regulatory.db"); + static int query_regdb_file(const char *alpha2) { ASSERT_RTNL();