Lines Matching defs:rates

228 static boolean_t is_rates_support(int fd, int num, uint8_t *rates);
425 {RATES, "rates", do_get_rates, do_set_rates, RW},
450 * the rates value is in increments of 500kb/s.
452 * 802.11b(IEEE Std 802.11b-1999) page35, rates should be:
454 * 802.11a(IEEE Std 802.11a-1999) page47, rates should be:
456 * 802.11g(IEEE Std 802.11g-2003) page44, rates should be:
724 * rates=1,2
1553 "\t\trates\t\t - set of rates, seperated by ',' valid rates:\n"
3360 * is_rates_support: Querying driver about supported rates.
3363 is_rates_support(int fd, int num, uint8_t *rates)
3369 assert((rates != NULL)&&(num != 0));
3370 PRTDBG(("is_rates_support(%d, %d, 0x%x)\n", fd, num, rates));
3377 PRTDBG(("rates[%d] = %d\n", i, rates[i]));
3381 PRTDBG(("supported rates[%d]=%d\n", j, value));
3382 if (value == rates[i]) {
3387 if (rates[i] == 11) {
3396 gExecName, rates[i]/2);
3410 rates_convert(const char *rates)
3416 if (strcmp(rates, wifi_rates_s[i].rates_s) == 0) {
3423 "invalid rates '%s'\n"), gExecName, rates);
3434 * then after call, rates[] = {2,4,11,22} will be returned.
3441 uint8_t *rates = NULL;
3450 PRTDBG(("get_rates: empty rates string\n"));
3461 rates = safe_calloc(sizeof (uint8_t), i);
3465 PRTDBG(("rates[0]: %s\n", token));
3466 rates[0] = rates_convert(token);
3469 PRTDBG(("rates[%d]: %s\n", i, token));
3470 rates[i++] = rates_convert(token);
3476 if (rates[j] == rates[i]) {
3478 gettext("%s: rates duplicated\n"),
3480 free(rates);
3485 return (rates);
3493 uint8_t *rates;
3499 rates = get_rates(arg, &num);
3500 if ((rates == NULL) ||
3501 is_rates_support(fd, num, rates) == B_FALSE) {
3508 = rates[i];
3510 free(rates);
4369 * The same goes for the rates.
4375 uint8_t *rates;
4443 rates = get_rates(value, &num);
4444 if (rates == NULL) {
4447 free(rates);