From 3876d0ac68eed6f2676486ce047b20f7cb8f3520 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 22 Jul 2005 16:50:18 +0000 Subject: diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use it instead of -1 --- sys/dev/ral/if_ral.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ral') 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; -- cgit v1.1