diff options
author | sam <sam@FreeBSD.org> | 2009-06-09 16:32:07 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-06-09 16:32:07 +0000 |
commit | 61418971f4dc85a3632054e202ccf76013a93e36 (patch) | |
tree | 0cfaff84cbdaf337d6e9b77890834939c8a50988 /sys/net80211/ieee80211.h | |
parent | af60635fabd4377e14bc00ac6a5d6723f01308ed (diff) | |
download | FreeBSD-src-61418971f4dc85a3632054e202ccf76013a93e36.zip FreeBSD-src-61418971f4dc85a3632054e202ccf76013a93e36.tar.gz |
Correct ieee80211_gettid:
o don't increment extracted tid, this was a vestige of IEEE80211_NONQOS_TID
being defined as 0 (w/ real tid's +1)
o handle 4-address frames (add IEEE80211_IS_DSTODS to check if an 802.11
header is DSTODS)
Submitted by: cbzimmer
Reviewed by: avatar
Diffstat (limited to 'sys/net80211/ieee80211.h')
-rw-r--r-- | sys/net80211/ieee80211.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h index e93be50..d1c7658 100644 --- a/sys/net80211/ieee80211.h +++ b/sys/net80211/ieee80211.h @@ -158,6 +158,9 @@ struct ieee80211_qosframe_addr4 { #define IEEE80211_FC1_DIR_FROMDS 0x02 /* AP ->STA */ #define IEEE80211_FC1_DIR_DSTODS 0x03 /* AP ->AP */ +#define IEEE80211_IS_DSTODS(wh) \ + (((wh)->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) + #define IEEE80211_FC1_MORE_FRAG 0x04 #define IEEE80211_FC1_RETRY 0x08 #define IEEE80211_FC1_PWR_MGT 0x10 |