• Home
  • Raw
  • Download

Lines Matching refs:survey

245 static int acs_survey_is_sufficient(struct freq_survey *survey);
250 struct freq_survey *survey, *tmp; in acs_clean_chan_surveys() local
255 dl_list_for_each_safe(survey, tmp, &chan->survey_list, in acs_clean_chan_surveys()
257 dl_list_del(&survey->list); in acs_clean_chan_surveys()
258 os_free(survey); in acs_clean_chan_surveys()
293 acs_survey_interference_factor(struct freq_survey *survey, s8 min_nf) in acs_survey_interference_factor() argument
297 if (survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) in acs_survey_interference_factor()
298 busy = survey->channel_time_busy; in acs_survey_interference_factor()
299 else if (survey->filled & SURVEY_HAS_CHAN_TIME_RX) in acs_survey_interference_factor()
300 busy = survey->channel_time_rx; in acs_survey_interference_factor()
308 total = survey->channel_time; in acs_survey_interference_factor()
310 if (survey->filled & SURVEY_HAS_CHAN_TIME_TX) { in acs_survey_interference_factor()
311 busy -= survey->channel_time_tx; in acs_survey_interference_factor()
312 total -= survey->channel_time_tx; in acs_survey_interference_factor()
316 factor = pow(10, survey->nf / 5.0L) + in acs_survey_interference_factor()
318 pow(2, pow(10, (long double) survey->nf / 10.0L) - in acs_survey_interference_factor()
329 struct freq_survey *survey; in acs_survey_chan_interference_factor() local
340 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list) in acs_survey_chan_interference_factor()
344 if (!acs_survey_is_sufficient(survey)) { in acs_survey_chan_interference_factor()
350 int_factor = acs_survey_interference_factor(survey, in acs_survey_chan_interference_factor()
355 survey->nf, (unsigned long) survey->channel_time, in acs_survey_chan_interference_factor()
356 (unsigned long) survey->channel_time_busy, in acs_survey_chan_interference_factor()
357 (unsigned long) survey->channel_time_rx); in acs_survey_chan_interference_factor()
392 static int acs_survey_is_sufficient(struct freq_survey *survey) in acs_survey_is_sufficient() argument
394 if (!(survey->filled & SURVEY_HAS_NF)) { in acs_survey_is_sufficient()
399 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) { in acs_survey_is_sufficient()
404 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) && in acs_survey_is_sufficient()
405 !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) { in acs_survey_is_sufficient()
417 struct freq_survey *survey; in acs_survey_list_is_sufficient() local
420 dl_list_for_each(survey, &chan->survey_list, struct freq_survey, list) in acs_survey_list_is_sufficient()
422 if (acs_survey_is_sufficient(survey)) { in acs_survey_list_is_sufficient()