Lines Matching full:freq
159 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument
164 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
197 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
201 first_chan->freq + i * 20); in dfs_chan_range_available()
209 first_chan->freq + i * 20); in dfs_chan_range_available()
215 first_chan->freq + i * 20); in dfs_chan_range_available()
263 chan->freq, chan->chan); in dfs_find_channel()
271 chan->freq, chan->chan); in dfs_find_channel()
278 chan->freq, chan->chan); in dfs_find_channel()
291 chan->freq, chan->chan); in dfs_find_channel()
296 chan->freq, chan->chan); in dfs_find_channel()
563 chan->freq, chan->chan); in dfs_get_valid_channel()
593 chan2->freq, chan2->chan); in dfs_get_valid_channel()
632 iface->freq = channel->freq; in dfs_set_valid_channel()
642 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) in set_dfs_state_freq() argument
652 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq); in set_dfs_state_freq()
655 if (chan->freq == freq) { in set_dfs_state_freq()
663 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq); in set_dfs_state_freq()
668 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, in set_dfs_state() argument
674 int frequency = freq; in set_dfs_state()
718 wpa_printf(MSG_DEBUG, "DFS freq: %dMHz, n_chans: %d", frequency, in set_dfs_state()
734 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, in dfs_are_channels_overlapped() argument
740 int n_chans, n_chans1, i, j, frequency = freq, radar_n_chans = 1; in dfs_are_channels_overlapped()
834 if (is_6ghz_freq(iface->freq)) in hostapd_handle_dfs()
894 wpa_printf(MSG_DEBUG, "DFS start CAC on %d MHz%s", iface->freq, in hostapd_handle_dfs()
897 "freq=%d chan=%d sec_chan=%d, width=%d, seg0=%d, seg1=%d, cac_time=%ds", in hostapd_handle_dfs()
898 iface->freq, in hostapd_handle_dfs()
906 iface, iface->conf->hw_mode, iface->freq, iface->conf->channel, in hostapd_handle_dfs()
925 iface->radar_background.freq = iface->freq; in hostapd_handle_dfs()
965 int channel, int freq, in hostapd_dfs_request_channel_switch() argument
980 "freq=%d chan=%d sec_chan=%d", freq, channel, in hostapd_dfs_request_channel_switch()
1001 freq, channel, in hostapd_dfs_request_channel_switch()
1019 "DFS failed to calculate CSA freq params"); in hostapd_dfs_request_channel_switch()
1034 iface->freq = freq; in hostapd_dfs_request_channel_switch()
1084 channel->freq, channel->chan, in hostapd_dfs_update_background_chain()
1098 iface->radar_background.freq = channel->freq; in hostapd_dfs_update_background_chain()
1105 __func__, channel->chan, channel->freq); in hostapd_dfs_update_background_chain()
1110 hostapd_dfs_is_background_event(struct hostapd_iface *iface, int freq) in hostapd_dfs_is_background_event() argument
1114 iface->radar_background.freq == freq; in hostapd_dfs_is_background_event()
1124 iface->freq = iface->radar_background.freq; in hostapd_dfs_start_channel_switch_background()
1135 iface, iface->conf->channel, iface->freq, in hostapd_dfs_start_channel_switch_background()
1142 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, in hostapd_dfs_complete_cac() argument
1147 "success=%d freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d radar_detected=%d", in hostapd_dfs_complete_cac()
1148 success, freq, ht_enabled, chan_offset, chan_width, cf1, cf2, in hostapd_dfs_complete_cac()
1168 set_dfs_state(iface, freq, ht_enabled, chan_offset, in hostapd_dfs_complete_cac()
1178 if (hostapd_dfs_is_background_event(iface, freq)) { in hostapd_dfs_complete_cac()
1203 } else if (hostapd_dfs_is_background_event(iface, freq)) { in hostapd_dfs_complete_cac()
1213 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq, in hostapd_dfs_pre_cac_expired() argument
1218 "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d", in hostapd_dfs_pre_cac_expired()
1219 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_pre_cac_expired()
1225 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_pre_cac_expired()
1301 "freq=%d chan=%d sec_chan=%d", channel->freq, in hostapd_dfs_start_channel_switch_cac()
1304 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch_cac()
1320 int freq) in hostapd_dfs_background_start_channel_switch() argument
1334 if (hostapd_dfs_is_background_event(iface, freq)) { in hostapd_dfs_background_start_channel_switch()
1421 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
1436 channel->freq, in hostapd_dfs_start_channel_switch()
1444 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, in hostapd_dfs_radar_detected() argument
1449 "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d", in hostapd_dfs_radar_detected()
1450 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_radar_detected()
1462 if (!set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_radar_detected()
1466 if (!hostapd_dfs_is_background_event(iface, freq)) { in hostapd_dfs_radar_detected()
1468 if (!dfs_are_channels_overlapped(iface, freq, chan_width, in hostapd_dfs_radar_detected()
1473 if (hostapd_dfs_background_start_channel_switch(iface, freq)) { in hostapd_dfs_radar_detected()
1482 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, in hostapd_dfs_nop_finished() argument
1487 "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d", in hostapd_dfs_nop_finished()
1488 freq, ht_enabled, chan_offset, chan_width, cf1, cf2); in hostapd_dfs_nop_finished()
1495 set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width, in hostapd_dfs_nop_finished()
1539 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, in hostapd_dfs_start_cac() argument
1543 if (hostapd_dfs_is_background_event(iface, freq)) { in hostapd_dfs_start_cac()
1562 "freq=%d chan=%d chan_offset=%d width=%d seg0=%d " in hostapd_dfs_start_cac()
1564 freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2, in hostapd_dfs_start_cac()
1566 hostapd_dfs_is_background_event(iface, freq) ? in hostapd_dfs_start_cac()
1603 "%s: freq %d MHz requires DFS for %d chans", in hostapd_handle_dfs_offload()
1604 __func__, iface->freq, dfs_res); in hostapd_handle_dfs_offload()
1609 "%s: freq %d MHz does not require DFS. Continue channel/AP setup", in hostapd_handle_dfs_offload()
1610 __func__, iface->freq); in hostapd_handle_dfs_offload()
1659 if (center_freq - chan->freq < half_width && in hostapd_is_dfs_overlap()
1660 chan->freq - center_freq < half_width) in hostapd_is_dfs_overlap()