Home | History | Annotate | Download | only in ap

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
64 * Survey interference factor implementation details
68 * The survey interference factor is defined as the ratio of the
131 * ACS: Trying survey-based ACS
132 * ACS: Survey analysis for channel 1 (2412 MHz)
139 * ACS: Survey analysis for channel 2 (2417 MHz)
146 * ACS: Survey analysis for channel 3 (2422 MHz)
153 * ACS: Survey analysis for channel 4 (2427 MHz)
160 * ACS: Survey analysis for channel 5 (2432 MHz)
167 * ACS: Survey analysis for channel 6 (2437 MHz)
174 * ACS: Survey analysis for channel 7 (2442 MHz)
181 * ACS: Survey analysis for channel 8 (2447 MHz)
188 * ACS: Survey analysis for channel 9 (2452 MHz)
195 * ACS: Survey analysis for channel 10 (2457 MHz)
202 * ACS: Survey analysis for channel 11 (2462 MHz)
209 * ACS: Survey analysis for channel 12 (2467 MHz)
216 * ACS: Survey analysis for channel 13 (2472 MHz)
223 * ACS: Survey analysis for selected bandwidth 20MHz
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
301 wpa_printf(MSG_ERROR, "ACS: Survey data missing");
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)) {
382 wpa_printf(MSG_ERROR, "ACS: Survey is missing noise floor");
386 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
387 wpa_printf(MSG_ERROR, "ACS: Survey is missing channel time");
391 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
392 !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) {
393 wpa_printf(MSG_ERROR, "ACS: Survey is missing RX and busy time (at least one is required)");
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",
439 wpa_printf(MSG_DEBUG, "ACS: Survey analysis for channel %d (%d MHz)",
473 * option (survey, BSS, spectral, ...). chan->interference factor must be
502 wpa_printf(MSG_DEBUG, "ACS: Survey analysis for selected bandwidth %d MHz",
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");