Lines Matching refs:survey

40  * 1. passive scans are used to collect survey data
41 * (it is assumed that scan trigger collection of survey data in driver)
49 * spend gathering survey data during hostapd startup. Short traffic bursts
70 * The survey interference factor is defined as the ratio of the
133 * ACS: Trying survey-based ACS
246 static int acs_survey_is_sufficient(struct freq_survey *survey);
251 struct freq_survey *survey, *tmp;
256 dl_list_for_each_safe(survey, tmp, &chan->survey_list,
258 dl_list_del(&survey->list);
259 os_free(survey);
294 acs_survey_interference_factor(struct freq_survey *survey, s8 min_nf)
298 if (survey->filled & SURVEY_HAS_CHAN_TIME_BUSY)
299 busy = survey->channel_time_busy;
300 else if (survey->filled & SURVEY_HAS_CHAN_TIME_RX)
301 busy = survey->channel_time_rx;
303 /* This shouldn't really happen as survey data is checked in
309 total = survey->channel_time;
311 if (survey->filled & SURVEY_HAS_CHAN_TIME_TX) {
312 busy -= survey->channel_time_tx;
313 total -= survey->channel_time_tx;
317 factor = pow(10, survey->nf / 5.0L) +
319 pow(2, pow(10, (long double) survey->nf / 10.0L) -
330 struct freq_survey *survey;
341 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list)
345 if (!acs_survey_is_sufficient(survey)) {
351 int_factor = acs_survey_interference_factor(survey,
356 survey->nf, (unsigned long) survey->channel_time,
357 (unsigned long) survey->channel_time_busy,
358 (unsigned long) survey->channel_time_rx);
406 static int acs_survey_is_sufficient(struct freq_survey *survey)
408 if (!(survey->filled & SURVEY_HAS_NF)) {
413 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
418 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
419 !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) {
431 struct freq_survey *survey;
434 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list)
436 if (acs_survey_is_sufficient(survey)) {
444 ret = 1; /* no survey list entries */
448 "ACS: Channel %d has insufficient survey data",
469 /* We need at least survey data for one channel */
571 * option (survey, BSS, spectral, ...). chan->interference factor must be
817 wpa_printf(MSG_DEBUG, "ACS: Trying survey-based ACS");
820 wpa_printf(MSG_ERROR, "ACS: Unable to collect survey data");
893 wpa_printf(MSG_DEBUG, "ACS: Using survey based algorithm (acs_num_scans=%d)",
898 wpa_printf(MSG_ERROR, "ACS: Failed to get survey data");