summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_ioctl.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-19 04:33:36 +0000
committersam <sam@FreeBSD.org>2009-02-19 04:33:36 +0000
commit8f46eec09092317db7590d5595fb47dec500f9d3 (patch)
tree7f6e90612bc97937ed66ef8c3c399cfcd76e3eb6 /sys/net80211/ieee80211_ioctl.c
parentdc72869d2fbbf60110d97662d2fa8e1c5aa8457f (diff)
downloadFreeBSD-src-8f46eec09092317db7590d5595fb47dec500f9d3.zip
FreeBSD-src-8f46eec09092317db7590d5595fb47dec500f9d3.tar.gz
instead of special casing lookups for the 11na/g legacy rate set, just
install the rates once when creating the com structure
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
-rw-r--r--sys/net80211/ieee80211_ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index 7f7417e..10f3c72 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -2121,8 +2121,7 @@ ieee80211_ioctl_settxparams(struct ieee80211vap *vap,
continue;
src = &parms.params[i];
dst = &vap->iv_txparms[i];
- rs = &ic->ic_sup_rates[i == IEEE80211_MODE_11NA ?
- IEEE80211_MODE_11A : IEEE80211_MODE_11G];
+ rs = &ic->ic_sup_rates[i];
if (src->ucastrate != dst->ucastrate) {
if (!checkmcs(src->ucastrate) &&
!checkrate(rs, src->ucastrate))
OpenPOWER on IntegriCloud