summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_node.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-09-22 00:14:50 +0000
committersam <sam@FreeBSD.org>2008-09-22 00:14:50 +0000
commita839de9034bb40651d0230e279964e91fdf845bb (patch)
tree9b527427de17e6ea6b2b16d7b830476b5f526e57 /sys/net80211/ieee80211_node.h
parent03a86e750748dce8c5d36001ad245b97ea457b9e (diff)
downloadFreeBSD-src-a839de9034bb40651d0230e279964e91fdf845bb.zip
FreeBSD-src-a839de9034bb40651d0230e279964e91fdf845bb.tar.gz
Fix handling of shortgi: use the local configuration (and implicitly
device capabilities) to decide whether to use short gi. Drivers inspect ni_flags to decide whether to send a frame w/ short sgi.
Diffstat (limited to 'sys/net80211/ieee80211_node.h')
-rw-r--r--sys/net80211/ieee80211_node.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
index 045bd15..2aaec0a 100644
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -115,6 +115,8 @@ struct ieee80211_node {
#define IEEE80211_NODE_MIMO_PS 0x001000 /* MIMO power save enabled */
#define IEEE80211_NODE_MIMO_RTS 0x002000 /* send RTS in MIMO PS */
#define IEEE80211_NODE_RIFS 0x004000 /* RIFS enabled */
+#define IEEE80211_NODE_SGI20 0x008000 /* Short GI in HT20 enabled */
+#define IEEE80211_NODE_SGI40 0x010000 /* Short GI in HT40 enabled */
uint16_t ni_associd; /* association ID */
uint16_t ni_vlan; /* vlan tag */
uint16_t ni_txpower; /* current transmit power */
@@ -199,7 +201,8 @@ MALLOC_DECLARE(M_80211_NODE_IE);
#define IEEE80211_NODE_HT_ALL \
(IEEE80211_NODE_HT | IEEE80211_NODE_HTCOMPAT | \
IEEE80211_NODE_AMPDU | IEEE80211_NODE_MIMO_PS | \
- IEEE80211_NODE_MIMO_RTS | IEEE80211_NODE_RIFS)
+ IEEE80211_NODE_MIMO_RTS | IEEE80211_NODE_RIFS | \
+ IEEE80211_NODE_SGI20 | IEEE80211_NODE_SGI40)
#define IEEE80211_NODE_AID(ni) IEEE80211_AID(ni->ni_associd)
OpenPOWER on IntegriCloud