Lines Matching full:channel
52 * p2p_channel_to_freq - Convert channel info to frequency
54 * @channel: Channel number
55 * Returns: Frequency in MHz or -1 if the specified channel is unknown
57 int p2p_channel_to_freq(int op_class, int channel) in p2p_channel_to_freq() argument
59 return ieee80211_chan_to_freq(NULL, op_class, channel); in p2p_channel_to_freq()
64 * p2p_freq_to_channel - Convert frequency into channel info
66 * @channel: Buffer for returning channel number
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()
89 if (a->channel[i] != b->channel[j]) in p2p_reg_class_intersect()
91 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect()
101 * p2p_channels_intersect - Intersection of supported channel lists
145 if (b_cl->channel[i] == cl->channel[j]) in p2p_op_class_union()
151 cl->channel[cl->channels++] = b_cl->channel[i]; in p2p_op_class_union()
158 * p2p_channels_union_inplace - Inplace union of channel lists
159 * @res: Input data and place for returning union of the channel sets
197 * p2p_channels_union - Union of channel lists
226 op->channel[c]); in p2p_channels_remove_freqs()
229 os_memmove(&op->channel[c], in p2p_channels_remove_freqs()
230 &op->channel[c + 1], in p2p_channels_remove_freqs()
248 * p2p_channels_includes - Check whether a channel is included in the list
250 * @reg_class: Regulatory class of the channel to search
251 * @channel: Channel number of the channel to search
252 * Returns: 1 if channel was found or 0 if not
255 u8 channel) in p2p_channels_includes() argument
263 if (reg->channel[j] == channel) in p2p_channels_includes()
279 reg->channel[j]) == (int) freq) in p2p_channels_includes_freq()
362 c->channel[j]); in p2p_channels_dump()
403 c->channel, c->channels); in p2p_channel_select()
425 * channel is not allowed by p2p_channels_includes() rules. However, it in p2p_channel_random_social()
427 * here for social channel selection unless explicitly disallowed in the in p2p_channel_random_social()
480 c->channel[j]); in p2p_channels_to_freqs()
528 wpa_printf(MSG_DEBUG, "P2P: Remove 6 GHz channel %d", in p2p_remove_6ghz_channels()
543 * @freq_list: Weighted preferred channel list
559 static int p2p_check_pref_channel(int channel, u8 op_class, in p2p_check_pref_channel() argument
565 /* If the channel is present in the preferred channel list, check if it in p2p_check_pref_channel()
569 if (p2p_channel_to_freq(op_class, channel) != in p2p_check_pref_channel()
596 if (p2p_check_pref_channel(reg->channel[j], in p2p_pref_channel_filter()
603 res_reg->channel[res_reg->channels++] = in p2p_pref_channel_filter()
604 reg->channel[j]; in p2p_pref_channel_filter()