@@ -503,6 +503,8 @@ void ieee80211_tx_ba_session_handle_start(struct sta_info *sta, int tid)
int ret;
tid_tx = rcu_dereference_protected_tid_tx(sta, tid);
+ if (!tid_tx)
+ return;
/*
* Start queuing up packets for this aggregation session.
@@ -742,6 +744,8 @@ static void ieee80211_agg_tx_operational(struct ieee80211_local *local,
lockdep_assert_held(&sta->ampdu_mlme.mtx);
tid_tx = rcu_dereference_protected_tid_tx(sta, tid);
+ if (!tid_tx)
+ return;
params.buf_size = tid_tx->buf_size;
params.amsdu = tid_tx->amsdu;