Lines Matching refs:sta

123 	struct sta_info *sta;  in ieee80211_key_enable_hw_accel()  local
150 sta = key->sta; in ieee80211_key_enable_hw_accel()
156 if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) && in ieee80211_key_enable_hw_accel()
160 if (sta && !sta->uploaded) in ieee80211_key_enable_hw_accel()
179 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_enable_hw_accel()
202 sta ? sta->sta.addr : bcast_addr, ret); in ieee80211_key_enable_hw_accel()
231 struct sta_info *sta; in ieee80211_key_disable_hw_accel() local
242 sta = key->sta; in ieee80211_key_disable_hw_accel()
258 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_disable_hw_accel()
264 sta ? sta->sta.addr : bcast_addr, ret); in ieee80211_key_disable_hw_accel()
269 struct sta_info *sta = key->sta; in _ieee80211_set_tx_key() local
274 set_sta_flag(sta, WLAN_STA_USES_ENCRYPTION); in _ieee80211_set_tx_key()
276 sta->ptk_idx = key->conf.keyidx; in _ieee80211_set_tx_key()
279 clear_sta_flag(sta, WLAN_STA_BLOCK_BA); in _ieee80211_set_tx_key()
280 ieee80211_check_fast_xmit(sta); in _ieee80211_set_tx_key()
294 struct sta_info *sta = new->sta; in ieee80211_pairwise_rekey() local
302 if (sta->ptk_idx != INVALID_PTK_KEYIDX && in ieee80211_pairwise_rekey()
313 set_sta_flag(sta, WLAN_STA_BLOCK_BA); in ieee80211_pairwise_rekey()
315 __ieee80211_stop_tx_ba_session(sta, i, in ieee80211_pairwise_rekey()
329 ieee80211_clear_fast_xmit(sta); in ieee80211_pairwise_rekey()
331 set_sta_flag(sta, WLAN_STA_BLOCK_BA); in ieee80211_pairwise_rekey()
332 ieee80211_sta_tear_down_BA_sessions(sta, in ieee80211_pairwise_rekey()
338 sta->sta.addr); in ieee80211_pairwise_rekey()
439 struct sta_info *sta, in ieee80211_key_replace() argument
444 struct link_sta_info *link_sta = sta ? &sta->deflink : NULL; in ieee80211_key_replace()
481 if (sta) { in ieee80211_key_replace()
482 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_replace()
483 lockdep_is_held(&sta->local->hw.wiphy->mtx)); in ieee80211_key_replace()
496 if (new && sta && pairwise) { in ieee80211_key_replace()
524 if (sta) { in ieee80211_key_replace()
526 rcu_assign_pointer(sta->ptk[idx], new); in ieee80211_key_replace()
538 ieee80211_check_fast_rx(sta); in ieee80211_key_replace()
845 struct sta_info *sta) in ieee80211_key_link() argument
862 if (sta && pairwise) { in ieee80211_key_link()
866 sta->ptk[idx]); in ieee80211_key_link()
868 sta->ptk[idx ^ 1]); in ieee80211_key_link()
878 } else if (sta) { in ieee80211_key_link()
879 struct link_sta_info *link_sta = &sta->deflink; in ieee80211_key_link()
883 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_link()
884 lockdep_is_held(&sta->local->hw.wiphy->mtx)); in ieee80211_key_link()
921 key->sta = sta; in ieee80211_key_link()
930 if (sta && sta->sta.spp_amsdu) in ieee80211_key_link()
935 ret = ieee80211_key_replace(sdata, link, sta, pairwise, old_key, key); in ieee80211_key_link()
960 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_key_free()
997 struct ieee80211_sta *sta, in ieee80211_key_iter() argument
1003 if (key->sta && key->sta->removed) in ieee80211_key_iter()
1007 iter(hw, vif, key->sta ? &key->sta->sta : NULL, in ieee80211_key_iter()
1015 struct ieee80211_sta *sta, in ieee80211_iter_keys() argument
1045 struct ieee80211_sta *sta, in _ieee80211_iter_keys_rcu() argument
1060 struct ieee80211_sta *sta, in ieee80211_iter_keys_rcu() argument
1091 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_keys_iface()
1112 ieee80211_key_replace(key->sdata, link, key->sta, in ieee80211_remove_link_keys()
1178 struct sta_info *sta) in ieee80211_free_sta_keys() argument
1185 for (i = 0; i < ARRAY_SIZE(sta->deflink.gtk); i++) { in ieee80211_free_sta_keys()
1186 key = wiphy_dereference(local->hw.wiphy, sta->deflink.gtk[i]); in ieee80211_free_sta_keys()
1189 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_sta_keys()
1197 key = wiphy_dereference(local->hw.wiphy, sta->ptk[i]); in ieee80211_free_sta_keys()
1200 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_sta_keys()
1490 WARN_ON(key->sta); in ieee80211_key_switch_links()
1501 WARN_ON(key->sta); in ieee80211_key_switch_links()