Commit 7bc7981e authored by Dimitri John Ledkov's avatar Dimitri John Ledkov Committed by Johannes Berg

cfg80211: declare MODULE_FIRMWARE for regulatory.db

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: default avatarDimitri John Ledkov <dimitri.ledkov@canonical.com>
Link: https://lore.kernel.org/r/20220414125004.267819-1-dimitri.ledkov@canonical.comSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 2182db91
......@@ -807,6 +807,8 @@ static int __init load_builtin_regdb_keys(void)
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 firmware *fw, void *context)
release_firmware(fw);
}
MODULE_FIRMWARE("regulatory.db");
static int query_regdb_file(const char *alpha2)
{
ASSERT_RTNL();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment