Lines Matching full:nf
355 int16_t nf; in ar9280GetNoiseFloor() local
357 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9280GetNoiseFloor()
358 if (nf & 0x100) in ar9280GetNoiseFloor()
359 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor()
361 "NF calibrated [ctl] [chain 0] is %d\n", nf); in ar9280GetNoiseFloor()
362 nfarray[0] = nf; in ar9280GetNoiseFloor()
364 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9280GetNoiseFloor()
365 if (nf & 0x100) in ar9280GetNoiseFloor()
366 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor()
368 "NF calibrated [ctl] [chain 1] is %d\n", nf); in ar9280GetNoiseFloor()
369 nfarray[1] = nf; in ar9280GetNoiseFloor()
371 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9280GetNoiseFloor()
372 if (nf & 0x100) in ar9280GetNoiseFloor()
373 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor()
375 "NF calibrated [ext] [chain 0] is %d\n", nf); in ar9280GetNoiseFloor()
376 nfarray[3] = nf; in ar9280GetNoiseFloor()
378 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR); in ar9280GetNoiseFloor()
379 if (nf & 0x100) in ar9280GetNoiseFloor()
380 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9280GetNoiseFloor()
382 "NF calibrated [ext] [chain 1] is %d\n", nf); in ar9280GetNoiseFloor()
383 nfarray[4] = nf; in ar9280GetNoiseFloor()
392 * Adjust NF based on statistical values for 5GHz frequencies.