Lines Matching full:channels
134 * Get the number of concurrent channels that the HW can operate, but that are
299 * Search all social channels regardless of whether these have
2581 static int freq_included(const struct p2p_channels *channels, unsigned int freq)
2583 if (channels == NULL)
2585 return p2p_channels_includes_freq(channels, freq);
2633 const struct p2p_channels *channels,
2749 wpa_printf(MSG_DEBUG, "P2P: No extra channels available - trying to force channel to match a channel already used by one of the interfaces");
2762 } else if (!freq_included(channels, *force_freq)) {
2906 const struct p2p_channels *channels,
2969 freq_included(channels, neg_freq))
2972 freq_included(channels, peer_oper_freq))
2984 channels,
3002 reg->channel[reg->channels] = chan;
3003 reg->channels++;
3020 /* Operating class 81 - 2.4 GHz band channels 1..13 */
3022 chan->reg_class[cla].channels = 0;
3027 if (chan->reg_class[cla].channels)
3033 /* Operating class 115 - 5 GHz, channels 36-48 */
3035 chan->reg_class[cla].channels = 0;
3044 if (chan->reg_class[cla].channels)
3050 /* Operating class 124 - 5 GHz, channels 149,153,157,161 */
3052 chan->reg_class[cla].channels = 0;
3061 if (chan->reg_class[cla].channels)
3100 if (mode->channels[i].chan == chan) {
3102 *flags = mode->channels[i].flag;
3103 if (mode->channels[i].flag &
3107 if (mode->channels[i].flag & HOSTAPD_CHAN_NO_IR)
3144 * (these center frequencies are not actual channels, which makes
3146 * removing invalid channels.
3166 * In 80 MHz, the bandwidth "spans" 12 channels (e.g., 36-48),
3167 * so the center channel is 6 channels away from the start/end.
3189 return NOT_ALLOWED; /* Do not allow DFS channels for P2P */
3191 /* check all the channels are available */
3252 "of all supported channels; assume dualband "
3280 reg->channel[reg->channels] = ch;
3281 reg->channels++;
3291 cli_reg->channel[cli_reg->channels] = ch;
3292 cli_reg->channels++;
3296 wpa_hexdump(MSG_DEBUG, "P2P: Channels",
3297 reg->channel, reg->channels);
3300 wpa_hexdump(MSG_DEBUG, "P2P: Channels (client only)",
3301 cli_reg->channel, cli_reg->channels);
3940 if (wpas_p2p_setup_channels(wpa_s, &p2p.channels, &p2p.cli_channels)) {
3953 * Pick one of the social channels randomly as the listen
3959 "P2P: No social channels supported by the driver - do not enable P2P");
3978 * channels (1, 6, 11) or band 60 GHz social channel (2) if no
4177 * to scan channels for coex purposes before the BSS can be started.
4242 /* Multiple channels are supported and not all are in use */
4773 wpa_printf(MSG_DEBUG, "P2P: Cannot start P2P group on %u MHz as there are no available channels",
4799 "P2P: Current operating channels are not available for P2P. Try to use another channel");
4803 "P2P: All channels are in use and none of them are P2P enabled. Cannot start P2P group");
5158 const struct p2p_channels *channels)
5162 /* first try some random selection of the social channels */
5169 freq_included(channels, params->freq) &&
5174 /* try all channels in reg. class 81 */
5178 freq_included(channels, params->freq) &&
5183 /* try all channels in operating class 115 */
5187 freq_included(channels, params->freq) &&
5192 /* try all channels in operating class 124 */
5196 freq_included(channels, params->freq) &&
5204 freq_included(channels, params->freq) &&
5208 /* try all channels in reg. class 180 */
5212 freq_included(channels, params->freq) &&
5229 const struct p2p_channels *channels)
5240 if (!freq_included(channels, freq)) {
5251 freq_included(channels,
5263 freq_included(channels,
5272 freq_included(channels, wpa_s->best_overall_freq)) {
5280 freq_included(channels, wpa_s->best_24_freq)) {
5288 freq_included(channels, wpa_s->best_5_freq)) {
5293 channels))) {
5296 "channels", params->freq);
5299 if (wpas_p2p_select_freq_no_pref(wpa_s, params, channels) < 0)
5314 if (!freq && cand_freq > 0 && freq_included(channels, cand_freq)) {
5319 if (freq_included(channels, freqs[i].freq)) {
5329 wpa_printf(MSG_DEBUG, "P2P: Cannot force GO on any of the channels we are already using");
5333 wpa_printf(MSG_DEBUG, "P2P: Cannot force GO on any of the channels we are already using. Use one of the free channels");
5345 wpa_printf(MSG_DEBUG, "P2P: Cannot force GO on freq (%u MHz) as all the channels are in use", freq);
5349 wpa_printf(MSG_DEBUG, "P2P: Use one of the free channels");
5512 int vht, const struct p2p_channels *channels,
5561 (freq > 0 && !freq_included(channels, freq)))
5566 if (freq <= 0 || !freq_included(channels, freq)) {
5574 freq_included(channels, bss->freq))
5585 if (wpas_p2p_init_go_params(wpa_s, ¶ms, freq, ht40, vht, channels))
5609 p2p_channels_to_freqs(channels, params.freq_list, P2P_MAX_CHANNELS);
6553 * Pick one of the social channels randomly as the