<wireless-regdb>: Adds the option to copy "regulatory.db[.p7s]" to /lib/firmware
PATCH 1/1 <wireless-regdb>: Adds the option to copy "regulatory.db[.p7s]" to /lib/firmware
Certain wireless drivers (like the Broadcom FullMac drivers" expect the regulatory.db and regulatory.db.p7s files to be available to be loadable from /lib/firmware. If not available the driver still loads but runs on a minimal subset of channels.
This newly added option gives possibility to have those files copied to the necessary directory.
Signed-off-by Christoph Engelbert <[email protected]>
--- package/wireless-regdb/Config.in | 8 ++++++++ package/wireless-regdb/wireless-regdb.mk | 10 ++++++++++ 2 files changed, 18 insertions(+)
package/wireless-regdb/Config.in +8 -0
@@ -7,3 +7,11 @@ config BR2_PACKAGE_WIRELESS_REGDB allowed radio frequencies for each local jurisdiction. https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb + +config BR2_PACKAGE_WIRELESS_REGDB_FIRMWARE + bool "wireless-regdb-firmware" + depends on BR2_PACKAGE_WIRELESS_REGDB + help + Copies the regulatory.db and regulatory.db.p7s files to + /lib/firmware which is necessary for certain drivers like + the Broadcom FullMac driver.
package/wireless-regdb/wireless-regdb.mk +10 -0
@@ -10,6 +10,16 @@ WIRELESS_REGDB_SITE = http://kernel.org/pub/software/network/wireless-regdb WIRELESS_REGDB_LICENSE = ISC WIRELESS_REGDB_LICENSE_FILES = LICENSE +ifeq ($(BR2_PACKAGE_WIRELESS_REGDB_FIRMWARE),y) +define WIRELESS_REGDB_FIRMWARE_INSTALL + $(INSTALL) -m 644 -D -T $(@D)/regulatory.db \ + $(TARGET_DIR)/lib/firmware/regulatory.db + $(INSTALL) -m 644 -D -T $(@D)/regulatory.db.p7s \ + $(TARGET_DIR)/lib/firmware/regulatory.db.p7s +endef +WIRELESS_REGDB_POST_INSTALL_TARGET_HOOKS += WIRELESS_REGDB_FIRMWARE_INSTALL +endif + define WIRELESS_REGDB_INSTALL_TARGET_CMDS $(INSTALL) -m 644 -D -T $(@D)/regulatory.bin \ $(TARGET_DIR)/usr/lib/crda/regulatory.bin
Signature · 1 line
2.17.1