diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r-- | drivers/net/wireless/ath9k/recv.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c index f4be5d11c9d5..4983402af559 100644 --- a/drivers/net/wireless/ath9k/recv.c +++ b/drivers/net/wireless/ath9k/recv.c | |||
@@ -999,20 +999,11 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush) | |||
999 | rx_status.flags |= ATH_RX_SHORT_GI; | 999 | rx_status.flags |= ATH_RX_SHORT_GI; |
1000 | } | 1000 | } |
1001 | 1001 | ||
1002 | /* sc->sc_noise_floor is only available when the station | 1002 | /* sc_noise_floor is only available when the station |
1003 | attaches to an AP, so we use a default value | 1003 | attaches to an AP, so we use a default value |
1004 | if we are not yet attached. */ | 1004 | if we are not yet attached. */ |
1005 | |||
1006 | /* XXX we should use either sc->sc_noise_floor or | ||
1007 | * ath_hal_getChanNoise(ah, &sc->sc_curchan) | ||
1008 | * to calculate the noise floor. | ||
1009 | * However, the value returned by ath_hal_getChanNoise | ||
1010 | * seems to be incorrect (-31dBm on the last test), | ||
1011 | * so we will use a hard-coded value until we | ||
1012 | * figure out what is going on. | ||
1013 | */ | ||
1014 | rx_status.abs_rssi = | 1005 | rx_status.abs_rssi = |
1015 | ds->ds_rxstat.rs_rssi + ATH_DEFAULT_NOISE_FLOOR; | 1006 | ds->ds_rxstat.rs_rssi + sc->sc_ani.sc_noise_floor; |
1016 | 1007 | ||
1017 | pci_dma_sync_single_for_cpu(sc->pdev, | 1008 | pci_dma_sync_single_for_cpu(sc->pdev, |
1018 | bf->bf_buf_addr, | 1009 | bf->bf_buf_addr, |