From: Johannes Berg Currently, in strict mode, max_tx_aggregation_subframes is used for all peers, but that conflicts with not sending AddBA ext to them unless they are at least HE capable, as we can't advertise a large size without that. Limit the strict case to HE capable peers. Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- net/mac80211/agg-tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index f3ecdd8601a0..3dedcb605f0d 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c @@ -465,7 +465,8 @@ static void ieee80211_send_addba_with_timeout(struct sta_info *sta, if (sta->sta.valid_links || sta->sta.deflink.eht_cap.has_eht || - ieee80211_hw_check(&local->hw, STRICT)) { + (ieee80211_hw_check(&local->hw, STRICT) && + sta->sta.deflink.he_cap.has_he)) { buf_size = local->hw.max_tx_aggregation_subframes; } else if (sta->sta.deflink.he_cap.has_he) { buf_size = min_t(u16, local->hw.max_tx_aggregation_subframes, -- 2.56.0