Lines Matching defs:freq
69 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel)
71 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) ==
225 int freq = p2p_channel_to_freq(op->reg_class,
227 if (freq > 0 && freq_range_list_includes(list, freq)) {
272 unsigned int freq)
279 reg->channel[j]) == (int) freq)
287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq)
290 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0)
297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq)
300 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0)
304 !freq_range_list_includes(&p2p->no_go_freq, freq);
308 int p2p_supported_freq_cli(struct p2p_data *p2p, unsigned int freq)
311 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0)
324 int freq = 0;
332 freq = p2p_channel_to_freq(p2p->cfg->pref_chan[i].op_class,
334 if (p2p_channels_includes_freq(tmpc, freq))
335 return freq;
474 int freq;
479 freq = p2p_channel_to_freq(c->reg_class,
481 if (freq < 0)
485 if (freq_list[k] == freq)
491 freq_list[idx++] = freq;
527 if (is_6ghz_freq(pref_freq_list[i].freq)) {
529 pref_freq_list[i].freq);
570 (int) freq_list[i].freq)