• Home
  • Raw
  • Download

Lines Matching refs:survey

246 static int acs_survey_is_sufficient(struct freq_survey *survey);
251 struct freq_survey *survey, *tmp; in acs_clean_chan_surveys() local
256 dl_list_for_each_safe(survey, tmp, &chan->survey_list, in acs_clean_chan_surveys()
258 dl_list_del(&survey->list); in acs_clean_chan_surveys()
259 os_free(survey); in acs_clean_chan_surveys()
294 acs_survey_interference_factor(struct freq_survey *survey, s8 min_nf) in acs_survey_interference_factor() argument
298 if (survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) in acs_survey_interference_factor()
299 busy = survey->channel_time_busy; in acs_survey_interference_factor()
300 else if (survey->filled & SURVEY_HAS_CHAN_TIME_RX) in acs_survey_interference_factor()
301 busy = survey->channel_time_rx; in acs_survey_interference_factor()
309 total = survey->channel_time; in acs_survey_interference_factor()
311 if (survey->filled & SURVEY_HAS_CHAN_TIME_TX) { in acs_survey_interference_factor()
312 busy -= survey->channel_time_tx; in acs_survey_interference_factor()
313 total -= survey->channel_time_tx; in acs_survey_interference_factor()
317 factor = pow(10, survey->nf / 5.0L) + in acs_survey_interference_factor()
319 pow(2, pow(10, (long double) survey->nf / 10.0L) - in acs_survey_interference_factor()
330 struct freq_survey *survey; in acs_survey_chan_interference_factor() local
341 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list) in acs_survey_chan_interference_factor()
345 if (!acs_survey_is_sufficient(survey)) { in acs_survey_chan_interference_factor()
351 int_factor = acs_survey_interference_factor(survey, in acs_survey_chan_interference_factor()
356 survey->nf, (unsigned long) survey->channel_time, in acs_survey_chan_interference_factor()
357 (unsigned long) survey->channel_time_busy, in acs_survey_chan_interference_factor()
358 (unsigned long) survey->channel_time_rx); in acs_survey_chan_interference_factor()
406 static int acs_survey_is_sufficient(struct freq_survey *survey) in acs_survey_is_sufficient() argument
408 if (!(survey->filled & SURVEY_HAS_NF)) { in acs_survey_is_sufficient()
413 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) { in acs_survey_is_sufficient()
418 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) && in acs_survey_is_sufficient()
419 !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) { in acs_survey_is_sufficient()
431 struct freq_survey *survey; in acs_survey_list_is_sufficient() local
434 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list) in acs_survey_list_is_sufficient()
436 if (acs_survey_is_sufficient(survey)) { in acs_survey_list_is_sufficient()