Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108304775
D48614.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
945 B
Referenced Files
None
Subscribers
None
D48614.diff
View Options
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -149,6 +149,24 @@
uint8_t dot11rate; /* Legacy/HT - dot11rate / ratecode */
};
+#define IEEE80211_NODE_TXRATE_INIT_LEGACY(rate) \
+ (struct ieee80211_node_txrate) { .type = IEEE80211_NODE_TXRATE_LEGACY, \
+ .nss = 0, \
+ .mcs = 0, \
+ .dot11rate = (rate) }
+
+#define IEEE80211_NODE_TXRATE_INIT_HT(rate) \
+ (struct ieee80211_node_txrate) { .type = IEEE80211_NODE_TXRATE_LEGACY, \
+ .nss = 0, \
+ .mcs = 0, \
+ .dot11rate = (rate) | IEEE80211_RATE_MCS }
+
+#define IEEE80211_NODE_TXRATE_INIT_VHT(nss, mcs) \
+ (struct ieee80211_node_txrate) { .type = IEEE80211_NODE_TXRATE_VHT, \
+ .nss = (nss), \
+ .mcs = (mcs), \
+ .dot11rate = 0 }
+
/*
* Node specific information. Note that drivers are expected
* to derive from this structure to add device-specific per-node
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 5:32 PM (16 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16072221
Default Alt Text
D48614.diff (945 B)
Attached To
Mode
D48614: net80211: add static initialisers for the ieee80211_node_txrate options
Attached
Detach File
Event Timeline
Log In to Comment