Lines Matching refs:reg_domain
308 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()
381 chan_info = &(reg_domain->chan_info[chan_idx]); in nrf_wifi_reg_domain()
832 .reg_domain = nrf_wifi_reg_domain,