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()
529 if (sta) { in ieee80211_key_replace()
531 rcu_assign_pointer(sta->ptk[idx], new); in ieee80211_key_replace()
543 ieee80211_check_fast_rx(sta); in ieee80211_key_replace()
850 struct sta_info *sta) in ieee80211_key_link() argument
867 if (sta && pairwise) { in ieee80211_key_link()
871 sta->ptk[idx]); in ieee80211_key_link()
873 sta->ptk[idx ^ 1]); in ieee80211_key_link()
883 } else if (sta) { in ieee80211_key_link()
884 struct link_sta_info *link_sta = &sta->deflink; in ieee80211_key_link()
888 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_link()
889 lockdep_is_held(&sta->local->hw.wiphy->mtx)); in ieee80211_key_link()
926 key->sta = sta; in ieee80211_key_link()
935 if (sta && sta->sta.spp_amsdu) in ieee80211_key_link()
940 ret = ieee80211_key_replace(sdata, link, sta, pairwise, old_key, key); in ieee80211_key_link()
965 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_key_free()
1002 struct ieee80211_sta *sta, in ieee80211_key_iter() argument
1008 if (key->sta && key->sta->removed) in ieee80211_key_iter()
1012 iter(hw, vif, key->sta ? &key->sta->sta : NULL, in ieee80211_key_iter()
1020 struct ieee80211_sta *sta, in ieee80211_iter_keys() argument
1050 struct ieee80211_sta *sta, in _ieee80211_iter_keys_rcu() argument
1065 struct ieee80211_sta *sta, in ieee80211_iter_keys_rcu() argument
1096 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_keys_iface()
1117 ieee80211_key_replace(key->sdata, link, key->sta, in ieee80211_remove_link_keys()
1183 struct sta_info *sta) in ieee80211_free_sta_keys() argument
1190 for (i = 0; i < ARRAY_SIZE(sta->deflink.gtk); i++) { in ieee80211_free_sta_keys()
1191 key = wiphy_dereference(local->hw.wiphy, sta->deflink.gtk[i]); in ieee80211_free_sta_keys()
1194 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_sta_keys()
1202 key = wiphy_dereference(local->hw.wiphy, sta->ptk[i]); in ieee80211_free_sta_keys()
1205 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_sta_keys()
1495 WARN_ON(key->sta); in ieee80211_key_switch_links()
1506 WARN_ON(key->sta); in ieee80211_key_switch_links()