Lines Matching full:weight
98 unsigned int weight) in sta_set_airtime_weight() argument
102 if (weight != sta->airtime_weight && in sta_set_airtime_weight()
103 (ret = hostapd_sta_set_airtime_weight(hapd, sta->addr, weight))) in sta_set_airtime_weight()
106 sta->airtime_weight = weight; in sta_set_airtime_weight()
111 static void set_sta_weights(struct hostapd_data *hapd, unsigned int weight) in set_sta_weights() argument
116 sta_set_airtime_weight(hapd, sta, weight); in set_sta_weights()
178 /* If we're in LIMIT mode, we only apply the weight in update_airtime_weights()
197 /* We only set the calculated weight if the BSS has active in update_airtime_weights()
199 * otherwise we just set a unit weight. This ensures that in update_airtime_weights()
238 return wt ? wt->weight : hapd->conf->airtime_weight; in get_weight_for_sta()
244 unsigned int weight; in airtime_policy_new_sta() local
247 weight = get_weight_for_sta(hapd, sta->addr); in airtime_policy_new_sta()
248 if (weight) in airtime_policy_new_sta()
249 return sta_set_airtime_weight(hapd, sta, weight); in airtime_policy_new_sta()