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/awi | |
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/awi')
-rw-r--r-- | sys/dev/awi/awi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/awi/awi.c b/sys/dev/awi/awi.c index 0325995..4c0ffc2 100644 --- a/sys/dev/awi/awi.c +++ b/sys/dev/awi/awi.c @@ -605,7 +605,7 @@ awi_init(struct ifnet *ifp) rs = &ic->ic_sup_rates[IEEE80211_MODE_FH]; else rs = &ic->ic_sup_rates[IEEE80211_MODE_11B]; - if (ic->ic_fixed_rate != -1) { + if (ic->ic_fixed_rate != IEEE80211_FIXED_RATE_NONE) { rate = rs->rs_rates[ic->ic_fixed_rate] & IEEE80211_RATE_VAL; } else { rate = 0; @@ -1095,7 +1095,7 @@ awi_media_status(struct ifnet *ifp, struct ifmediareq *imr) rate = ic->ic_bss->ni_rates.rs_rates[ic->ic_bss->ni_txrate] & IEEE80211_RATE_VAL; } else { - if (ic->ic_fixed_rate == -1) + if (ic->ic_fixed_rate == IEEE80211_FIXED_RATE_NONE) rate = 0; else rate = ic->ic_sup_rates[mode]. |