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

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

parents 939958aa 2ff29354
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -616,7 +616,9 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
		return -EINVAL;

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

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