Lines Matching defs:rate
196 /* fillin well-known rate sets if driver has not specified */
1041 * rate tables.
1048 int i, j, rate, maxrate, mword, r;
1070 rate = rs->rs_rates[i];
1071 mword = ieee80211_rate2media(ic, rate, mode);
1076 * Add legacy rate to the collection of all rates.
1078 r = rate & IEEE80211_RATE_VAL;
1087 rate = (rate & IEEE80211_RATE_VAL) / 2;
1088 if (rate > maxrate)
1089 maxrate = rate;
1120 rate = ieee80211_htrates[i].ht40_rate_400ns;
1122 rate = ieee80211_htrates[i].ht40_rate_800ns;
1124 rate = ieee80211_htrates[i].ht20_rate_400ns;
1126 rate = ieee80211_htrates[i].ht20_rate_800ns;
1127 if (rate > maxrate)
1128 maxrate = rate;
1178 int i, rate, mword;
1192 rate = ieee80211_media2rate(mword);
1194 rate / 2, ((rate & 0x1) != 0 ? ".5" : ""));
1407 * rate only when running; otherwise we may have a mismatch
1408 * in which case the rate will not be convertible.
1417 * Calculate a current rate if possible.
1421 * A fixed rate is set, report that.
1427 * In station mode report the current transmit rate.
1447 * Adjust basic rates in 11b/11g supported rate set.
1448 * Note that if operating on a hal/quarter rate channel
1498 u_int match; /* rate + mode */
1499 u_int media; /* if_media rate */
1514 * Convert IEEE80211 rate value to ifmedia subtype.
1515 * Rate is either a legacy rate in units of 0.5Mbps
1519 ieee80211_rate2media(struct ieee80211com *ic, int rate, enum ieee80211_phymode mode)
1639 if (rate & IEEE80211_RATE_MCS) {
1640 rate &= ~IEEE80211_RATE_MCS;
1641 m = findmedia(htrates, nitems(htrates), rate);
1647 if (rate & IEEE80211_RATE_MCS) {
1648 rate &= ~IEEE80211_RATE_MCS;
1649 m = findmedia(htrates, nitems(htrates), rate);
1654 rate &= IEEE80211_RATE_VAL;
1663 rate | IFM_IEEE80211_11A);
1666 rate | IFM_IEEE80211_11B);
1669 rate | IFM_IEEE80211_FH);
1674 rate | IFM_IEEE80211_FH);
1680 return findmedia(rates, nitems(rates), rate | IFM_IEEE80211_11G);