zephyr/include/zephyr/net
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
..
http include: net: http: rename http_x.h http/x.h 2022-10-12 09:02:21 -04:00
bt.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
buf.h net: buf: Simplify fragment handling 2022-12-06 11:06:43 +02:00
canbus.h drivers: net: canbus: move CAN bus network driver to drivers/net 2022-07-13 10:34:51 +02:00
capture.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
coap.h net: lib: coap: method_from_code() API change to return errors. 2022-09-12 10:53:34 +00:00
coap_link_format.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
dhcpv4.h net: dhcp: Add support for restarting DHCP 2022-09-06 09:56:22 +02:00
dns_resolve.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
dns_sd.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
dsa.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
dummy.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
ethernet.h net: shell: Add MAC address validation 2023-01-12 19:07:44 +01:00
ethernet_bridge.h net/ethernet/bridge: Fix k_mutex initialization 2022-10-17 10:13:56 +02:00
ethernet_mgmt.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
ethernet_vlan.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
gptp.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
hostname.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
ieee802154.h net: l2: ieee802154: remove struct padding in context 2022-10-12 18:40:59 +02:00
ieee802154_mgmt.h net: l2: ieee802154: doc: fix net mgmt doc group name 2022-10-26 12:01:00 +02:00
ieee802154_pkt.h net: pkt: decouple from ieee802154 internals 2022-10-17 16:54:37 +02:00
ieee802154_radio.h drivers: ieee802154: document endianness 2022-10-12 18:40:59 +02:00
igmp.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
ipv4_autoconf.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
lldp.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
loopback.h drivers: net: loopback: Add counting of number of dropped packets 2022-05-16 16:55:51 +02:00
lwm2m.h net: lwm2m: fix max path size 2023-01-13 12:02:07 +00:00
lwm2m_path.h net: lwm2m: Add helper macro for filling lwm2m_obj_path structs 2022-10-11 11:14:31 +02:00
mii.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
mqtt.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
mqtt_sn.h net: mqtt-sn: Add MQTT-SN library 2022-11-09 10:43:00 +01:00
net_config.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
net_conn_mgr.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
net_context.h net: context: Add DSCP/ECN support 2022-10-19 19:03:48 +02:00
net_core.h all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
net_event.h net: if: Introduce carrier and dormant management on a network iface 2022-10-20 10:00:31 +02:00
net_if.h net: if: Allow to set LL address after interface was brough admin UP 2022-12-19 18:18:03 +01:00
net_ip.h net: ipv4: Add fragmented packet support 2022-11-05 19:58:26 +01:00
net_l2.h net: fix minor typos 2022-10-17 16:54:37 +02:00
net_linkaddr.h net: ip: document endianness 2022-10-12 18:40:59 +02:00
net_mgmt.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
net_offload.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
net_pkt.h net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
net_pkt_filter.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
net_stats.h wifi_mgmt: Add new API for Wi-Fi statistics 2022-08-31 21:49:47 +00:00
net_timeout.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
openthread.h net: openthread: Depreciate openthread_set_state_changed_cb API 2023-01-10 13:29:15 +01:00
phy.h include: update references to <device.h> 2022-04-21 07:40:54 -05:00
ppp.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
promiscuous.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
ptp_time.h treewide: Use CONFIG_*_ENDIAN instead of __BYTE_ORDER__ 2022-10-28 19:23:46 +09:00
sntp.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
socket.h net: sockets: Add options to control DSCP/ECN value 2022-10-19 19:03:48 +02:00
socket_net_mgmt.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
socket_offload.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
socket_select.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
socket_types.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
socketcan.h driver: can: add new filter to match CAN-FD frames 2023-01-04 08:18:13 -06:00
socketcan_utils.h driver: can: add new filter to match CAN-FD frames 2023-01-04 08:18:13 -06:00
socketutils.h include: zephyr: Add missing guard macro 2022-07-20 13:39:23 -05:00
tftp.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
tls_credentials.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
trickle.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
udp.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
virtual.h net: virtual: Align virtual L2 with iface status upgrade 2022-10-20 10:00:31 +02:00
virtual_mgmt.h include: migrate includes to <zephyr/...> 2022-05-06 20:03:00 +02:00
websocket.h net: websocket: new receiving algorithm 2022-12-20 17:05:12 +00:00
wifi.h net: wifi: Add support for regulatory domain configuration 2023-01-13 13:37:14 +00:00
wifi_mgmt.h net: wifi: Add support for regulatory domain configuration 2023-01-13 13:37:14 +00:00
zperf.h net: zperf: Make UDP/TCP servers restartable 2022-12-22 11:05:11 +01:00