1
0
Fork 0
zephyr/include/zephyr
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
..
app_memory include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
arch arch: arm: aarch32: define arch specific fatal errors 2023-01-12 10:01:05 +01:00
audio include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
bluetooth Bluetooth: audio: Add configurable PACS supported contexts 2023-01-13 13:47:19 +01:00
canbus canbus: isotp: avoid reusing CAN controller driver API definitions 2022-10-25 16:32:10 +02:00
console include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
crypto include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
data lib: os: Extend Json library API and type update 2022-06-06 12:06:43 +02:00
debug doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
devicetree devicetree: remove deprecated DT_CHOSEN_*_LABEL macros 2022-11-11 11:00:26 +01:00
dfu mcuboot: Remove public dependency on bootutil 2023-01-12 19:08:23 +01:00
display drivers: display: framebuffer: rework to make it self-contained 2022-09-02 14:16:08 +02:00
drivers drivers: pinctrl: gd32: add gd32a50x support 2023-01-12 21:45:38 +01:00
dsp math: Introduce a DSP basicmath subsystem with a cmsis backend 2022-12-02 20:15:55 +01:00
dt-bindings dt-bindings: gd32: reset: add support for gd32a50x 2023-01-12 21:45:38 +01:00
fs include: fs: Remove conditional around MKFS 2022-12-21 16:23:08 +01:00
ipc ipc: icmsg: send nocopy feature 2022-12-22 11:07:44 +01:00
kernel treewide: Use CONFIG_*_ENDIAN instead of __BYTE_ORDER__ 2022-10-28 19:23:46 +09:00
linker linker: kobject: Handle literal section 2023-01-02 11:05:06 +01:00
logging logging: Add an option for a custom log header 2022-12-22 11:09:59 +01:00
lorawan lorawan: enable run-time config of region/freq 2022-11-14 11:16:16 +00:00
math doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
mgmt mgmt/osdp: Add support for event delivery and notifications 2023-01-12 12:04:11 +01:00
modbus modbus: add user data for adu callback 2022-09-02 10:51:57 +02:00
multi_heap doc: doxygen: group heap APIs 2022-09-07 10:45:55 -04:00
net net: wifi: Add support for regulatory domain configuration 2023-01-13 13:37:14 +00:00
pm pm: pm_device_runtime_enable/disable should return 0 when PM is disabled 2023-01-04 13:50:17 -05:00
portability include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
posix posix: sys/stat.h: declare missing types in sys/stat.h 2023-01-10 09:02:21 +09:00
random include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
rtio rtio: Userspace support 2022-11-08 10:44:03 +01:00
sd include: add missing kernel.h include 2022-10-11 18:05:17 +02:00
settings settings: API for get storage instance used 2022-08-02 15:15:10 +02:00
shell mgmt/mcumgr: Standardise MCUmgr Kconfig names 2022-12-22 12:36:34 +01:00
stats include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
storage storage/flash_area: Remove unused field fa_device_id 2022-12-27 13:24:55 +01:00
sys include: sys: util_macro: add IS_BIT_MASK()/IS_SHIFTED_BIT_MASK() 2023-01-10 09:23:14 +01:00
task_wdt include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
timing timing: Fix symbol extern for C++ 2022-05-26 13:02:53 -07:00
toolchain toolchain: gcc: rename popcount to avoid conflict with C++20 2023-01-03 11:06:45 +01:00
tracing tracing: ctf: add timer support 2022-08-31 16:04:01 -04:00
usb usb: device: hid: correct bcdHID to v1.11 spec 2022-12-21 12:20:55 +01:00
usb_c usb_c: Transition to Sink Ready on sender response timeout 2023-01-05 10:34:06 +01:00
xen everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
zbus zbus: Add message bus subsystem to Zephyr 2022-11-14 17:25:29 -05:00
cache.h cache: Fix wrong defines 2023-01-10 18:22:32 -05:00
device.h Revert "device: restore init_res bit field" 2022-10-19 16:27:06 +02:00
devicetree.h devicetree: Move DT_INST_PARENT to devicetree-inst group 2022-11-17 10:18:11 -06:00
exc_handle.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
fatal.h fatal: move enum definition to dedicated header 2023-01-12 10:01:05 +01:00
fatal_types.h fatal_types: define start of arch specific faults 2023-01-12 10:01:05 +01:00
init.h init: format file 2022-10-12 18:49:12 +09:00
irq.h doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
irq_nextlevel.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
irq_offload.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
kernel.h kernel: clarify documentation for k_work_reschedule_for_queue 2023-01-04 10:36:00 +01:00
kernel_includes.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
kernel_structs.h smp: Move arrays to use CONFIG_MP_MAX_NUM_CPUS 2022-10-17 14:40:12 +09:00
kernel_version.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
shared_irq.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
smf.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
spinlock.h kernel: Convert away from CONFIG_MP_NUM_CPUS 2022-10-31 17:09:14 +01:00
sw_isr_table.h arch: Use a common place for z_irq_spurious 2022-07-07 15:24:39 -04:00
sys_clock.h sys_clock: define NSEC_PER_MSEC 2022-09-01 16:29:25 -04:00
syscall.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
syscall_handler.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
timeout_q.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
toolchain.h toolchain: Replace GCC_VERSION, CLANG_VERSION and BUILD_ASSERT macros 2022-12-05 18:30:54 +01:00
types.h include: types: remove ulong_t 2022-09-06 18:16:33 +02:00
wait_q.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
zephyr.h includes: deprecate <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00