Lines Matching refs:phy_info
1021 static int phy_info_freqs(struct phy_info_arg *phy_info,
1058 idx = phy_info->last_chan_idx;
1068 phy_info->last_chan_idx = idx;
1118 static int phy_info_band(struct phy_info_arg *phy_info, struct nlattr *nl_band)
1124 if (phy_info->last_mode != nl_band->nla_type) {
1125 mode = os_realloc_array(phy_info->modes,
1126 *phy_info->num_modes + 1,
1130 phy_info->modes = mode;
1132 mode = &phy_info->modes[*(phy_info->num_modes)];
1149 *(phy_info->num_modes) += 1;
1150 phy_info->last_mode = nl_band->nla_type;
1151 phy_info->last_chan_idx = 0;
1153 mode = &phy_info->modes[*(phy_info->num_modes) - 1];
1164 ret = phy_info_freqs(phy_info, mode, tb_band[NL80211_BAND_ATTR_FREQS]);
1179 struct phy_info_arg *phy_info = arg;
1191 int res = phy_info_band(phy_info, nl_band);