Lines Matching refs:freq
126 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument
131 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
159 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
485 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) in set_dfs_state_freq() argument
495 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq); in set_dfs_state_freq()
498 if (chan->freq == freq) { in set_dfs_state_freq()
506 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq); in set_dfs_state_freq()
511 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, in set_dfs_state() argument
517 int frequency = freq; in set_dfs_state()
566 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, in dfs_are_channels_overlapped() argument
572 int n_chans, n_chans1, i, j, frequency = freq, radar_n_chans = 1; in dfs_are_channels_overlapped()
724 iface->freq = channel->freq; in hostapd_handle_dfs()
734 wpa_printf(MSG_DEBUG, "DFS start CAC on %d MHz", iface->freq); in hostapd_handle_dfs()
737 iface->freq, in hostapd_handle_dfs()
745 iface->freq, in hostapd_handle_dfs()
780 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, in hostapd_dfs_complete_cac() argument
786 success, freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_complete_cac()
797 set_dfs_state(iface, freq, ht_enabled, chan_offset, in hostapd_dfs_complete_cac()
822 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq, in hostapd_dfs_pre_cac_expired() argument
828 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_pre_cac_expired()
834 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_pre_cac_expired()
865 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch_cac()
868 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch_cac()
936 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
952 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch()
961 channel->freq, in hostapd_dfs_start_channel_switch()
986 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
1007 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, in hostapd_dfs_radar_detected() argument
1015 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
1025 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_radar_detected()
1029 res = dfs_are_channels_overlapped(iface, freq, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
1040 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, in hostapd_dfs_nop_finished() argument
1046 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_nop_finished()
1053 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_nop_finished()
1090 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, in hostapd_dfs_start_cac() argument
1097 freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2, 60); in hostapd_dfs_start_cac()
1127 if (ieee80211_is_dfs(iface->freq, iface->hw_features, in hostapd_handle_dfs_offload()
1130 __func__, iface->freq); in hostapd_handle_dfs_offload()
1136 __func__, iface->freq); in hostapd_handle_dfs_offload()