summaryrefslogtreecommitdiff
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-07-29 23:31:04 +0000
committerSam Leffler <sam@FreeBSD.org>2005-07-29 23:31:04 +0000
commit479d871299d35371e17a0bb0a297e22a67ef9cd4 (patch)
tree7ca42b2754b0843f3237ee66a35c3e4d0135ead9 /sys/dev/wi
parent8c4009e8a3ad97bc7cb70ad44391eca2e13973a0 (diff)
Notes
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 1cd2b9fe4cb0..a4a041a705d9 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -2166,7 +2166,7 @@ wi_set_cfg(struct ifnet *ifp, u_long cmd, caddr_t data)
WI_LOCK(sc);
switch (le16toh(wreq.wi_val[0])) {
case 3:
- ic->ic_fixed_rate = -1;
+ ic->ic_fixed_rate = IEEE80211_FIXED_RATE_NONE;
break;
default:
rs = &ic->ic_sup_rates[IEEE80211_MODE_11B];
@@ -2272,7 +2272,7 @@ wi_write_txrate(struct wi_softc *sc)
int i;
u_int16_t rate;
- if (ic->ic_fixed_rate < 0)
+ if (ic->ic_fixed_rate == IEEE80211_FIXED_RATE_NONE)
rate = 0; /* auto */
else
rate = (ic->ic_sup_rates[IEEE80211_MODE_11B].rs_rates[ic->ic_fixed_rate] &