Lines Matching refs:reg_info

4949 					       struct cur_regulatory_info *reg_info)  in ath11k_pull_reg_chan_list_update_ev()  argument
4973 reg_info->num_2g_reg_rules = chan_list_event_hdr->num_2g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
4974 reg_info->num_5g_reg_rules = chan_list_event_hdr->num_5g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
4976 if (!(reg_info->num_2g_reg_rules + reg_info->num_5g_reg_rules)) { in ath11k_pull_reg_chan_list_update_ev()
4982 memcpy(reg_info->alpha2, &chan_list_event_hdr->alpha2, in ath11k_pull_reg_chan_list_update_ev()
4984 reg_info->dfs_region = chan_list_event_hdr->dfs_region; in ath11k_pull_reg_chan_list_update_ev()
4985 reg_info->phybitmap = chan_list_event_hdr->phybitmap; in ath11k_pull_reg_chan_list_update_ev()
4986 reg_info->num_phy = chan_list_event_hdr->num_phy; in ath11k_pull_reg_chan_list_update_ev()
4987 reg_info->phy_id = chan_list_event_hdr->phy_id; in ath11k_pull_reg_chan_list_update_ev()
4988 reg_info->ctry_code = chan_list_event_hdr->country_id; in ath11k_pull_reg_chan_list_update_ev()
4989 reg_info->reg_dmn_pair = chan_list_event_hdr->domain_code; in ath11k_pull_reg_chan_list_update_ev()
4991 reg_info->status_code = REG_SET_CC_STATUS_PASS; in ath11k_pull_reg_chan_list_update_ev()
4993 reg_info->status_code = REG_CURRENT_ALPHA2_NOT_FOUND; in ath11k_pull_reg_chan_list_update_ev()
4995 reg_info->status_code = REG_INIT_ALPHA2_NOT_FOUND; in ath11k_pull_reg_chan_list_update_ev()
4997 reg_info->status_code = REG_SET_CC_CHANGE_NOT_ALLOWED; in ath11k_pull_reg_chan_list_update_ev()
4999 reg_info->status_code = REG_SET_CC_STATUS_NO_MEMORY; in ath11k_pull_reg_chan_list_update_ev()
5001 reg_info->status_code = REG_SET_CC_STATUS_FAIL; in ath11k_pull_reg_chan_list_update_ev()
5003 reg_info->min_bw_2g = chan_list_event_hdr->min_bw_2g; in ath11k_pull_reg_chan_list_update_ev()
5004 reg_info->max_bw_2g = chan_list_event_hdr->max_bw_2g; in ath11k_pull_reg_chan_list_update_ev()
5005 reg_info->min_bw_5g = chan_list_event_hdr->min_bw_5g; in ath11k_pull_reg_chan_list_update_ev()
5006 reg_info->max_bw_5g = chan_list_event_hdr->max_bw_5g; in ath11k_pull_reg_chan_list_update_ev()
5008 num_2g_reg_rules = reg_info->num_2g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
5009 num_5g_reg_rules = reg_info->num_5g_reg_rules; in ath11k_pull_reg_chan_list_update_ev()
5013 __func__, reg_info->alpha2, reg_info->dfs_region, in ath11k_pull_reg_chan_list_update_ev()
5014 reg_info->min_bw_2g, reg_info->max_bw_2g, in ath11k_pull_reg_chan_list_update_ev()
5015 reg_info->min_bw_5g, reg_info->max_bw_5g); in ath11k_pull_reg_chan_list_update_ev()
5027 reg_info->reg_rules_2g_ptr = create_reg_rules_from_wmi(num_2g_reg_rules, in ath11k_pull_reg_chan_list_update_ev()
5029 if (!reg_info->reg_rules_2g_ptr) { in ath11k_pull_reg_chan_list_update_ev()
5038 reg_info->reg_rules_5g_ptr = create_reg_rules_from_wmi(num_5g_reg_rules, in ath11k_pull_reg_chan_list_update_ev()
5040 if (!reg_info->reg_rules_5g_ptr) { in ath11k_pull_reg_chan_list_update_ev()
6496 struct cur_regulatory_info *reg_info = NULL; in ath11k_reg_chan_list_event() local
6502 reg_info = kzalloc(sizeof(*reg_info), GFP_ATOMIC); in ath11k_reg_chan_list_event()
6503 if (!reg_info) { in ath11k_reg_chan_list_event()
6508 ret = ath11k_pull_reg_chan_list_update_ev(ab, skb, reg_info); in ath11k_reg_chan_list_event()
6514 if (reg_info->status_code != REG_SET_CC_STATUS_PASS) { in ath11k_reg_chan_list_event()
6523 pdev_idx = reg_info->phy_id; in ath11k_reg_chan_list_event()
6553 (char *)reg_info->alpha2, 2)) in ath11k_reg_chan_list_event()
6563 !ath11k_reg_is_world_alpha((char *)reg_info->alpha2)) in ath11k_reg_chan_list_event()
6566 regd = ath11k_reg_build_regd(ab, reg_info, intersect); in ath11k_reg_chan_list_event()
6591 ab->dfs_region = reg_info->dfs_region; in ath11k_reg_chan_list_event()
6607 if (reg_info) { in ath11k_reg_chan_list_event()
6608 kfree(reg_info->reg_rules_2g_ptr); in ath11k_reg_chan_list_event()
6609 kfree(reg_info->reg_rules_5g_ptr); in ath11k_reg_chan_list_event()
6610 kfree(reg_info); in ath11k_reg_chan_list_event()