Lines Matching refs:tb_freq
85 struct nlattr *tb_freq[NL80211_FREQUENCY_ATTR_MAX + 1]; in print_phy_handler() local
171 nla_parse(tb_freq, NL80211_FREQUENCY_ATTR_MAX, nla_data(nl_freq), in print_phy_handler()
173 if (!tb_freq[NL80211_FREQUENCY_ATTR_FREQ]) in print_phy_handler()
175 freq = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_FREQ]); in print_phy_handler()
178 if (tb_freq[NL80211_FREQUENCY_ATTR_MAX_TX_POWER] && in print_phy_handler()
179 !tb_freq[NL80211_FREQUENCY_ATTR_DISABLED]) in print_phy_handler()
180 printf(" (%.1f dBm)", 0.01 * nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_MAX_TX_POWER])); in print_phy_handler()
183 if (tb_freq[NL80211_FREQUENCY_ATTR_DISABLED]) { in print_phy_handler()
189 if (tb_freq[NL80211_FREQUENCY_ATTR_NO_IR] && tb_freq[__NL80211_FREQUENCY_ATTR_NO_IBSS]) { in print_phy_handler()
191 } else if (tb_freq[NL80211_FREQUENCY_ATTR_PASSIVE_SCAN]) { in print_phy_handler()
193 } else if (tb_freq[__NL80211_FREQUENCY_ATTR_NO_IBSS]){ in print_phy_handler()
197 if (tb_freq[NL80211_FREQUENCY_ATTR_RADAR]) in print_phy_handler()
204 if (!tb_freq[NL80211_FREQUENCY_ATTR_DISABLED] && tb_freq[NL80211_FREQUENCY_ATTR_DFS_STATE]) { in print_phy_handler()
205 enum nl80211_dfs_state state = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_STATE]); in print_phy_handler()
209 if (tb_freq[NL80211_FREQUENCY_ATTR_DFS_TIME]) { in print_phy_handler()
210 time = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_TIME]); in print_phy_handler()
214 if (tb_freq[NL80211_FREQUENCY_ATTR_DFS_CAC_TIME]) in print_phy_handler()
216 nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_CAC_TIME])); in print_phy_handler()