Lines Matching full:nf
297 int16_t nf; in ar9287GetNoiseFloor() local
299 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9287GetNoiseFloor()
300 if (nf & 0x100) in ar9287GetNoiseFloor()
301 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor()
303 "NF calibrated [ctl] [chain 0] is %d\n", nf); in ar9287GetNoiseFloor()
304 nfarray[0] = nf; in ar9287GetNoiseFloor()
306 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9287GetNoiseFloor()
307 if (nf & 0x100) in ar9287GetNoiseFloor()
308 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor()
310 "NF calibrated [ctl] [chain 1] is %d\n", nf); in ar9287GetNoiseFloor()
311 nfarray[1] = nf; in ar9287GetNoiseFloor()
313 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9287GetNoiseFloor()
314 if (nf & 0x100) in ar9287GetNoiseFloor()
315 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor()
317 "NF calibrated [ext] [chain 0] is %d\n", nf); in ar9287GetNoiseFloor()
318 nfarray[3] = nf; in ar9287GetNoiseFloor()
320 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR); in ar9287GetNoiseFloor()
321 if (nf & 0x100) in ar9287GetNoiseFloor()
322 nf = 0 - ((nf ^ 0x1ff) + 1); in ar9287GetNoiseFloor()
324 "NF calibrated [ext] [chain 1] is %d\n", nf); in ar9287GetNoiseFloor()
325 nfarray[4] = nf; in ar9287GetNoiseFloor()
334 * Adjust NF based on statistical values for 5GHz frequencies.