1
0
Fork 0
zephyr/subsys
Krishna T fadb1fd168 net: wifi: Add support for regulatory domain configuration
Wi-Fi bands are regulated by a governing body depending on operating
country, add support for the user to provide a country of operation as a
hint to the Wi-Fi chipset.

Ideally if the chipset supports this is all handled internally, in that
case "get" is useful but for testing and other usecases add a "set" as
well, similar to "iw reg set" or "country_code=" configuration in
hostapd/wpa_supplicant in Linux world.

This add a new offload API operation "reg_domain" that can be used to
either get or set the regulatory information.

The validation is left to the underlying chipset, shell only does basic
validation, (XY/00).

This is just a regulatory hint to the chipset, there could be other
regulatory hints e.g., beacon that can override this configuration, so,
an additional option to force this setting despite other hints is also
given for testing purposes.

FYI, the standard database used is [1].

[1] - https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt

Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
2023-01-13 13:37:14 +00:00
..
bluetooth Bluetooth: audio: Add configurable PACS supported contexts 2023-01-13 13:47:19 +01:00
canbus drivers: can: use flags fields for can_frame and can_filter structs 2022-10-25 16:32:10 +02:00
console includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
cpp subsys/cpp: make libstdc++ select full libc to get tests working 2022-11-22 12:54:00 +09:00
debug modules: build segger debugmon code with config 2022-12-28 12:00:46 +01:00
demand_paging different subsystems: use unsigned int for irq_lock() 2022-07-14 14:37:13 -05:00
dfu mcuboot: Remove public dependency on bootutil 2023-01-12 19:08:23 +01:00
disk subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dsp zdsp: Fix missing kconfig and no source library 2022-12-07 10:24:24 +00:00
emul fuel_gauge: sbs_gauge: Enable MFR ACC write 2023-01-08 19:48:12 +01:00
fb includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
fs fs: fat: document path transformation 2022-12-07 10:31:01 +00:00
ipc ipc: icmsg multi endpoint with nocopy in receive path 2022-12-22 11:07:44 +01:00
jwt subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
logging logging: days in months calculation fix 2023-01-10 09:23:35 +01:00
lorawan lorawan: enforce larger system work queue stack size via Kconfig 2022-11-28 10:49:18 +01:00
mgmt mcuboot: Remove public dependency on bootutil 2023-01-12 19:08:23 +01:00
modbus crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
net net: wifi: Add support for regulatory domain configuration 2023-01-13 13:37:14 +00:00
pm pm: don't suspend unready devices when entering low power states 2022-12-19 09:46:17 +00:00
portability subsys/cmsis_v*: Fix racy mutex testing, decouple from k_mutex 2022-10-17 10:13:56 +02:00
random Revert "random: Change testing random generator" 2023-01-09 19:29:50 +09:00
rtio rtio: Userspace support 2022-11-08 10:44:03 +01:00
sd sd: utilize sdmmc_wait_ready with SPI mode. 2023-01-10 13:29:32 +01:00
settings subsys/settings/fcb: removed unused var 2023-01-09 23:19:00 +00:00
shell mgmt/mcumgr: Standardise MCUmgr Kconfig names 2022-12-22 12:36:34 +01:00
stats stats: shell: enable the stats shell if both stats and shell are enabled 2022-10-12 06:46:34 +02:00
storage storage: flash_map: Add name for select integrity backend 2023-01-09 15:24:10 +00:00
task_wdt task_wdt: Fix build warning on 64-bit platforms 2022-08-23 10:16:04 +02:00
testsuite doc: ztest: Include ztress to API reference 2023-01-13 09:43:40 +01:00
timing subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tracing tracing: none: Remove unnecessary headers 2023-01-09 12:07:28 -05:00
usb usb_c: Fix comments before "else" statements 2023-01-11 18:55:18 +01:00
zbus zbus: Add message bus subsystem to Zephyr 2022-11-14 17:25:29 -05:00
CMakeLists.txt zdsp: Fix missing kconfig and no source library 2022-12-07 10:24:24 +00:00
Kconfig usb: add initial USB host support 2022-12-16 13:21:12 +01:00