Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2158564iof; Tue, 7 Jun 2022 21:42:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiw/kFgUY6c8vqTW8UuAHEMAaBDK68no7HO7DdxGScGcTx3bpJhbqMtzbchIsKY/36nIIE X-Received: by 2002:a17:902:e8d6:b0:161:ea52:cd52 with SMTP id v22-20020a170902e8d600b00161ea52cd52mr31910551plg.71.1654663354553; Tue, 07 Jun 2022 21:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654663354; cv=none; d=google.com; s=arc-20160816; b=Uvwq3upuSapVmteYjg6tcDBYRZIPBhiA5nyaOa2ccE6xZfu6tIXnjPoPO/U0WEKBzA a91hp8ReF4GkxPa+UG0xnpSgIWfI2ZF7Yqr3MCVLlKb5EDgBrztPhutDHU6FxQepKsOD kRbPIJQ98N/tID0AStKZQlw22aizDXhDaYb67d07mpKXg4O4ewmQNKF72cxyD4xAsubL a+DXj7LDQvk1i0i1WnanCzaUt91lZL8aaK7kE6543nF15olsp8G/rVyXAMnQltf+gDTZ +8ANFpTAuQiM6X2uf7DlXixHyTHvgiigc+kEpTvh5Z7POJJcbBeVVMHHhQk5gktuuMcw /uJw== 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=Stl/KP8LOyApeeWDUmzKmBw3pCDLqMTQsByhT1orXN4=; b=kEscq60b3Q/7aS/pxQk4PHaxfFCfzvBQU9A5h/MUvJk/VMZ9ggSJ7kr1whXOpUuW+b 1173GH3rckwgefTTyZgABpliQJoJmzlvdYKPHtIpIdwc8/mbPq81mKQsZgBRh1rWqsvq r5yT6qoYg+O3DTGzuLoSu/GW+nQDwtS3Rtz3Op/LtfiydBIaZFKc1oQ/dppN4yM+W/39 yffoS8S+PlZKz6pUwyL0lrXaT91X2aCo63NlNYHp5FwwTM3cqx5NgwLjFCfWMjjV+rQQ e4ZSu9BjkIKc0htgQ/dQkFIJ1BZ65EPgQmfRZ/EhdX5WLE99ZrlrMscbgMBhkCv6ABJb CGVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rww6uB1x; 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 m19-20020a63ed53000000b003f605851c65si26420079pgk.303.2022.06.07.21.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:42:34 -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=Rww6uB1x; 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 71D0D443E28; Tue, 7 Jun 2022 21:11:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350268AbiFGSFr (ORCPT + 99 others); Tue, 7 Jun 2022 14:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349055AbiFGRqo (ORCPT ); Tue, 7 Jun 2022 13:46:44 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04F5260B97; Tue, 7 Jun 2022 10:36:22 -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 sin.source.kernel.org (Postfix) with ESMTPS id 0BD0ECE23E3; Tue, 7 Jun 2022 17:36:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0550BC385A5; Tue, 7 Jun 2022 17:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623379; bh=+3e4woYPj1YYXK+ih5wW15uzJg6CSLuSkjVNKXFyNM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rww6uB1xEmwElgJw/2TJI+MI4FkcUpMNGmX4dip3cCTpTfeewaz/F1yyFDFjZE/sk 2AqZzgGml7gBDStYPngFPmhZ1qjPMFxiQH68pv6yZO9SyzrXarnROLIP2dJ+lhIVdC 5r027rqo0RTucFHpnwikBVvu4kLsFs8v9v9RZQzA= 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.10 396/452] cfg80211: declare MODULE_FIRMWARE for regulatory.db Date: Tue, 7 Jun 2022 19:04:13 +0200 Message-Id: <20220607164920.362594817@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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 @@ -787,6 +787,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; @@ -1058,6 +1060,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();