Lines Matching refs:freq
126 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx)
131 if (mode->channels[i].freq == freq)
159 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20,
485 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state)
495 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq);
498 if (chan->freq == freq) {
506 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq);
511 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled,
517 int frequency = freq;
555 wpa_printf(MSG_DEBUG, "DFS freq: %dMHz, n_chans: %d", frequency,
566 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq,
572 int n_chans, n_chans1, i, j, frequency = freq, radar_n_chans = 1;
724 iface->freq = channel->freq;
734 wpa_printf(MSG_DEBUG, "DFS start CAC on %d MHz", iface->freq);
736 "freq=%d chan=%d sec_chan=%d, width=%d, seg0=%d, seg1=%d, cac_time=%ds",
737 iface->freq,
745 iface, iface->conf->hw_mode, iface->freq, iface->conf->channel,
779 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
784 "success=%d freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
785 success, freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
796 set_dfs_state(iface, freq, ht_enabled, chan_offset,
821 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
826 "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
827 freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
833 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width,
864 "freq=%d chan=%d sec_chan=%d", channel->freq,
867 iface->freq = channel->freq;
936 iface->freq = channel->freq;
952 "freq=%d chan=%d sec_chan=%d", channel->freq,
961 channel->freq,
974 wpa_printf(MSG_ERROR, "DFS failed to calculate CSA freq params");
988 iface->freq = channel->freq;
1009 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
1016 "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
1017 freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
1027 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width,
1031 res = dfs_are_channels_overlapped(iface, freq, chan_width, cf1, cf2);
1042 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
1047 "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
1048 freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
1055 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width,
1092 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
1097 "freq=%d chan=%d chan_offset=%d width=%d seg0=%d "
1099 freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2, 60);
1129 if (ieee80211_is_dfs(iface->freq, iface->hw_features,
1131 wpa_printf(MSG_DEBUG, "%s: freq %d MHz requires DFS",
1132 __func__, iface->freq);
1137 "%s: freq %d MHz does not require DFS. Continue channel/AP setup",
1138 __func__, iface->freq);