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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user