Lines Matching refs:sta

141 				       struct sta_info *sta)
241 sta->sta.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_7935;
243 sta->sta.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_3839;
246 changed = memcmp(&sta->sta.ht_cap, &ht_cap, sizeof(ht_cap));
248 memcpy(&sta->sta.ht_cap, &ht_cap, sizeof(ht_cap));
267 sta->sta.bandwidth = bw;
269 sta->cur_max_bandwidth =
273 if (sta->sdata->vif.type == NL80211_IFTYPE_AP ||
274 sta->sdata->vif.type == NL80211_IFTYPE_AP_VLAN) {
291 if (smps_mode != sta->sta.smps_mode)
293 sta->sta.smps_mode = smps_mode;
295 sta->sta.smps_mode = IEEE80211_SMPS_OFF;
300 void ieee80211_sta_tear_down_BA_sessions(struct sta_info *sta,
305 mutex_lock(&sta->ampdu_mlme.mtx);
307 ___ieee80211_stop_rx_ba_session(sta, i, WLAN_BACK_RECIPIENT,
313 ___ieee80211_stop_tx_ba_session(sta, i, reason);
314 mutex_unlock(&sta->ampdu_mlme.mtx);
322 cancel_work_sync(&sta->ampdu_mlme.work);
324 mutex_lock(&sta->ampdu_mlme.mtx);
327 rcu_dereference_protected_tid_tx(sta, i);
333 ieee80211_stop_tx_ba_cb(sta, i, tid_tx);
335 mutex_unlock(&sta->ampdu_mlme.mtx);
341 struct sta_info *sta =
348 blocked = test_sta_flag(sta, WLAN_STA_BLOCK_BA);
350 mutex_lock(&sta->ampdu_mlme.mtx);
352 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired))
354 sta, tid, WLAN_BACK_RECIPIENT,
358 sta->ampdu_mlme.tid_rx_stop_requested))
360 sta, tid, WLAN_BACK_RECIPIENT,
365 sta->ampdu_mlme.tid_rx_manage_offl))
366 ___ieee80211_start_rx_ba_session(sta, 0, 0, 0, 1, tid,
371 sta->ampdu_mlme.tid_rx_manage_offl))
373 sta, tid, WLAN_BACK_RECIPIENT,
376 spin_lock_bh(&sta->lock);
378 tid_tx = sta->ampdu_mlme.tid_start_tx[tid];
385 sta->ampdu_mlme.tid_start_tx[tid] = NULL;
387 if (sta->ampdu_mlme.tid_tx[tid])
390 ieee80211_assign_tid_tx(sta, tid, tid_tx);
391 spin_unlock_bh(&sta->lock);
393 ieee80211_tx_ba_session_handle_start(sta, tid);
396 spin_unlock_bh(&sta->lock);
398 tid_tx = rcu_dereference_protected_tid_tx(sta, tid);
404 ieee80211_start_tx_ba_cb(sta, tid, tid_tx);
406 ___ieee80211_stop_tx_ba_session(sta, tid,
409 ieee80211_stop_tx_ba_cb(sta, tid, tid_tx);
411 mutex_unlock(&sta->ampdu_mlme.mtx);
457 struct sta_info *sta,
473 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_INITIATOR, 0,
476 __ieee80211_stop_tx_ba_session(sta, tid, AGG_STOP_PEER_REQUEST);