Unverified Commit f5de064f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12375 wifi: mac80211: fix NULL dereference at band check in starting tx ba session

parents 2962d745 57ba824f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -599,7 +599,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
		return -EINVAL;

	if (!pubsta->ht_cap.ht_supported &&
	    sta->sdata->vif.bss_conf.chandef.chan->band != NL80211_BAND_6GHZ)
	    !pubsta->vht_cap.vht_supported &&
	    !pubsta->he_cap.has_he)
		return -EINVAL;

	if (WARN_ON_ONCE(!local->ops->ampdu_action))