Lines Matching refs:sta
307 struct sta_info *sta, struct sk_buff *skb) in ieee80211s_update_metric() argument
319 sta->fail_avg = ((80 * sta->fail_avg + 5) / 100 + 20 * failed); in ieee80211s_update_metric()
320 if (sta->fail_avg > 95) in ieee80211s_update_metric()
321 mesh_plink_broken(sta); in ieee80211s_update_metric()
325 struct sta_info *sta) in airtime_link_metric_get() argument
336 if (sta->fail_avg >= 100) in airtime_link_metric_get()
339 sta_set_rate_info_tx(sta, &sta->last_tx_rate, &rinfo); in airtime_link_metric_get()
344 err = (sta->fail_avg << ARITH_SHIFT) / 100; in airtime_link_metric_get()
378 struct sta_info *sta; in hwmp_route_info_get() local
387 sta = sta_info_get(sdata, mgmt->sa); in hwmp_route_info_get()
388 if (!sta) { in hwmp_route_info_get()
393 last_hop_metric = airtime_link_metric_get(local, sta); in hwmp_route_info_get()
455 mesh_path_assign_nexthop(mpath, sta); in hwmp_route_info_get()
495 mesh_path_assign_nexthop(mpath, sta); in hwmp_route_info_get()
684 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process()
733 struct sta_info *sta; in hwmp_perr_frame_process() local
736 sta = next_hop_deref_protected(mpath); in hwmp_perr_frame_process()
738 ether_addr_equal(ta, sta->sta.addr) && in hwmp_perr_frame_process()
762 struct sta_info *sta; in hwmp_rann_frame_process() local
788 sta = sta_info_get(sdata, mgmt->sa); in hwmp_rann_frame_process()
789 if (!sta) { in hwmp_rann_frame_process()
794 metric_txsta = airtime_link_metric_get(local, sta); in hwmp_rann_frame_process()
858 struct sta_info *sta; in mesh_rx_path_sel_frame() local
865 sta = sta_info_get(sdata, mgmt->sa); in mesh_rx_path_sel_frame()
866 if (!sta || sta->plink_state != NL80211_PLINK_ESTAB) { in mesh_rx_path_sel_frame()
1148 memcpy(hdr->addr1, next_hop->sta.addr, ETH_ALEN); in mesh_nexthop_lookup()