Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108251663
D48616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1008 B
Referenced Files
None
Subscribers
None
D48616.diff
View Options
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -376,6 +376,7 @@
get_sta_info(void *arg, struct ieee80211_node *ni)
{
struct stainforeq *req = arg;
+ struct ieee80211_node_txrate tr;
struct ieee80211vap *vap = ni->ni_vap;
struct ieee80211req_sta_info *si;
size_t ielen, len;
@@ -406,7 +407,14 @@
if (si->isi_nrates > 15)
si->isi_nrates = 15;
memcpy(si->isi_rates, ni->ni_rates.rs_rates, si->isi_nrates);
- si->isi_txrate = ieee80211_node_get_txrate_dot11rate(ni);
+ /*
+ * isi_txrate can only represent the legacy/HT rates.
+ * Only set it if the rate is a legacy/HT rate.
+ * For VHT and later rates the API will need changing.
+ */
+ ieee80211_node_get_txrate(ni, &tr);
+ if (tr.type == IEEE80211_NODE_TXRATE_LEGACY)
+ si->isi_txrate = tr.dot11rate;
si->isi_txmbps = ieee80211_node_get_txrate_mbit(ni);
si->isi_associd = ni->ni_associd;
si->isi_txpower = ni->ni_txpower;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 3:23 AM (9 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16072239
Default Alt Text
D48616.diff (1008 B)
Attached To
Mode
D48616: net80211: update get_sta_info() to only populate isi_txrate for legacy rates
Attached
Detach File
Event Timeline
Log In to Comment