Lines Matching defs:sta
49 * unprotected, namely the key->sta dereferences within the hardware
128 struct sta_info *sta;
156 sta = key->sta;
162 if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) &&
166 if (sta && !sta->uploaded)
181 sta ? &sta->sta : NULL, &key->conf);
204 sta ? sta->sta.addr : bcast_addr, ret);
233 struct sta_info *sta;
246 sta = key->sta;
256 sta ? &sta->sta : NULL, &key->conf);
262 sta ? sta->sta.addr : bcast_addr, ret);
267 struct sta_info *sta = key->sta;
272 set_sta_flag(sta, WLAN_STA_USES_ENCRYPTION);
274 sta->ptk_idx = key->conf.keyidx;
277 clear_sta_flag(sta, WLAN_STA_BLOCK_BA);
278 ieee80211_check_fast_xmit(sta);
292 struct sta_info *sta = new->sta;
300 if (sta->ptk_idx != INVALID_PTK_KEYIDX &&
311 set_sta_flag(sta, WLAN_STA_BLOCK_BA);
312 mutex_lock(&sta->ampdu_mlme.mtx);
314 ___ieee80211_stop_tx_ba_session(sta, i,
316 mutex_unlock(&sta->ampdu_mlme.mtx);
329 ieee80211_clear_fast_xmit(sta);
331 set_sta_flag(sta, WLAN_STA_BLOCK_BA);
332 ieee80211_sta_tear_down_BA_sessions(sta,
338 sta->sta.addr);
428 struct sta_info *sta,
446 if (new && sta && pairwise) {
472 if (sta) {
474 rcu_assign_pointer(sta->ptk[idx], new);
479 rcu_assign_pointer(sta->gtk[idx], new);
486 ieee80211_check_fast_rx(sta);
800 struct sta_info *sta)
816 if (sta && pairwise) {
819 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]);
820 alt_key = key_mtx_dereference(sdata->local, sta->ptk[idx ^ 1]);
828 } else if (sta) {
829 old_key = key_mtx_dereference(sdata->local, sta->gtk[idx]);
852 key->sta = sta;
862 ret = ieee80211_key_replace(sdata, sta, pairwise, old_key, key);
886 ieee80211_key_replace(key->sdata, key->sta,
925 struct ieee80211_sta *sta,
941 key->sta ? &key->sta->sta : NULL,
948 key->sta ? &key->sta->sta : NULL,
960 struct ieee80211_sta *sta,
969 if (key->sta && key->sta->removed)
975 key->sta ? &key->sta->sta : NULL,
984 struct ieee80211_sta *sta,
1015 ieee80211_key_replace(key->sdata, key->sta,
1073 struct sta_info *sta)
1079 for (i = 0; i < ARRAY_SIZE(sta->gtk); i++) {
1080 key = key_mtx_dereference(local, sta->gtk[i]);
1083 ieee80211_key_replace(key->sdata, key->sta,
1091 key = key_mtx_dereference(local, sta->ptk[i]);
1094 ieee80211_key_replace(key->sdata, key->sta,