Lines Matching +full:rates +full:- +full:cck
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting
33 * IEEE 802.11 PHY-related definitions.
40 #define IEEE80211_CW_MIN_0 31 /* DS/CCK aCWmin, ERP aCWmin(0) */
46 #define IEEE80211_DUR_SIFS 10 /* DS/CCK/ERP SIFS */
52 #define IEEE80211_DUR_SLOT 20 /* DS/CCK slottime, ERP long slottime */
57 * For drivers that don't implement per-VAP slot time
59 * between VAPs to program a single radio) - return
63 ((ic->ic_flags & IEEE80211_F_SHSLOT) ? \
67 * For drivers that implement per-VAP slot time; look
68 * at the per-VAP flags to determine whether this VAP
72 ((vap->iv_flags & IEEE80211_F_SHSLOT) ? \
88 uint8_t phy; /* CCK/OFDM/TURBO */
91 * preamble in CCK rate code */
92 uint8_t dot11Rate; /* value for supported rates
114 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; in ieee80211_ack_rate()
115 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_rate()
116 return rt->info[cix].dot11Rate; in ieee80211_ack_rate()
129 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; in ieee80211_ctl_rate()
130 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ctl_rate()
131 return rt->info[cix].dot11Rate; in ieee80211_ctl_rate()
144 uint8_t rix = rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]; in ieee80211_rate2phytype()
145 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_rate2phytype()
146 return rt->info[rix].phy; in ieee80211_rate2phytype()
159 return rt->rateCodeToIndex[rate] != (uint8_t)-1; in ieee80211_isratevalid()
164 * o non-fragment data frames
172 uint8_t rix = rt->rateCodeToIndex[rate]; in ieee80211_ack_duration()
174 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_duration()
176 KASSERT(rt->info[rix].spAckDuration != 0, in ieee80211_ack_duration()
178 return rt->info[rix].spAckDuration; in ieee80211_ack_duration()
180 KASSERT(rt->info[rix].lpAckDuration != 0, in ieee80211_ack_duration()
182 return rt->info[rix].lpAckDuration; in ieee80211_ack_duration()
191 return (rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]); in ieee80211_legacy_rate_lookup()