wifi: mac80211: agg-rx: avoid band check
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Sep 2022 17:01:19 +0000 (19:01 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 13:24:27 +0000 (15:24 +0200)
commit2e82be13c6a33cb8befd557f168c92fb363107df
tree825a2f54a62559d562c77f85faae85834bc70b2e
parent69e0d04e2b0b3a6ffdd2794eb65b3daf6ae5cbf7
wifi: mac80211: agg-rx: avoid band check

If the deflink of the station is on 6 GHz, then it won't have HT.
If at the same time we're using MLO, then vif.bss_conf isn't used,
and thus vif.bss_conf.chandef.chan is NULL, causing the code to
crash.

Fix this by just checking for both HT and HE, and refusing the
aggregation session if both are not present. This might be a bit
wrong since it would accept an aggregation session from a peer
that has HE but no HT on 2.4 or 5 GHz, but such a peer shouldn't
exist in the first place, and it probably supports aggregation if
it has HE support.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c