• 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()
164 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
168 first_chan->freq + i * 20); in dfs_chan_range_available()
176 first_chan->freq + i * 20); in dfs_chan_range_available()
182 first_chan->freq + i * 20); in dfs_chan_range_available()
230 chan->freq, chan->chan); in dfs_find_channel()
238 chan->freq, chan->chan); in dfs_find_channel()
245 chan->freq, chan->chan); in dfs_find_channel()
251 chan->freq, chan->chan); in dfs_find_channel()
256 chan->freq, chan->chan); in dfs_find_channel()
514 chan->freq, chan->chan); in dfs_get_valid_channel()
543 chan2->freq, chan2->chan); in dfs_get_valid_channel()
568 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) in set_dfs_state_freq() argument
578 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq); in set_dfs_state_freq()
581 if (chan->freq == freq) { in set_dfs_state_freq()
589 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq); in set_dfs_state_freq()
594 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, in set_dfs_state() argument
600 int frequency = freq; in set_dfs_state()
660 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, in dfs_are_channels_overlapped() argument
666 int n_chans, n_chans1, i, j, frequency = freq, radar_n_chans = 1; in dfs_are_channels_overlapped()
759 if (is_6ghz_freq(iface->freq)) in hostapd_handle_dfs()
821 iface->freq = channel->freq; in hostapd_handle_dfs()
831 wpa_printf(MSG_DEBUG, "DFS start CAC on %d MHz", iface->freq); in hostapd_handle_dfs()
834 iface->freq, in hostapd_handle_dfs()
842 iface, iface->conf->hw_mode, iface->freq, iface->conf->channel, in hostapd_handle_dfs()
876 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, in hostapd_dfs_complete_cac() argument
882 success, freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_complete_cac()
893 set_dfs_state(iface, freq, ht_enabled, chan_offset, in hostapd_dfs_complete_cac()
918 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq, in hostapd_dfs_pre_cac_expired() argument
924 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_pre_cac_expired()
930 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_pre_cac_expired()
1005 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch_cac()
1008 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch_cac()
1084 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
1101 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch()
1117 channel->freq, in hostapd_dfs_start_channel_switch()
1146 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
1168 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, in hostapd_dfs_radar_detected() argument
1176 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
1186 res = set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_radar_detected()
1192 res = dfs_are_channels_overlapped(iface, freq, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
1203 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, in hostapd_dfs_nop_finished() argument
1209 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_nop_finished()
1216 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_nop_finished()
1253 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, in hostapd_dfs_start_cac() argument
1265 freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2, in hostapd_dfs_start_cac()
1297 if (ieee80211_is_dfs(iface->freq, iface->hw_features, in hostapd_handle_dfs_offload()
1300 __func__, iface->freq); in hostapd_handle_dfs_offload()
1306 __func__, iface->freq); in hostapd_handle_dfs_offload()
1355 if (center_freq - chan->freq < half_width && in hostapd_is_dfs_overlap()
1356 chan->freq - center_freq < half_width) in hostapd_is_dfs_overlap()