|
@@ -995,6 +995,8 @@ static int ath9k_rx_skb_preprocess(struct ath_common *common,
|
|
|
struct ieee80211_rx_status *rx_status,
|
|
|
bool *decrypt_error)
|
|
|
{
|
|
|
+ struct ath_hw *ah = common->ah;
|
|
|
+
|
|
|
memset(rx_status, 0, sizeof(struct ieee80211_rx_status));
|
|
|
|
|
|
/*
|
|
@@ -1015,7 +1017,7 @@ static int ath9k_rx_skb_preprocess(struct ath_common *common,
|
|
|
|
|
|
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;
|
|
|
+ rx_status->signal = ah->noise + rx_stats->rs_rssi;
|
|
|
rx_status->antenna = rx_stats->rs_antenna;
|
|
|
rx_status->flag |= RX_FLAG_MACTIME_MPDU;
|
|
|
|