Lines Matching full:channel
60 * channel for CSA, unless they are available for immediate use.
80 * The tables contain first valid channel number based on channel width.
81 * We will also choose this first channel as the control one.
215 wpa_printf(MSG_DEBUG, "Adding channel: %d", chan->chan);
263 /* Return start channel idx we will use for mode->channels[idx] */
268 int channel_no = iface->conf->channel;
335 mode->num_channels, channel_no, iface->conf->channel,
341 wpa_printf(MSG_DEBUG, "Available channel: %d",
350 /* At least one channel have radar flag */
354 struct hostapd_channel_data *channel;
361 channel = &mode->channels[start_chan_idx + i];
362 if (channel->flag & HOSTAPD_CHAN_RADAR)
374 struct hostapd_channel_data *channel;
381 channel = &mode->channels[start_chan_idx + i];
383 if (channel->flag & HOSTAPD_CHAN_DISABLED)
386 if (!(channel->flag & HOSTAPD_CHAN_RADAR))
389 if ((channel->flag & HOSTAPD_CHAN_DFS_MASK) !=
398 /* At least one channel unavailable */
403 struct hostapd_channel_data *channel;
410 channel = &mode->channels[start_chan_idx + i];
411 if (channel->flag & HOSTAPD_CHAN_DISABLED)
413 if ((channel->flag & HOSTAPD_CHAN_DFS_MASK) ==
435 wpa_printf(MSG_DEBUG, "DFS: Selecting random channel");
489 return 1; /* Channel found */
568 /* Check we are on DFS channel(s) */
621 struct hostapd_channel_data *channel;
629 channel = &mode->channels[start_chan_idx + i];
630 if (!(channel->flag & HOSTAPD_CHAN_RADAR))
632 if (channel->dfs_cac_ms > cac_time_ms)
633 cac_time_ms = channel->dfs_cac_ms;
642 * 1 - continue channel/ap setup
643 * 0 - channel/ap setup will be continued after CAC
648 struct hostapd_channel_data *channel;
665 /* Get start (first) channel for current configuration */
697 wpa_printf(MSG_DEBUG, "DFS %d chans unavailable - choose other channel: %s",
703 channel = dfs_get_valid_channel(iface, &sec, &cf1, &cf2,
705 if (!channel) {
706 wpa_printf(MSG_ERROR, "could not get valid channel");
711 iface->freq = channel->freq;
712 iface->conf->channel = channel->chan;
725 iface->conf->channel, iface->conf->secondary_channel,
733 iface->conf->channel,
781 struct hostapd_channel_data *channel;
790 channel = dfs_get_valid_channel(iface, &secondary_channel,
795 if (!channel) {
796 wpa_printf(MSG_ERROR, "No valid channel available");
800 wpa_printf(MSG_DEBUG, "DFS will switch to a new channel %d",
801 channel->chan);
803 "freq=%d chan=%d sec_chan=%d", channel->freq,
804 channel->chan, secondary_channel);
806 iface->freq = channel->freq;
807 iface->conf->channel = channel->chan;
822 struct hostapd_channel_data *channel;
843 /* Perform channel switch/CSA */
844 channel = dfs_get_valid_channel(iface, &secondary_channel,
849 if (!channel) {
851 * If there is no channel to switch immediately to, check if
852 * there is another channel where we can switch even if it
856 channel = dfs_get_valid_channel(iface, &secondary_channel,
860 if (!channel) {
867 iface->freq = channel->freq;
868 iface->conf->channel = channel->chan;
880 wpa_printf(MSG_DEBUG, "DFS will switch to a new channel %d",
881 channel->chan);
883 "freq=%d chan=%d sec_chan=%d", channel->freq,
884 channel->chan, secondary_channel);
892 channel->freq,
893 channel->chan,
917 iface->freq = channel->freq;
918 iface->conf->channel = channel->chan;
930 /* Channel configuration will be updated once CSA completes and
933 wpa_printf(MSG_DEBUG, "DFS waiting channel switch event");
964 /* radar detected while operating, switch the channel. */
1003 /* Get start (first) channel for current configuration */
1036 * 2 - continue channel/AP setup for non-DFS channel
1037 * 1 - continue channel/AP setup for DFS channel
1038 * 0 - channel/AP setup will be continued after CAC
1048 * callback to continue AP/channel setup. Reset the CAC start flag and
1065 "%s: freq %d MHz does not require DFS. Continue channel/AP setup",