Lines Matching refs:sta
57 struct sta_info *sta, in set_new_backlog_time() argument
60 sta->backlogged_until = *now; in set_new_backlog_time()
61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time()
63 while (sta->backlogged_until.usec >= 1000000) { in set_new_backlog_time()
64 sta->backlogged_until.sec++; in set_new_backlog_time()
65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time()
72 struct sta_info *sta; in count_backlogged_sta() local
79 for (sta = hapd->sta_list; sta; sta = sta->next) { in count_backlogged_sta()
80 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr)) in count_backlogged_sta()
88 set_new_backlog_time(hapd, sta, &now); in count_backlogged_sta()
89 if (os_reltime_before(&now, &sta->backlogged_until)) in count_backlogged_sta()
97 struct sta_info *sta, 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()
113 struct sta_info *sta; in set_sta_weights() local
115 for (sta = hapd->sta_list; sta; sta = sta->next) in set_sta_weights()
116 sta_set_airtime_weight(hapd, sta, weight); in set_sta_weights()
230 static int get_weight_for_sta(struct hostapd_data *hapd, const u8 *sta) in get_weight_for_sta() argument
235 while (wt && !ether_addr_equal(wt->addr, sta)) in get_weight_for_sta()
242 int airtime_policy_new_sta(struct hostapd_data *hapd, struct sta_info *sta) in airtime_policy_new_sta() argument
247 weight = get_weight_for_sta(hapd, sta->addr); in airtime_policy_new_sta()
249 return sta_set_airtime_weight(hapd, sta, weight); in airtime_policy_new_sta()