Searched refs:tb_rule (Results 1 – 2 of 2) sorted by relevance
168 struct nlattr *tb_rule[NL80211_REG_RULE_ATTR_MAX + 1]; in print_reg_handler() local171 …nla_parse(tb_rule, NL80211_REG_RULE_ATTR_MAX, nla_data(nl_rule), nla_len(nl_rule), reg_rule_policy… in print_reg_handler()173 flags = nla_get_u32(tb_rule[NL80211_ATTR_REG_RULE_FLAGS]); in print_reg_handler()174 start_freq_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_START]); in print_reg_handler()175 end_freq_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_END]); in print_reg_handler()176 max_bw_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_MAX_BW]); in print_reg_handler()177 max_ant_gain_mbi = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN]); in print_reg_handler()178 max_eirp_mbm = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_EIRP]); in print_reg_handler()191 if ((flags & NL80211_RRF_DFS) && tb_rule[NL80211_ATTR_DFS_CAC_TIME]) in print_reg_handler()192 printf(", (%u ms)", nla_get_u32(tb_rule[NL80211_ATTR_DFS_CAC_TIME])); in print_reg_handler()
2299 struct nlattr *tb_rule[NL80211_FREQUENCY_ATTR_MAX + 1]; in nl80211_get_reg() local2334 nla_parse(tb_rule, NL80211_FREQUENCY_ATTR_MAX, in nl80211_get_reg()2336 if (tb_rule[NL80211_ATTR_FREQ_RANGE_START] == NULL || in nl80211_get_reg()2337 tb_rule[NL80211_ATTR_FREQ_RANGE_END] == NULL) in nl80211_get_reg()2339 start = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_START]) / 1000; in nl80211_get_reg()2340 end = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_END]) / 1000; in nl80211_get_reg()2341 if (tb_rule[NL80211_ATTR_POWER_RULE_MAX_EIRP]) in nl80211_get_reg()2342 max_eirp = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_EIRP]) / 100; in nl80211_get_reg()2343 if (tb_rule[NL80211_ATTR_FREQ_RANGE_MAX_BW]) in nl80211_get_reg()2344 max_bw = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_MAX_BW]) / 1000; in nl80211_get_reg()[all …]