Lines Matching refs:sta

299 		struct sta_info *sta, struct sk_buff *skb)  in ieee80211s_update_metric()  argument
311 sta->mesh->fail_avg = in ieee80211s_update_metric()
312 ((80 * sta->mesh->fail_avg + 5) / 100 + 20 * failed); in ieee80211s_update_metric()
313 if (sta->mesh->fail_avg > 95) in ieee80211s_update_metric()
314 mesh_plink_broken(sta); in ieee80211s_update_metric()
318 struct sta_info *sta) in airtime_link_metric_get() argument
329 if (sta->mesh->fail_avg >= 100) in airtime_link_metric_get()
332 sta_set_rate_info_tx(sta, &sta->tx_stats.last_rate, &rinfo); in airtime_link_metric_get()
337 err = (sta->mesh->fail_avg << ARITH_SHIFT) / 100; in airtime_link_metric_get()
371 struct sta_info *sta; in hwmp_route_info_get() local
380 sta = sta_info_get(sdata, mgmt->sa); in hwmp_route_info_get()
381 if (!sta) { in hwmp_route_info_get()
386 last_hop_metric = airtime_link_metric_get(local, sta); in hwmp_route_info_get()
468 mesh_path_assign_nexthop(mpath, sta); in hwmp_route_info_get()
508 mesh_path_assign_nexthop(mpath, sta); in hwmp_route_info_get()
694 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process()
743 struct sta_info *sta; in hwmp_perr_frame_process() local
746 sta = next_hop_deref_protected(mpath); in hwmp_perr_frame_process()
748 ether_addr_equal(ta, sta->sta.addr) && in hwmp_perr_frame_process()
775 struct sta_info *sta; in hwmp_rann_frame_process() local
801 sta = sta_info_get(sdata, mgmt->sa); in hwmp_rann_frame_process()
802 if (!sta) { in hwmp_rann_frame_process()
807 metric_txsta = airtime_link_metric_get(local, sta); in hwmp_rann_frame_process()
871 struct sta_info *sta; in mesh_rx_path_sel_frame() local
878 sta = sta_info_get(sdata, mgmt->sa); in mesh_rx_path_sel_frame()
879 if (!sta || sta->mesh->plink_state != NL80211_PLINK_ESTAB) { in mesh_rx_path_sel_frame()
1161 memcpy(hdr->addr1, next_hop->sta.addr, ETH_ALEN); in mesh_nexthop_lookup()