2011-03-30 15:37:36 +03:00
|
|
|
--- a/drivers/net/wireless/ath/ath9k/recv.c
|
|
|
|
+++ b/drivers/net/wireless/ath/ath9k/recv.c
|
2011-04-08 21:55:18 +03:00
|
|
|
@@ -956,6 +956,9 @@ static int ath9k_rx_skb_preprocess(struc
|
2011-03-30 15:37:36 +03:00
|
|
|
struct ieee80211_rx_status *rx_status,
|
|
|
|
bool *decrypt_error)
|
|
|
|
{
|
|
|
|
+ struct ath_hw *ah = common->ah;
|
|
|
|
+ int noise;
|
|
|
|
+
|
|
|
|
memset(rx_status, 0, sizeof(struct ieee80211_rx_status));
|
|
|
|
|
|
|
|
/*
|
2011-04-08 21:55:18 +03:00
|
|
|
@@ -976,7 +979,13 @@ static int ath9k_rx_skb_preprocess(struc
|
2011-03-30 15:37:36 +03:00
|
|
|
|
|
|
|
rx_status->band = hw->conf.channel->band;
|
|
|
|
rx_status->freq = hw->conf.channel->center_freq;
|
|
|
|
- rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi;
|
|
|
|
+
|
2011-04-05 23:28:02 +03:00
|
|
|
+ if (ah->curchan && ah->curchan->noisefloor)
|
2011-03-30 15:37:36 +03:00
|
|
|
+ noise = ah->curchan->noisefloor;
|
|
|
|
+ else
|
|
|
|
+ noise = ATH_DEFAULT_NOISE_FLOOR;
|
|
|
|
+
|
|
|
|
+ rx_status->signal = noise + rx_stats->rs_rssi;
|
|
|
|
rx_status->antenna = rx_stats->rs_antenna;
|
|
|
|
rx_status->flag |= RX_FLAG_MACTIME_MPDU;
|
|
|
|
|