Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109266193
D48605.id149748.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48605.id149748.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
@@ -515,6 +515,8 @@
* This should eventually be refactored into its own type.
*/
uint8_t ieee80211_node_get_txrate_dot11rate(struct ieee80211_node *);
+void ieee80211_node_get_txrate(struct ieee80211_node *,
+ struct ieee80211_node_txrate *);
void ieee80211_node_set_txrate_dot11rate(struct ieee80211_node *, uint8_t);
void ieee80211_node_set_txrate_ht_mcsrate(struct ieee80211_node *, uint8_t);
uint16_t ieee80211_node_get_txrate_mbit(struct ieee80211_node *);
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -3170,6 +3170,24 @@
}
}
+/**
+ * @brief return the txrate representing the current transmit rate
+ *
+ * This is the API call for drivers and rate control APIs to fetch
+ * rates. It will populate a struct ieee80211_node_txrate with the
+ * current rate configuration to use.
+ *
+ * @param ni the ieee80211_node to return the transmit rate for
+ * @param txrate the struct ieee80211_node_txrate to populate
+ */
+void
+ieee80211_node_get_txrate(struct ieee80211_node *ni,
+ struct ieee80211_node_txrate *txr)
+{
+
+ *txr = ni->ni_txrate;
+}
+
/**
* @brief set the dot11rate / ratecode representing the current transmit rate
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 3, 7:33 PM (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16072707
Default Alt Text
D48605.id149748.diff (1 KB)
Attached To
Mode
D48605: net80211: add ieee80211_node_get_txrate() to populate the "new" transmit struct
Attached
Detach File
Event Timeline
Log In to Comment