diff options
author | sam <sam@FreeBSD.org> | 2009-04-27 17:39:41 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-04-27 17:39:41 +0000 |
commit | 3a2e64d1c437a4e46134b71ad6dae31ea1f524f9 (patch) | |
tree | d18c3c1386fbc9193e4e500fe620bc0830ca492c /sys/net80211/ieee80211_freebsd.h | |
parent | 60c7eaecd7696c335bea663d8928f295f0ab286a (diff) | |
download | FreeBSD-src-3a2e64d1c437a4e46134b71ad6dae31ea1f524f9.zip FreeBSD-src-3a2e64d1c437a4e46134b71ad6dae31ea1f524f9.tar.gz |
Store the tx seq# of an 802.11 frame in the mbuf pkthdr; this will be
used for s/w retransmit schemes that want to access this information
w/o the overhead of decoding the raw frame. Note this also allows
drivers to record this information w/o writing the frame when the seq#
is obtained through an out-of-band mechanism (e.g. when a h/w assigned
seq# is reported in a descriptor on tx done notification).
Reviewed by: sephe, avatar
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.h')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_freebsd.h b/sys/net80211/ieee80211_freebsd.h index db6648d..2e0075e 100644 --- a/sys/net80211/ieee80211_freebsd.h +++ b/sys/net80211/ieee80211_freebsd.h @@ -248,6 +248,13 @@ struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen); #define M_AGE_GET(m) (m->m_pkthdr.csum_data) #define M_AGE_SUB(m,adj) (m->m_pkthdr.csum_data -= adj) +/* + * Store the sequence number. + */ +#define M_SEQNO_SET(m, seqno) \ + ((m)->m_pkthdr.tso_segsz = (seqno)) +#define M_SEQNO_GET(m) ((m)->m_pkthdr.tso_segsz) + #define MTAG_ABI_NET80211 1132948340 /* net80211 ABI */ struct ieee80211_cb { |