diff options
author | sam <sam@FreeBSD.org> | 2005-07-22 16:50:18 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-07-22 16:50:18 +0000 |
commit | 3876d0ac68eed6f2676486ce047b20f7cb8f3520 (patch) | |
tree | fca8cfc4073f63287b1f51121bcf1c74ccdcdeb7 /sys/dev/wi | |
parent | 0ad70d5aa7fbb8f1837a75c1bf95f85475e1b1ba (diff) | |
download | FreeBSD-src-3876d0ac68eed6f2676486ce047b20f7cb8f3520.zip FreeBSD-src-3876d0ac68eed6f2676486ce047b20f7cb8f3520.tar.gz |
diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use
it instead of -1
Diffstat (limited to 'sys/dev/wi')
-rw-r--r-- | sys/dev/wi/if_wi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 1cd2b9f..a4a041a 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] & |