Lines Matching refs:reg_info

4503 					       struct cur_regulatory_info *reg_info)  in ath11k_pull_reg_chan_list_update_ev()  argument
4527 reg_info->num_2g_reg_rules = chan_list_event_hdr->num_2g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
4528 reg_info->num_5g_reg_rules = chan_list_event_hdr->num_5g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
4530 if (!(reg_info->num_2g_reg_rules + reg_info->num_5g_reg_rules)) { in ath11k_pull_reg_chan_list_update_ev()
4536 memcpy(reg_info->alpha2, &chan_list_event_hdr->alpha2, in ath11k_pull_reg_chan_list_update_ev()
4538 reg_info->dfs_region = chan_list_event_hdr->dfs_region; in ath11k_pull_reg_chan_list_update_ev()
4539 reg_info->phybitmap = chan_list_event_hdr->phybitmap; in ath11k_pull_reg_chan_list_update_ev()
4540 reg_info->num_phy = chan_list_event_hdr->num_phy; in ath11k_pull_reg_chan_list_update_ev()
4541 reg_info->phy_id = chan_list_event_hdr->phy_id; in ath11k_pull_reg_chan_list_update_ev()
4542 reg_info->ctry_code = chan_list_event_hdr->country_id; in ath11k_pull_reg_chan_list_update_ev()
4543 reg_info->reg_dmn_pair = chan_list_event_hdr->domain_code; in ath11k_pull_reg_chan_list_update_ev()
4545 reg_info->status_code = REG_SET_CC_STATUS_PASS; in ath11k_pull_reg_chan_list_update_ev()
4547 reg_info->status_code = REG_CURRENT_ALPHA2_NOT_FOUND; in ath11k_pull_reg_chan_list_update_ev()
4549 reg_info->status_code = REG_INIT_ALPHA2_NOT_FOUND; in ath11k_pull_reg_chan_list_update_ev()
4551 reg_info->status_code = REG_SET_CC_CHANGE_NOT_ALLOWED; in ath11k_pull_reg_chan_list_update_ev()
4553 reg_info->status_code = REG_SET_CC_STATUS_NO_MEMORY; in ath11k_pull_reg_chan_list_update_ev()
4555 reg_info->status_code = REG_SET_CC_STATUS_FAIL; in ath11k_pull_reg_chan_list_update_ev()
4557 reg_info->min_bw_2g = chan_list_event_hdr->min_bw_2g; in ath11k_pull_reg_chan_list_update_ev()
4558 reg_info->max_bw_2g = chan_list_event_hdr->max_bw_2g; in ath11k_pull_reg_chan_list_update_ev()
4559 reg_info->min_bw_5g = chan_list_event_hdr->min_bw_5g; in ath11k_pull_reg_chan_list_update_ev()
4560 reg_info->max_bw_5g = chan_list_event_hdr->max_bw_5g; in ath11k_pull_reg_chan_list_update_ev()
4562 num_2g_reg_rules = reg_info->num_2g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
4563 num_5g_reg_rules = reg_info->num_5g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
4567 __func__, reg_info->alpha2, reg_info->dfs_region, in ath11k_pull_reg_chan_list_update_ev()
4568 reg_info->min_bw_2g, reg_info->max_bw_2g, in ath11k_pull_reg_chan_list_update_ev()
4569 reg_info->min_bw_5g, reg_info->max_bw_5g); in ath11k_pull_reg_chan_list_update_ev()
4581 reg_info->reg_rules_2g_ptr = create_reg_rules_from_wmi(num_2g_reg_rules, in ath11k_pull_reg_chan_list_update_ev()
4583 if (!reg_info->reg_rules_2g_ptr) { in ath11k_pull_reg_chan_list_update_ev()
4592 reg_info->reg_rules_5g_ptr = create_reg_rules_from_wmi(num_5g_reg_rules, in ath11k_pull_reg_chan_list_update_ev()
4594 if (!reg_info->reg_rules_5g_ptr) { in ath11k_pull_reg_chan_list_update_ev()
5826 struct cur_regulatory_info *reg_info = NULL; in ath11k_reg_chan_list_event() local
5832 reg_info = kzalloc(sizeof(*reg_info), GFP_ATOMIC); in ath11k_reg_chan_list_event()
5833 if (!reg_info) { in ath11k_reg_chan_list_event()
5838 ret = ath11k_pull_reg_chan_list_update_ev(ab, skb, reg_info); in ath11k_reg_chan_list_event()
5844 if (reg_info->status_code != REG_SET_CC_STATUS_PASS) { in ath11k_reg_chan_list_event()
5853 pdev_idx = reg_info->phy_id; in ath11k_reg_chan_list_event()
5883 (char *)reg_info->alpha2, 2)) in ath11k_reg_chan_list_event()
5893 !ath11k_reg_is_world_alpha((char *)reg_info->alpha2)) in ath11k_reg_chan_list_event()
5896 regd = ath11k_reg_build_regd(ab, reg_info, intersect); in ath11k_reg_chan_list_event()
5921 ab->dfs_region = reg_info->dfs_region; in ath11k_reg_chan_list_event()
5937 if (reg_info) { in ath11k_reg_chan_list_event()
5938 kfree(reg_info->reg_rules_2g_ptr); in ath11k_reg_chan_list_event()
5939 kfree(reg_info->reg_rules_5g_ptr); in ath11k_reg_chan_list_event()
5940 kfree(reg_info); in ath11k_reg_chan_list_event()