diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2011-03-13 12:16:23 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2011-03-13 12:16:23 +0000 |
commit | 6a3ac63bc7819f937745e47dd8baf0f9ef97e008 (patch) | |
tree | a7a09f96e5180f791953e23bbf4ee08f39fca298 /sys/net80211/ieee80211_node.c | |
parent | 0e5f5b1d23647373fa0d313d70a09fcca7997490 (diff) | |
download | FreeBSD-src-6a3ac63bc7819f937745e47dd8baf0f9ef97e008.zip FreeBSD-src-6a3ac63bc7819f937745e47dd8baf0f9ef97e008.tar.gz |
Honor device capabilities while initializing ni_htrates.
Instead of hardcoding MCS0-15 generate the table dynamically, also
restrict the MCS rates to our own capabilities while parsing a htcap
element.
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 7752c6d..104513a 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -285,10 +285,7 @@ ieee80211_node_set_chan(struct ieee80211_node *ni, mode = ieee80211_chan2mode(chan); if (IEEE80211_IS_CHAN_HT(chan)) { /* - * XXX Gotta be careful here; the rate set returned by - * ieee80211_get_suprates is actually any HT rate - * set so blindly copying it will be bad. We must - * install the legacy rate est in ni_rates and the + * We must install the legacy rate est in ni_rates and the * HT rate set in ni_htrates. */ ni->ni_htrates = *ieee80211_get_suphtrates(ic, chan); |