Lines Matching defs:channel

58  * channel (and if the driver supports channel switch).
237 wpa_printf(MSG_DEBUG, "P2P: Ignore own channel preference %d MHz due to p2p_ignore_shared_freq=1 configuration",
342 * been disabled for P2P operating channel use to avoid missing
2263 /* Inform driver of the operating channel of GO. */
2529 "to remain on channel (%u MHz) for Listen "
3024 wpa_printf(MSG_DEBUG, "P2P: Trying to prefer a channel already used by one of the interfaces");
3029 wpa_printf(MSG_DEBUG, "P2P: No extra channels available - trying to force channel to match a channel already used by one of the interfaces");
3040 "figure out the best channel to use");
3047 "figure out the best channel to use",
3293 * the persistent group so that we will remain on the current channel to
3296 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: 50 ms wait on current channel before "
3337 reg->channel[reg->channels] = chan;
3435 u8 channel)
3446 * so the center channel is 6 channels away from the start/end.
3448 if (channel >= center_channels[i] - 6 &&
3449 channel <= center_channels[i] + 6)
3458 u8 channel, u8 bw)
3464 center_chan = wpas_p2p_get_center_80mhz(wpa_s, mode, channel);
3496 u8 channel)
3507 * so the center channel is 14 channels away from the start/end.
3509 if (channel >= center_channels[i] - 14 &&
3510 channel <= center_channels[i] + 14)
3519 u8 channel, u8 bw)
3525 center_chan = wpas_p2p_get_center_160mhz(wpa_s, mode, channel);
3565 u8 channel, u8 bw)
3570 res2 = res = has_channel(wpa_s->global, mode, channel, &flag);
3574 res2 = has_channel(wpa_s->global, mode, channel - 4, NULL);
3578 res2 = has_channel(wpa_s->global, mode, channel + 4, NULL);
3580 res2 = wpas_p2p_verify_80mhz(wpa_s, mode, channel, bw);
3582 res2 = wpas_p2p_verify_160mhz(wpa_s, mode, channel, bw);
3633 reg->channel[reg->channels] = ch;
3644 cli_reg->channel[cli_reg->channels] = ch;
3650 reg->channel, reg->channels);
3654 cli_reg->channel, cli_reg->channels);
3666 struct hostapd_hw_modes *mode, u8 channel)
3681 ch != channel)
3693 struct hostapd_hw_modes *mode, u8 channel)
3695 if (!wpas_p2p_verify_channel(wpa_s, mode, channel, BW80))
3698 return wpas_p2p_get_center_80mhz(wpa_s, mode, channel);
3703 struct hostapd_hw_modes *mode, u8 channel)
3705 if (!wpas_p2p_verify_channel(wpa_s, mode, channel, BW160))
3707 return wpas_p2p_get_center_160mhz(wpa_s, mode, channel);
4501 "P2P: Failed to configure supported channel list");
4508 p2p.channel = wpa_s->conf->p2p_listen_channel;
4513 * channel.
4516 &p2p.channel,
4526 wpa_printf(MSG_DEBUG, "P2P: Own listen channel: %d:%d",
4527 p2p.reg_class, p2p.channel);
4534 wpa_printf(MSG_DEBUG, "P2P: Configured operating channel: "
4539 * Use random operation channel from 2.4 GHz band social
4540 * channels (1, 6, 11) or band 60 GHz social channel (2) if no
4547 "P2P: Failed to select random social channel as operation channel");
4554 wpa_printf(MSG_DEBUG, "P2P: Random operating channel: "
5133 * and use a single channel scan on if possible.
5290 wpa_printf(MSG_DEBUG, "P2P: Cancel remain-on-channel prior to "
5353 * If freq is a DFS channel and DFS is offloaded
5357 "P2P: The forced channel for GO (%u MHz) is DFS, and DFS is offloaded to the driver",
5361 "P2P: The forced channel (%u MHz) is not supported for P2P uses",
5380 "requested channel (%u MHz)", freq);
5443 "P2P: Current operating channels are not available for P2P. Try to use another channel");
5478 * @ht40: Start GO with 40 MHz channel width
5485 * failure, -2 on failure due to channel not currently available,
5486 * -3 if forced channel is not supported
5641 * wpas_p2p_remain_on_channel_cb - Indication of remain-on-channel start
5643 * @freq: Frequency of the channel in MHz
5644 * @duration: Duration of the stay on the channel in milliseconds
5647 * requested remain-on-channel duration.
5654 wpa_printf(MSG_DEBUG, "P2P: remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d roc_waiting_drv_freq=%d freq=%u duration=%u)",
5663 wpa_printf(MSG_DEBUG, "P2P: Ignore remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d freq=%u duration=%u)",
5681 * wpas_p2p_cancel_remain_on_channel_cb - Remain-on-channel timeout
5683 * @freq: Frequency of the channel in MHz
5685 * This callback is called when the driver indicates that a remain-on-channel
5686 * operation has been completed, i.e., the duration on the requested channel
5692 wpa_printf(MSG_DEBUG, "P2P: Cancel remain-on-channel callback "
5805 "channel: %d MHz", freq);
5811 "channel: %d MHz", freq);
5823 "channel: %d MHz", freq);
5830 "5 GHz channel for P2P group");
5834 "channel: %d MHz", freq);
5843 * If freq is a DFS channel and DFS is offloaded to the
5847 "%s: The forced channel for GO (%u MHz) is DFS, and DFS is offloaded",
5851 wpa_printf(MSG_DEBUG, "P2P: The forced channel for GO "
5897 /* try social channel class 180 channel 2 */
5938 wpa_printf(MSG_DEBUG, "P2P: No 2.4, 5, or 60 GHz channel allowed");
6022 * If freq is a DFS channel and DFS is offloaded
6026 "P2P: %s: The forced channel for GO (%u MHz) requires DFS and DFS is offloaded",
6030 "P2P: The forced channel for GO (%u MHz) is not supported for P2P uses",
6054 "P2P: force GO freq (%d MHz) on a free channel",
6127 "channel %d MHz", params->freq);
6137 "channel %d MHz", params->freq);
6147 "channel %d MHz", params->freq);
6160 /* Try using a channel that allows VHT to be used with 80 MHz */
6185 /* Try using a channel that allows HT to be used with 40 MHz on the same
6248 /* no preference, select some channel */
6322 * @ht40: Start GO with 40 MHz channel width
6324 * @vht_chwidth: channel bandwidth for GO operating with VHT support
6932 * remain-on-channel operation while the driver is still running the
7123 wpa_printf(MSG_DEBUG, "P2P: Ignore own channel preference %d MHz for invitation due to p2p_ignore_shared_freq=1 configuration",
7516 u8 reg_class, channel;
7524 channel = wpa_s->conf->p2p_listen_channel;
7530 * listen channel.
7533 channel = 1;
7535 channel = 1 + (r % 3) * 5;
7538 ret = p2p_set_listen_channel(p2p, reg_class, channel,
7541 wpa_printf(MSG_ERROR, "P2P: Own listen channel update "
7556 * Use random operation channel from (1, 6, 11)
7568 wpa_printf(MSG_ERROR, "P2P: Own oper channel update "
7575 wpa_printf(MSG_ERROR, "P2P: Preferred channel list "
7580 wpa_printf(MSG_ERROR, "P2P: No GO channel list "
7781 "channel list");
7791 * using a channel that is no longer valid for P2P use. It is also
8398 wpa_printf(MSG_DEBUG, "P2P: Removing P2P connection due to single channel concurrent mode frequency conflict");
9072 * If possible, optimize the Listen channel to be a channel that is
9095 "P2P: Update Listen channel to %u based on operating channel",
9118 * when we have a running GO and a BSS on a DFS channel.
9277 * First, try a channel switch flow. If it is not supported or fails,
9310 * to move the GO to a channel that is currently used by some other
9334 /* The channel is invalid, must change it */
9383 * The channel is valid, or we are going to have a policy move, so
9453 * The GO was just started or completed channel switch, no need
9523 wpa_printf(MSG_ERROR, "P2P: Input channel not supported: %u",