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/net80211/ieee80211_proto.c | |
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/net80211/ieee80211_proto.c')
-rw-r--r-- | sys/net80211/ieee80211_proto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 168f410..0fe4574 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -100,7 +100,7 @@ ieee80211_proto_attach(struct ieee80211com *ic) ic->ic_rtsthreshold = IEEE80211_RTS_MAX; #endif ic->ic_fragthreshold = 2346; /* XXX not used yet */ - ic->ic_fixed_rate = -1; /* no fixed rate */ + ic->ic_fixed_rate = IEEE80211_FIXED_RATE_NONE; ic->ic_protmode = IEEE80211_PROT_CTSONLY; ic->ic_roaming = IEEE80211_ROAMING_AUTO; @@ -335,7 +335,8 @@ ieee80211_fix_rate(struct ieee80211com *ic, struct ieee80211_node *ni, int flags * If the fixed rate check was requested but no * fixed has been defined then just remove it. */ - if ((flags & IEEE80211_F_DOFRATE) && ic->ic_fixed_rate < 0) + if ((flags & IEEE80211_F_DOFRATE) && + ic->ic_fixed_rate == IEEE80211_FIXED_RATE_NONE) flags &= ~IEEE80211_F_DOFRATE; error = 0; okrate = badrate = fixedrate = 0; |