Lines Matching defs:PER
331 wd->PER[i] = 0;
449 u32_t zfRateCtrlUDPTP(zdev_t* dev, u16_t Rate, u32_t PER) {
450 if ((PER < 100) && (Rate > 0) && PER)
451 return 1168000/(((12304/Rate)+197)*(100+100*PER/(100-PER)));
465 wd->PER[rcCell->operationRateSet[i]]);
527 /* PER = fail/total */
531 wd->PER[rcCell->currentRate] = zm_agg_min(100,
533 if (!wd->PER[rcCell->currentRate]) wd->PER[rcCell->currentRate] ++;
536 /* if PER < threshold, do rate probing, return probing rate */
537 if ((wd->PER[rcCell->currentRate] <= (ZM_RATE_PROBING_THRESHOLD+15)) ||
539 ((wd->PER[rcCell->currentRate]/2) <= ZM_RATE_PROBING_THRESHOLD)))
564 if ((highRate != rcCell->currentRate) && wd->PER[highRate] &&
565 ((wd->PER[rcCell->currentRate] + FailDiff[rcCell->currentRate]) >
566 wd->PER[highRate])) {
567 //DbgPrint("PER compare force raise rate to %d", highRate);
614 /* Tx fail event. Calculate PER and lower Tx rate if under */
615 /* PER under threshold. */
655 wd->PER[rcCell->currentRate] = zm_agg_min(100,
657 if (!wd->PER[rcCell->currentRate]) wd->PER[rcCell->currentRate] ++;
659 //zm_msg1_tx(ZM_LV_1, "PER=", per);
660 //DbgPrint("PER=%d, txFail=%d, txMPDU=%d", wd->PER[rcCell->currentRate], wd->txFail[rcCell->currentRate], wd->txMPDU[rcCell->currentRate]);
661 if (wd->PER[rcCell->currentRate] > PERThreshold[rcCell->currentRate])
663 /* Lower Tx Rate if PER < THRESHOLD */
846 BAPER[Rate] = BAFail[Rate] * 1000 / TxMPDU[Rate]; //PER*1000