summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-07-22 16:50:18 +0000
committersam <sam@FreeBSD.org>2005-07-22 16:50:18 +0000
commit3876d0ac68eed6f2676486ce047b20f7cb8f3520 (patch)
treefca8cfc4073f63287b1f51121bcf1c74ccdcdeb7 /sys/dev/ral
parent0ad70d5aa7fbb8f1837a75c1bf95f85475e1b1ba (diff)
downloadFreeBSD-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/ral')
-rw-r--r--sys/dev/ral/if_ral.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ral/if_ral.c b/sys/dev/ral/if_ral.c
index 11a2ea1..429233a 100644
--- a/sys/dev/ral/if_ral.c
+++ b/sys/dev/ral/if_ral.c
@@ -1875,7 +1875,7 @@ ral_tx_data(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
wh = mtod(m0, struct ieee80211_frame *);
- if (ic->ic_fixed_rate != -1) {
+ if (ic->ic_fixed_rate != IEEE80211_FIXED_RATE_NONE) {
rs = &ic->ic_sup_rates[ic->ic_curmode];
rate = rs->rs_rates[ic->ic_fixed_rate];
} else {
@@ -2009,7 +2009,7 @@ ral_tx_data(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
data->ni = ni;
/* remember link conditions for rate adaptation algorithm */
- if (ic->ic_fixed_rate == -1) {
+ if (ic->ic_fixed_rate == IEEE80211_FIXED_RATE_NONE) {
data->id.id_len = m0->m_pkthdr.len;
data->id.id_rateidx = ni->ni_txrate;
data->id.id_node = ni;
OpenPOWER on IntegriCloud