Lines Matching defs:sta
111 * @sta: next hop to assign
115 void mesh_path_assign_nexthop(struct mesh_path *mpath, struct sta_info *sta)
121 rcu_assign_pointer(mpath->next_hop, sta);
126 memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN);
128 ieee80211_mps_set_frame_flags(sta->sdata, sta, hdr);
167 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr;
474 struct sta_info *sta;
489 sta = rcu_dereference(mpath->next_hop);
490 if (!sta)
518 * Same use of the sta lock as in ieee80211_check_fast_xmit, in order
519 * to protect against concurrent sta key updates.
521 spin_lock_bh(&sta->lock);
522 key = rcu_access_pointer(sta->ptk[sta->ptk_idx]);
604 spin_unlock_bh(&sta->lock);
639 struct sta_info *sta)
647 if (rcu_access_pointer(entry->mpath->next_hop) == sta)
765 * @sta: broken peer link
770 void mesh_plink_broken(struct sta_info *sta)
772 struct ieee80211_sub_if_data *sdata = sta->sdata;
779 if (rcu_access_pointer(mpath->next_hop) == sta &&
825 * @sta: mesh peer to match
829 * allows path creation. This will happen before the sta can be freed (because
833 void mesh_path_flush_by_nexthop(struct sta_info *sta)
835 struct ieee80211_sub_if_data *sdata = sta->sdata;
842 if (rcu_access_pointer(mpath->next_hop) == sta)