]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: support loading regulatory database as firmware file
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Oct 2015 09:22:58 +0000 (11:22 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 11 Oct 2017 11:04:15 +0000 (13:04 +0200)
commit2bb24f727ff9e575e1f35ec0916eed2025e3107b
treef458dd8f271a09f88f0cc98dbea8f89d6f6f60dc
parent40e88ad2332892c96e7b46f01b344b885e506a4f
cfg80211: support loading regulatory database as firmware file

As the current regulatory database is only about 4k big, and already
difficult to extend, we decided that overall it would be better to
get rid of the complications with CRDA and load the database into the
kernel directly, but in a new format that is extensible.

The new file format can be extended since it carries a length field
on all the structs that need to be extensible.

In order to be able to request firmware when the module initializes,
move cfg80211 from subsys_initcall() to the later fs_initcall(); the
firmware loader is at the same level but linked earlier, so it can
be called from there. Otherwise, when both the firmware loader and
cfg80211 are built-in, the request will crash the kernel. We also
need to be before device_initcall() so that cfg80211 is available
for devices when they initialize.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Documentation/networking/regulatory.txt
net/wireless/Kconfig
net/wireless/core.c
net/wireless/reg.c