Lines Matching refs:freq
69 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel) in p2p_freq_to_channel() argument
71 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) == in p2p_freq_to_channel()
225 int freq = p2p_channel_to_freq(op->reg_class, in p2p_channels_remove_freqs() local
227 if (freq > 0 && freq_range_list_includes(list, freq)) { in p2p_channels_remove_freqs()
272 unsigned int freq) in p2p_channels_includes_freq() argument
279 reg->channel[j]) == (int) freq) in p2p_channels_includes_freq()
287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq() argument
290 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq()
297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_go() argument
300 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq_go()
304 !freq_range_list_includes(&p2p->no_go_freq, freq); in p2p_supported_freq_go()
308 int p2p_supported_freq_cli(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_cli() argument
311 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq_cli()
324 int freq = 0; in p2p_get_pref_freq() local
332 freq = p2p_channel_to_freq(p2p->cfg->pref_chan[i].op_class, in p2p_get_pref_freq()
334 if (p2p_channels_includes_freq(tmpc, freq)) in p2p_get_pref_freq()
335 return freq; in p2p_get_pref_freq()
461 int freq; in p2p_channels_to_freqs() local
466 freq = p2p_channel_to_freq(c->reg_class, in p2p_channels_to_freqs()
468 if (freq < 0) in p2p_channels_to_freqs()
472 if (freq_list[k] == freq) in p2p_channels_to_freqs()
478 freq_list[idx++] = freq; in p2p_channels_to_freqs()