• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/wpa/src/ap/

Lines Matching refs:mode

126 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx)
130 for (i = first_chan_idx; i < mode->num_channels; i++) {
131 if (mode->channels[i].freq == freq)
132 return &mode->channels[i];
139 static int dfs_chan_range_available(struct hostapd_hw_modes *mode,
147 if (first_chan_idx + num_chans > mode->num_channels)
150 first_chan = &mode->channels[first_chan_idx];
159 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20,
198 struct hostapd_hw_modes *mode;
202 mode = iface->current_mode;
206 for (i = 0; i < mode->num_channels; i++) {
207 chan = &mode->channels[i];
217 if (!dfs_chan_range_available(mode, i, n_chans, skip_radar))
276 /* Return start channel idx we will use for mode->channels[idx] */
279 struct hostapd_hw_modes *mode;
319 mode = iface->current_mode;
320 for (i = 0; i < mode->num_channels; i++) {
321 chan = &mode->channels[i];
332 mode = iface->current_mode;
333 for (i = 0; i < mode->num_channels; i++) {
334 chan = &mode->channels[i];
348 mode->num_channels, channel_no, iface->conf->channel,
353 for (i = 0; i < mode->num_channels; i++) {
355 mode->channels[i].chan);
368 struct hostapd_hw_modes *mode;
371 mode = iface->current_mode;
374 channel = &mode->channels[start_chan_idx + i];
388 struct hostapd_hw_modes *mode;
391 mode = iface->current_mode;
394 channel = &mode->channels[start_chan_idx + i];
417 struct hostapd_hw_modes *mode;
420 mode = iface->current_mode;
423 channel = &mode->channels[start_chan_idx + i];
442 struct hostapd_hw_modes *mode;
456 mode = iface->current_mode;
457 if (mode->mode != HOSTAPD_MODE_IEEE80211A)
487 struct hostapd_hw_modes *mode;
491 mode = iface->current_mode;
492 if (mode == NULL)
516 struct hostapd_hw_modes *mode;
520 mode = iface->current_mode;
521 if (mode == NULL)
524 if (mode->mode != HOSTAPD_MODE_IEEE80211A) {
570 struct hostapd_hw_modes *mode;
577 mode = iface->current_mode;
614 chan = &mode->channels[start_chan_idx + i];
635 struct hostapd_hw_modes *mode;
639 mode = iface->current_mode;
642 channel = &mode->channels[start_chan_idx + i];
667 * This can happen with drivers that do not provide mode
1071 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A)