mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
cfg80211: declare MODULE_FIRMWARE for regulatory.db
commit 7bc7981eee
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 <dimitri.ledkov@canonical.com>
Link: https://lore.kernel.org/r/20220414125004.267819-1-dimitri.ledkov@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d8386ef6ac
commit
b481676bec
1 changed files with 4 additions and 0 deletions
|
@ -806,6 +806,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;
|
||||
|
@ -1077,6 +1079,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();
|
||||
|
|
Loading…
Add table
Reference in a new issue