source: branches/backfire/package/mac80211/patches/540-ath9k_fix_reported_signal_strength.patch @ 26536

Last change on this file since 26536 was 26536, checked in by nbd, 5 years ago

mac80211: update to trunk as of r26534

File size: 838 bytes
  • drivers/net/wireless/ath/ath9k/recv.c

    a b static int ath9k_rx_skb_preprocess(struc 
    956956                                   struct ieee80211_rx_status *rx_status, 
    957957                                   bool *decrypt_error) 
    958958{ 
     959        struct ath_hw *ah = common->ah; 
     960        int noise; 
     961 
    959962        memset(rx_status, 0, sizeof(struct ieee80211_rx_status)); 
    960963 
    961964        /* 
    static int ath9k_rx_skb_preprocess(struc 
    976979 
    977980        rx_status->band = hw->conf.channel->band; 
    978981        rx_status->freq = hw->conf.channel->center_freq; 
    979         rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi; 
     982 
     983        if (ah->curchan && ah->curchan->noisefloor) 
     984                noise = ah->curchan->noisefloor; 
     985        else 
     986                noise = ATH_DEFAULT_NOISE_FLOOR; 
     987 
     988        rx_status->signal = noise + rx_stats->rs_rssi; 
    980989        rx_status->antenna = rx_stats->rs_antenna; 
    981990        rx_status->flag |= RX_FLAG_MACTIME_MPDU; 
    982991 
Note: See TracBrowser for help on using the repository browser.