Lines Matching full:nf

440 	int16_t nf;  in ar2133GetNoiseFloor()  local
443 * Blank nf array - some chips may only in ar2133GetNoiseFloor()
451 nf = MS(OS_REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar2133GetNoiseFloor()
452 if (nf & 0x100) in ar2133GetNoiseFloor()
453 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
455 "NF calibrated [ctl] [chain 2] is %d\n", nf); in ar2133GetNoiseFloor()
456 nfarray[2] = nf; in ar2133GetNoiseFloor()
458 nf = MS(OS_REG_READ(ah, AR_PHY_CH2_EXT_CCA), AR_PHY_CH2_EXT_MINCCA_PWR); in ar2133GetNoiseFloor()
459 if (nf & 0x100) in ar2133GetNoiseFloor()
460 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
462 "NF calibrated [ext] [chain 2] is %d\n", nf); in ar2133GetNoiseFloor()
463 nfarray[5] = nf; in ar2133GetNoiseFloor()
467 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); in ar2133GetNoiseFloor()
468 if (nf & 0x100) in ar2133GetNoiseFloor()
469 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
471 "NF calibrated [ctl] [chain 1] is %d\n", nf); in ar2133GetNoiseFloor()
472 nfarray[1] = nf; in ar2133GetNoiseFloor()
474 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); in ar2133GetNoiseFloor()
475 if (nf & 0x100) in ar2133GetNoiseFloor()
476 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
478 "NF calibrated [ext] [chain 1] is %d\n", nf); in ar2133GetNoiseFloor()
479 nfarray[4] = nf; in ar2133GetNoiseFloor()
482 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ar2133GetNoiseFloor()
483 if (nf & 0x100) in ar2133GetNoiseFloor()
484 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
486 "NF calibrated [ctl] [chain 0] is %d\n", nf); in ar2133GetNoiseFloor()
487 nfarray[0] = nf; in ar2133GetNoiseFloor()
489 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar2133GetNoiseFloor()
490 if (nf & 0x100) in ar2133GetNoiseFloor()
491 nf = 0 - ((nf ^ 0x1ff) + 1); in ar2133GetNoiseFloor()
493 "NF calibrated [ext] [chain 0] is %d\n", nf); in ar2133GetNoiseFloor()
494 nfarray[3] = nf; in ar2133GetNoiseFloor()
501 * Adjust NF based on statistical values for 5GHz frequencies.