Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2213699iof; Tue, 7 Jun 2022 23:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/JrWnUsq+DqXMptZ2lBqTaKmAAFE+RsCoCL0d81fbKPpWwleSSO0Mfd6y/4sFUBo467UI X-Received: by 2002:a65:6887:0:b0:3fc:a5ef:3701 with SMTP id e7-20020a656887000000b003fca5ef3701mr28598897pgt.10.1654669496579; Tue, 07 Jun 2022 23:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669496; cv=none; d=google.com; s=arc-20160816; b=TZu3HEkTBle8czfOPRBiWmJA7i4Xhq+xkw9eYoy4i4nA2hmFljSEVuc0Dz+VEpxPWz AUI9Ca0eLN24IzM2BwDVjz/4KCb6TeTDMKa5LT76Xdha2+x8pv08CFvOdb0ghaln+7E2 j6BGK5AtELgm2qweY3p4piaxemjpARDeGgyNK0unbEHjVHdp1RSqs6EXBLaCqOkz7zF7 eJKxiQcvpm1o801Ygl8ZXtjuCVaVOwnW4lhuzBpyjhL5XOT9UyXH14iXmD+SC/WCgSJ5 /Q8C9SjrOBvtp/pW0/6nvRBexoCRrXR4TwtiUWPmEDzyiz2cwzTYQcC1TpQuYJtyQTni rklQ== 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=sT7UXajUpnZjZwrAp+hv7Dnr/N7pm0pNsP1lvCJDcAU=; b=q943G73QuBN/Veq6Mi5XXgNaekJxwM7fNAsxWSPmf2je7AnQd+cPoG9ZivbtKF+VIm KG4is9AUa5yBGOEqsI5IZbrGkV+9P+LVutw5N/zWgF7tE/P8zghI7U4JjmDQGQ6MLt/I I0srQGDjMxge4cVAiLVqPOw+4M7w2CkdIyPEtZz13m58JOzD6kr2TbgcnU8ppI0nPtyh aKdZXUsjfiGPIVWz409x9wjZnP7gjjG7ioUcKM7lLiee94NsvHVkeh0KZqydoak5Gu5q C0zb+sSGJdnfInHyVHe95oh/g5d+mFMPHyU6xeiHoK7DMkD6eVUooqExqxXZh09lMcil I5pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bMgvY5Nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h6-20020a056a00170600b0051bcca7d2f0si25160338pfc.306.2022.06.07.23.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bMgvY5Nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 68AFE39853F; Tue, 7 Jun 2022 22:47:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446514AbiFHCPD (ORCPT + 99 others); Tue, 7 Jun 2022 22:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242760AbiFHBX2 (ORCPT ); Tue, 7 Jun 2022 21:23:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF99B26F366; Tue, 7 Jun 2022 12:22:59 -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 2B4DD60B01; Tue, 7 Jun 2022 19:22:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3479BC3411C; Tue, 7 Jun 2022 19:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629777; bh=FfadC9C66rH2lacYrTMtOrPQ5n/QT/RHFNMsY8y2TuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bMgvY5NcS8eAmpjOgOJDh0coi7s5FLSWqaEFe/n/i1TIaT9qS4uW6QSTdqQRBombf FRzbn6xsSYu97/Lw4IJGTROv6TxHKgOz7w+mMb99d4HY4yceQL8rQOKm5+1AASxRi1 XdM4qPu4tcrFy9neec49FiXSHXed3P0sT/ykHvhg= 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.18 814/879] cfg80211: declare MODULE_FIRMWARE for regulatory.db Date: Tue, 7 Jun 2022 19:05:32 +0200 Message-Id: <20220607165026.485151127@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 @@ -807,6 +807,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; @@ -1078,6 +1080,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();