Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dimitri John Ledkov and committed by
Johannes Berg
7bc7981e 2182db91

+4
+4
net/wireless/reg.c
··· 807 807 return 0; 808 808 } 809 809 810 + MODULE_FIRMWARE("regulatory.db.p7s"); 811 + 810 812 static bool regdb_has_valid_signature(const u8 *data, unsigned int size) 811 813 { 812 814 const struct firmware *sig; ··· 1079 1077 1080 1078 release_firmware(fw); 1081 1079 } 1080 + 1081 + MODULE_FIRMWARE("regulatory.db"); 1082 1082 1083 1083 static int query_regdb_file(const char *alpha2) 1084 1084 {