Lines Matching refs:sta
128 struct sta_info *sta; in ieee80211_key_enable_hw_accel() local
156 sta = key->sta; in ieee80211_key_enable_hw_accel()
162 if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) && in ieee80211_key_enable_hw_accel()
166 if (sta && !sta->uploaded) in ieee80211_key_enable_hw_accel()
185 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_enable_hw_accel()
208 sta ? sta->sta.addr : bcast_addr, ret); in ieee80211_key_enable_hw_accel()
237 struct sta_info *sta; in ieee80211_key_disable_hw_accel() local
250 sta = key->sta; in ieee80211_key_disable_hw_accel()
264 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_disable_hw_accel()
270 sta ? sta->sta.addr : bcast_addr, ret); in ieee80211_key_disable_hw_accel()
275 struct sta_info *sta = key->sta; in _ieee80211_set_tx_key() local
280 set_sta_flag(sta, WLAN_STA_USES_ENCRYPTION); in _ieee80211_set_tx_key()
282 sta->ptk_idx = key->conf.keyidx; in _ieee80211_set_tx_key()
285 clear_sta_flag(sta, WLAN_STA_BLOCK_BA); in _ieee80211_set_tx_key()
286 ieee80211_check_fast_xmit(sta); in _ieee80211_set_tx_key()
300 struct sta_info *sta = new->sta; in ieee80211_pairwise_rekey() local
308 if (sta->ptk_idx != INVALID_PTK_KEYIDX && in ieee80211_pairwise_rekey()
319 set_sta_flag(sta, WLAN_STA_BLOCK_BA); in ieee80211_pairwise_rekey()
320 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_pairwise_rekey()
322 ___ieee80211_stop_tx_ba_session(sta, i, in ieee80211_pairwise_rekey()
324 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_pairwise_rekey()
337 ieee80211_clear_fast_xmit(sta); in ieee80211_pairwise_rekey()
339 set_sta_flag(sta, WLAN_STA_BLOCK_BA); in ieee80211_pairwise_rekey()
340 ieee80211_sta_tear_down_BA_sessions(sta, in ieee80211_pairwise_rekey()
346 sta->sta.addr); in ieee80211_pairwise_rekey()
443 struct sta_info *sta, in ieee80211_key_replace() argument
448 struct link_sta_info *link_sta = sta ? &sta->deflink : NULL; in ieee80211_key_replace()
483 if (sta) { in ieee80211_key_replace()
484 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_replace()
485 lockdep_is_held(&sta->local->sta_mtx)); in ieee80211_key_replace()
498 if (new && sta && pairwise) { in ieee80211_key_replace()
527 if (sta) { in ieee80211_key_replace()
529 rcu_assign_pointer(sta->ptk[idx], new); in ieee80211_key_replace()
541 ieee80211_check_fast_rx(sta); in ieee80211_key_replace()
847 struct sta_info *sta) in ieee80211_key_link() argument
864 if (sta && pairwise) { in ieee80211_key_link()
867 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]); in ieee80211_key_link()
868 alt_key = key_mtx_dereference(sdata->local, 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->sta_mtx)); in ieee80211_key_link()
920 key->sta = sta; in ieee80211_key_link()
930 ret = ieee80211_key_replace(sdata, link, sta, pairwise, old_key, key); in ieee80211_key_link()
957 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_key_free()
996 struct ieee80211_sta *sta, in ieee80211_iter_keys() argument
1012 key->sta ? &key->sta->sta : NULL, in ieee80211_iter_keys()
1019 key->sta ? &key->sta->sta : NULL, in ieee80211_iter_keys()
1031 struct ieee80211_sta *sta, in _ieee80211_iter_keys_rcu() argument
1040 if (key->sta && key->sta->removed) in _ieee80211_iter_keys_rcu()
1046 key->sta ? &key->sta->sta : NULL, in _ieee80211_iter_keys_rcu()
1055 struct ieee80211_sta *sta, in ieee80211_iter_keys_rcu() argument
1086 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_keys_iface()
1106 ieee80211_key_replace(key->sdata, link, key->sta, in ieee80211_remove_link_keys()
1174 struct sta_info *sta) in ieee80211_free_sta_keys() argument
1180 for (i = 0; i < ARRAY_SIZE(sta->deflink.gtk); i++) { in ieee80211_free_sta_keys()
1181 key = key_mtx_dereference(local, sta->deflink.gtk[i]); in ieee80211_free_sta_keys()
1184 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_sta_keys()
1192 key = key_mtx_dereference(local, sta->ptk[i]); in ieee80211_free_sta_keys()
1195 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_free_sta_keys()
1475 WARN_ON(key->sta); in ieee80211_key_switch_links()
1486 WARN_ON(key->sta); in ieee80211_key_switch_links()