diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2022-04-14 14:50:03 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-05-04 12:32:39 +0200 |
commit | 7bc7981eeebe1b8e603ad2ffc5e84f4df76920dd (patch) | |
tree | 20cfc9452c27522e1caf7273a2f75bc3a374433d /net/wireless | |
parent | nl80211: rework internal_flags usage (diff) | |
download | linux-7bc7981eeebe1b8e603ad2ffc5e84f4df76920dd.tar.xz linux-7bc7981eeebe1b8e603ad2ffc5e84f4df76920dd.zip |
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: 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>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index c76cd973f06e..58e83ce642ad 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -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(); |