Skip to content

Commit

Permalink
Add RSSI per chain (backported from official ath10k)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Pateloup authored and Tristan Pateloup committed Jul 11, 2017
1 parent fe55035 commit 43fa051
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ath10k/htt_rx.c
Expand Up @@ -838,6 +838,23 @@ static void ath10k_htt_rx_h_signal(struct ath10k *ar,
struct ieee80211_rx_status *status,
struct htt_rx_desc *rxd)
{
int i;

for(i=0;i<IEEE80211_MAX_CHAINS;i++)
{
status->chains &= ~BIT(i);

if (rxd->ppdu_start.rssi_chains[i].pri20_mhz != 0x80)
{
status->chain_signal[i] = ATH10K_DEFAULT_NOISE_FLOOR +
rxd->ppdu_start.rssi_chains[i].pri20_mhz;

status->chains |= BIT(i);

}
}


/* FIXME: Get real NF */
status->signal = ATH10K_DEFAULT_NOISE_FLOOR +
rxd->ppdu_start.rssi_comb;
Expand Down

0 comments on commit 43fa051

Please sign in to comment.