diff options
author | sam <sam@FreeBSD.org> | 2009-06-02 20:32:13 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-06-02 20:32:13 +0000 |
commit | ab3c199d02ddce136871a9df554db66b83df6259 (patch) | |
tree | c8a1e66b4610485ad68354471afa18da0d562dd2 /sys/dev | |
parent | 6e92f3bfaaa3634498f6fb33f8a3ff061f10793f (diff) | |
download | FreeBSD-src-ab3c199d02ddce136871a9df554db66b83df6259.zip FreeBSD-src-ab3c199d02ddce136871a9df554db66b83df6259.tar.gz |
fix setting of ni_txrate
Submitted by: "Paul B. Mahol" <onemda@gmail.com>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/if_ndis/if_ndis.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index 71a6b23..d191d38 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -2727,31 +2727,7 @@ ndis_getstate_80211(sc) if (rval) device_printf (sc->ndis_dev, "get link speed failed: %d\n", rval); - - if (isset(ic->ic_modecaps, IEEE80211_MODE_11B)) { - ni->ni_rates = ic->ic_sup_rates[IEEE80211_MODE_11B]; - for (i = 0; i < ni->ni_rates.rs_nrates; i++) { - if ((ni->ni_rates.rs_rates[i] & - IEEE80211_RATE_VAL) == arg / 5000) - break; - } - } - - if (i == ni->ni_rates.rs_nrates && - isset(ic->ic_modecaps, IEEE80211_MODE_11G)) { - ni->ni_rates = ic->ic_sup_rates[IEEE80211_MODE_11G]; - for (i = 0; i < ni->ni_rates.rs_nrates; i++) { - if ((ni->ni_rates.rs_rates[i] & - IEEE80211_RATE_VAL) == arg / 5000) - break; - } - } - - if (i == ni->ni_rates.rs_nrates) - device_printf(sc->ndis_dev, "no matching rate for: %d\n", - arg / 5000); - else - ni->ni_txrate = i; + ni->ni_txrate = arg / 5000; if (ic->ic_caps & IEEE80211_C_PMGT) { len = sizeof(arg); |