Lines Matching defs:survey
991 struct freq_survey *survey)
994 chan->min_nf = survey->nf;
995 iface->lowest_nf = survey->nf;
998 chan->min_nf = survey->nf;
999 else if (survey->nf < chan->min_nf)
1000 chan->min_nf = survey->nf;
1001 if (survey->nf < iface->lowest_nf)
1002 iface->lowest_nf = survey->nf;
1011 struct freq_survey *survey;
1014 survey = dl_list_first(&survey_res->survey_list, struct freq_survey,
1016 if (!survey || !survey->freq)
1019 chan = hostapd_get_mode_channel(iface, survey->freq);
1024 "Single Channel Survey: (freq=%d channel_time=%ld channel_time_busy=%ld)",
1025 survey->freq,
1026 (unsigned long int) survey->channel_time,
1027 (unsigned long int) survey->channel_time_busy);
1029 if (survey->channel_time > iface->last_channel_time &&
1030 survey->channel_time > survey->channel_time_busy) {
1031 dividend = survey->channel_time_busy -
1033 divisor = survey->channel_time - iface->last_channel_time;
1039 iface->last_channel_time = survey->channel_time;
1040 iface->last_channel_time_busy = survey->channel_time_busy;
1047 struct freq_survey *survey, *tmp;
1051 wpa_printf(MSG_DEBUG, "No survey data received");
1060 dl_list_for_each_safe(survey, tmp, &survey_results->survey_list,
1062 chan = hostapd_get_mode_channel(iface, survey->freq);
1068 dl_list_del(&survey->list);
1069 dl_list_add_tail(&chan->survey_list, &survey->list);
1071 hostapd_update_nf(iface, chan, survey);