• Home
  • Raw
  • Download

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()
152 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
472 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) in set_dfs_state_freq() argument
482 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq); in set_dfs_state_freq()
485 if (chan->freq == freq) { in set_dfs_state_freq()
493 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq); in set_dfs_state_freq()
498 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, in set_dfs_state() argument
504 int frequency = freq; in set_dfs_state()
553 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, in dfs_are_channels_overlapped() argument
559 int n_chans, n_chans1, i, j, frequency = freq, radar_n_chans = 1; in dfs_are_channels_overlapped()
711 iface->freq = channel->freq; in hostapd_handle_dfs()
721 wpa_printf(MSG_DEBUG, "DFS start CAC on %d MHz", iface->freq); in hostapd_handle_dfs()
724 iface->freq, in hostapd_handle_dfs()
732 iface->freq, in hostapd_handle_dfs()
750 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, in hostapd_dfs_complete_cac() argument
756 success, freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_complete_cac()
767 set_dfs_state(iface, freq, ht_enabled, chan_offset, in hostapd_dfs_complete_cac()
803 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch_cac()
806 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch_cac()
867 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
883 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch()
892 channel->freq, in hostapd_dfs_start_channel_switch()
917 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
938 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, in hostapd_dfs_radar_detected() argument
946 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
956 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_radar_detected()
960 res = dfs_are_channels_overlapped(iface, freq, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
971 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, in hostapd_dfs_nop_finished() argument
977 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_nop_finished()
984 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_nop_finished()
1021 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, in hostapd_dfs_start_cac() argument
1028 freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2, 60); in hostapd_dfs_start_cac()
1058 if (ieee80211_is_dfs(iface->freq)) { in hostapd_handle_dfs_offload()
1060 __func__, iface->freq); in hostapd_handle_dfs_offload()
1066 __func__, iface->freq); in hostapd_handle_dfs_offload()