Home
last modified time | relevance | path

Searched refs:reg_domain (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dfmac_main.c308 int nrf_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_domain) in nrf_wifi_reg_domain() argument
322 if (!dev || !reg_domain) { in nrf_wifi_reg_domain()
347 if (reg_domain->oper == WIFI_MGMT_SET) { in nrf_wifi_reg_domain()
348 memcpy(reg_domain_info.alpha2, reg_domain->country_code, WIFI_COUNTRY_CODE_LEN); in nrf_wifi_reg_domain()
350 reg_domain_info.force = reg_domain->force; in nrf_wifi_reg_domain()
361 if (reg_domain->oper != WIFI_MGMT_GET) { in nrf_wifi_reg_domain()
362 LOG_ERR("%s: Invalid operation: %d", __func__, reg_domain->oper); in nrf_wifi_reg_domain()
366 if (!reg_domain->chan_info) { in nrf_wifi_reg_domain()
377 memcpy(reg_domain->country_code, reg_domain_info.alpha2, WIFI_COUNTRY_CODE_LEN); in nrf_wifi_reg_domain()
378 reg_domain->num_channels = reg_domain_info.reg_chan_count; in nrf_wifi_reg_domain()
[all …]
/Zephyr-latest/drivers/wifi/nxp/
Dnxp_wifi_drv.c1432 static int nxp_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_domain) in nxp_wifi_reg_domain() argument
1439 if (reg_domain->oper == WIFI_MGMT_GET) { in nxp_wifi_reg_domain()
1444 reg_domain->chan_info[i].center_frequency = in nxp_wifi_reg_domain()
1446 reg_domain->chan_info[i].max_power = in nxp_wifi_reg_domain()
1448 reg_domain->chan_info[i].supported = 1; in nxp_wifi_reg_domain()
1449 reg_domain->chan_info[i].passive_only = in nxp_wifi_reg_domain()
1451 reg_domain->chan_info[i].dfs = in nxp_wifi_reg_domain()
1461 reg_domain->chan_info[index + i].center_frequency = in nxp_wifi_reg_domain()
1463 reg_domain->chan_info[index + i].max_power = in nxp_wifi_reg_domain()
1465 reg_domain->chan_info[index + i].supported = 1; in nxp_wifi_reg_domain()
[all …]
/Zephyr-latest/modules/hostap/src/
Dsupp_api.h184 int supplicant_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_domain);
Dsupp_api.c1870 struct wifi_reg_domain *reg_domain) argument
1876 if (!wifi_mgmt_api || !wifi_mgmt_api->reg_domain) {
1881 if (reg_domain->oper == WIFI_MGMT_GET) {
1882 return wifi_mgmt_api->reg_domain(dev, reg_domain);
1885 if (reg_domain->oper == WIFI_MGMT_SET) {
1894 if (!wpa_cli_cmd_v("set country %s", reg_domain->country_code)) {
1899 if (!hostapd_cli_cmd_v("set country_code %s", reg_domain->country_code)) {
Dsupp_main.c74 .reg_domain = supplicant_reg_domain,
/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_mgmt.c988 struct wifi_reg_domain *reg_domain = data; in wifi_reg_domain() local
990 if (wifi_mgmt_api == NULL || wifi_mgmt_api->reg_domain == NULL) { in wifi_reg_domain()
994 if (!data || len != sizeof(*reg_domain)) { in wifi_reg_domain()
998 return wifi_mgmt_api->reg_domain(dev, reg_domain); in wifi_reg_domain()
Dwifi_shell.c3747 SHELL_SUBCMD_ADD((wifi), reg_domain, NULL,
/Zephyr-latest/include/zephyr/net/
Dwifi_mgmt.h1439 int (*reg_domain)(const struct device *dev, struct wifi_reg_domain *reg_domain); member