Lines Matching refs:survey
1215 struct freq_survey *survey) in hostapd_update_nf() argument
1218 chan->min_nf = survey->nf; in hostapd_update_nf()
1219 iface->lowest_nf = survey->nf; in hostapd_update_nf()
1222 chan->min_nf = survey->nf; in hostapd_update_nf()
1223 else if (survey->nf < chan->min_nf) in hostapd_update_nf()
1224 chan->min_nf = survey->nf; in hostapd_update_nf()
1225 if (survey->nf < iface->lowest_nf) in hostapd_update_nf()
1226 iface->lowest_nf = survey->nf; in hostapd_update_nf()
1235 struct freq_survey *survey; in hostapd_single_channel_get_survey() local
1238 survey = dl_list_first(&survey_res->survey_list, struct freq_survey, in hostapd_single_channel_get_survey()
1240 if (!survey || !survey->freq) in hostapd_single_channel_get_survey()
1243 chan = hostapd_get_mode_channel(iface, survey->freq); in hostapd_single_channel_get_survey()
1249 survey->freq, in hostapd_single_channel_get_survey()
1250 (unsigned long int) survey->channel_time, in hostapd_single_channel_get_survey()
1251 (unsigned long int) survey->channel_time_busy); in hostapd_single_channel_get_survey()
1253 if (survey->channel_time > iface->last_channel_time && in hostapd_single_channel_get_survey()
1254 survey->channel_time > survey->channel_time_busy) { in hostapd_single_channel_get_survey()
1255 dividend = survey->channel_time_busy - in hostapd_single_channel_get_survey()
1257 divisor = survey->channel_time - iface->last_channel_time; in hostapd_single_channel_get_survey()
1263 iface->last_channel_time = survey->channel_time; in hostapd_single_channel_get_survey()
1264 iface->last_channel_time_busy = survey->channel_time_busy; in hostapd_single_channel_get_survey()
1271 struct freq_survey *survey, *tmp; in hostapd_event_get_survey() local
1284 dl_list_for_each_safe(survey, tmp, &survey_results->survey_list, in hostapd_event_get_survey()
1286 chan = hostapd_get_mode_channel(iface, survey->freq); in hostapd_event_get_survey()
1292 dl_list_del(&survey->list); in hostapd_event_get_survey()
1293 dl_list_add_tail(&chan->survey_list, &survey->list); in hostapd_event_get_survey()
1295 hostapd_update_nf(iface, chan, survey); in hostapd_event_get_survey()