mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
net80211: add IEEE80211_CONF_AMPDU_OFFLOAD for AMPDU[-TX] offload
Drivers will set IEEE80211_FEXT_AMPDU_OFFLOAD to indicate to net80211 that the driver or the firmware will handle AMPDU[-TX] entirely on their own and net80211 should not do anything. Following the IEEE80211_CONF_FRAG_OFFLOAD() example add a IEEE80211_CONF_AMPDU_OFFLOAD() check in net80211 to handle the condition. Sponsored by: The FreeBSD Foundation Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D49829 (cherry picked from commit 585388f9d986151045aaedcde1d29f89e62975c3)
This commit is contained in:
parent
28c5a37f07
commit
84b198f68f
2 changed files with 5 additions and 2 deletions
|
|
@ -214,7 +214,7 @@ ieee80211_vap_pkt_send_dest(struct ieee80211vap *vap, struct mbuf *m,
|
|||
* frames will always have sequence numbers allocated from the NON_QOS
|
||||
* TID.
|
||||
*/
|
||||
if (do_ampdu) {
|
||||
if (!IEEE80211_CONF_AMPDU_OFFLOAD(ic) && do_ampdu) {
|
||||
if ((m->m_flags & M_EAPOL) == 0 && (! mcast)) {
|
||||
int tid = WME_AC_TO_TID(M_WME_GETAC(m));
|
||||
struct ieee80211_tx_ampdu *tap = &ni->ni_tx_ampdu[tid];
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@
|
|||
((ic)->ic_flags_ext & IEEE80211_FEXT_SEQNO_OFFLOAD)
|
||||
#define IEEE80211_CONF_FRAG_OFFLOAD(ic) \
|
||||
((ic)->ic_flags_ext & IEEE80211_FEXT_FRAG_OFFLOAD)
|
||||
#define IEEE80211_CONF_AMPDU_OFFLOAD(ic) \
|
||||
((ic)->ic_flags_ext & IEEE80211_FEXT_AMPDU_OFFLOAD)
|
||||
|
||||
/*
|
||||
* 802.11 control state is split into a common portion that maps
|
||||
|
|
@ -697,13 +699,14 @@ MALLOC_DECLARE(M_80211_VAP);
|
|||
#define IEEE80211_FEXT_VHT 0x00400000 /* CONF: VHT support */
|
||||
#define IEEE80211_FEXT_QUIET_IE 0x00800000 /* STATUS: quiet IE in a beacon has been added */
|
||||
#define IEEE80211_FEXT_UAPSD 0x01000000 /* CONF: enable U-APSD */
|
||||
#define IEEE80211_FEXT_AMPDU_OFFLOAD 0x02000000 /* CONF: driver/fw handles AMPDU[-TX] itself */
|
||||
|
||||
#define IEEE80211_FEXT_BITS \
|
||||
"\20\2INACT\3SCANWAIT\4BGSCAN\5WPS\6TSN\7SCANREQ\10RESUME" \
|
||||
"\0114ADDR\12NONEPR_PR\13SWBMISS\14DFS\15DOTD\16STATEWAIT\17REINIT" \
|
||||
"\20BPF\21WDSLEGACY\22PROBECHAN\23UNIQMAC\24SCAN_OFFLOAD\25SEQNO_OFFLOAD" \
|
||||
"\26FRAG_OFFLOAD\27VHT" \
|
||||
"\30QUIET_IE\31UAPSD"
|
||||
"\30QUIET_IE\31UAPSD\32AMPDU_OFFLOAD"
|
||||
|
||||
/* ic_flags_ht/iv_flags_ht */
|
||||
#define IEEE80211_FHT_NONHT_PR 0x00000001 /* STATUS: non-HT sta present */
|
||||
|
|
|
|||
Loading…
Reference in a new issue