Lines Matching refs:bss
132 struct hostapd_data *bss; in update_airtime_weights() local
143 bss = iface->bss[i]; in update_airtime_weights()
144 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
147 count_backlogged_sta(bss); in update_airtime_weights()
148 if (!bss->num_backlogged_sta) in update_airtime_weights()
151 if (!num_sta_min || bss->num_backlogged_sta < num_sta_min) in update_airtime_weights()
152 num_sta_min = bss->num_backlogged_sta; in update_airtime_weights()
154 num_sta_prod *= bss->num_backlogged_sta; in update_airtime_weights()
155 num_sta_sum += bss->num_backlogged_sta; in update_airtime_weights()
156 wt_sum += bss->conf->airtime_weight; in update_airtime_weights()
162 bss = iface->bss[i]; in update_airtime_weights()
163 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
170 if (bss->num_backlogged_sta && in update_airtime_weights()
171 bss->num_backlogged_sta % num_sta_min > 0) in update_airtime_weights()
178 if (!apply_limit && bss->conf->airtime_limit) { in update_airtime_weights()
179 if (bss->num_backlogged_sta * wt_sum > in update_airtime_weights()
180 bss->conf->airtime_weight * num_sta_sum) in update_airtime_weights()
189 bss = iface->bss[i]; in update_airtime_weights()
190 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
198 if (apply_limit && bss->num_backlogged_sta && num_bss > 1) in update_airtime_weights()
199 wt = bss->conf->airtime_weight * num_sta_prod / in update_airtime_weights()
200 bss->num_backlogged_sta; in update_airtime_weights()
204 bss->airtime_weight = wt; in update_airtime_weights()
212 bss = iface->bss[i]; in update_airtime_weights()
213 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
215 set_sta_weights(bss, bss->airtime_weight * quantum); in update_airtime_weights()