Lines Matching defs:survey

38  * 1. passive scans are used to collect survey data
39 * (it is assumed that scan trigger collection of survey data in driver)
47 * spend gathering survey data during hostapd startup. Short traffic bursts
68 * The survey interference factor is defined as the ratio of the
131 * ACS: Trying survey-based ACS
248 struct freq_survey *survey, *tmp;
253 dl_list_for_each_safe(survey, tmp, &chan->survey_list,
255 dl_list_del(&survey->list);
256 os_free(survey);
290 acs_survey_interference_factor(struct freq_survey *survey, s8 min_nf)
294 if (survey->filled & SURVEY_HAS_CHAN_TIME_BUSY)
295 busy = survey->channel_time_busy;
296 else if (survey->filled & SURVEY_HAS_CHAN_TIME_RX)
297 busy = survey->channel_time_rx;
299 /* This shouldn't really happen as survey data is checked in
305 total = survey->channel_time;
307 if (survey->filled & SURVEY_HAS_CHAN_TIME_TX) {
308 busy -= survey->channel_time_tx;
309 total -= survey->channel_time_tx;
313 factor = pow(10, survey->nf / 5.0L) +
315 pow(2, pow(10, (long double) survey->nf / 10.0L) -
326 struct freq_survey *survey;
338 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list)
340 int_factor = acs_survey_interference_factor(survey,
345 survey->nf, (unsigned long) survey->channel_time,
346 (unsigned long) survey->channel_time_busy,
347 (unsigned long) survey->channel_time_rx);
379 static int acs_survey_is_sufficient(struct freq_survey *survey)
381 if (!(survey->filled & SURVEY_HAS_NF)) {
386 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
391 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
392 !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) {
405 struct freq_survey *survey;
412 dl_list_for_each(survey, &chan->survey_list,
415 if (!acs_survey_is_sufficient(survey)) {
416 wpa_printf(MSG_ERROR, "ACS: Channel %d has insufficient survey data",
473 * option (survey, BSS, spectral, ...). chan->interference factor must be
612 wpa_printf(MSG_DEBUG, "ACS: Trying survey-based ACS");
615 wpa_printf(MSG_ERROR, "ACS: Unable to collect survey data");
694 wpa_printf(MSG_DEBUG, "ACS: Using survey based algorithm (acs_num_scans=%d)",
699 wpa_printf(MSG_ERROR, "ACS: Failed to get survey data");