Lines Matching defs:rate
1551 int rate;
1553 rate = (int) (2*v);
1554 if (rate != 2*v)
1555 errx(-1, "invalid %s rate (must be .5 Mb/s units)", tag);
1556 return rate; /* NB: returns 2x the specified value */
1562 int rate, flags;
1564 rate = getrate(val, "roam");
1569 _APPLY_RATE1(flags, roamparams, rate, rate);
1571 _APPLY_RATE(flags, roamparams, rate, rate);
1578 int rate, flags;
1580 rate = getrate(val, "mcast");
1585 _APPLY_RATE1(flags, txparams, mcastrate, rate);
1587 _APPLY_RATE(flags, txparams, mcastrate, rate);
1594 int rate, flags;
1596 rate = getrate(val, "mgmt");
1601 _APPLY_RATE1(flags, txparams, mgmtrate, rate);
1603 _APPLY_RATE(flags, txparams, mgmtrate, rate);
1623 int rate = getrate(val, "ucast");
1626 _APPLY_RATE1(flags, txparams, ucastrate, rate);
1628 _APPLY_RATE(flags, txparams, ucastrate, rate);
2367 int rate = rates[i] & IEEE80211_RATE_VAL;
2368 if (rate > maxrate)
2369 maxrate = rate;
3795 if (rp->rssi == 0 && rp->rate == 0)
3801 rp->rate &~ IEEE80211_RATE_MCS);
3805 rp->rate &~ IEEE80211_RATE_MCS);
3808 LINE_CHECK("roam:%-7.7s rssi %2u.5dBm rate %2u Mb/s",
3809 modename[mode], rp->rssi/2, rp->rate/2);
3811 LINE_CHECK("roam:%-7.7s rssi %4udBm rate %2u Mb/s",
3812 modename[mode], rp->rssi/2, rp->rate/2);
4549 LINE_CHECK("roam:rate %u", rp->rate/2);
5214 DEF_CMD_ARG("roam:rate", set80211roamrate),