LinuxKPI: 802.11: set flag if frame should be part of an A-MPDU

In the output path where we are sending a frame to the driver mark it
if it should be part of an A-MPDU based on its tid, type, and whether
net80211 thinks that we are in the right state for this.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb
2026-04-27 00:55:27 +00:00
parent 259efa730c
commit cda79e505e
@@ -5849,6 +5849,18 @@ lkpi_80211_txq_tx_one(struct lkpi_sta *lsta, struct mbuf *m)
info->flags |= IEEE80211_TX_CTL_USE_MINRATE; /* mt76 */
}
info->control.vif = vif;
if (tid != IEEE80211_NONQOS_TID) {
struct ieee80211_tx_ampdu *tap;
tap = &ni->ni_tx_ampdu[tid];
if (ieee80211_is_data_qos(hdr->frame_control) &&
!ieee80211_is_qos_nullfunc(hdr->frame_control) &&
!is_multicast_ether_addr(hdr->addr1) &&
IEEE80211_AMPDU_RUNNING(tap))
info->flags |= IEEE80211_TX_CTL_AMPDU;
}
/* XXX-BZ info->control.rates */
#ifdef __notyet__
#ifdef LKPI_80211_HT