All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Add per chain RSSI reporting.
@ 2017-06-01 19:10 ` Norik Dzhandzhapanyan
  0 siblings, 0 replies; 6+ messages in thread
From: Norik Dzhandzhapanyan @ 2017-06-01 19:10 UTC (permalink / raw)
  To: ath10k, linux-wireless

Report per chain RSSI

Signed-off-by: Norik Dzhandzhapanyan <norikd@gmail.com>

---
 drivers/net/wireless/ath/ath10k/htt_rx.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c
b/drivers/net/wireless/ath/ath10k/htt_rx.c
index 6c0a821fe79d..110953e0bff9 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -829,6 +829,22 @@ 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;

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 1/1] Add per chain RSSI reporting.
@ 2017-06-01 19:10 ` Norik Dzhandzhapanyan
  0 siblings, 0 replies; 6+ messages in thread
From: Norik Dzhandzhapanyan @ 2017-06-01 19:10 UTC (permalink / raw)
  To: ath10k, linux-wireless

Report per chain RSSI

Signed-off-by: Norik Dzhandzhapanyan <norikd@gmail.com>

---
 drivers/net/wireless/ath/ath10k/htt_rx.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c
b/drivers/net/wireless/ath/ath10k/htt_rx.c
index 6c0a821fe79d..110953e0bff9 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -829,6 +829,22 @@ 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;

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [1/1] Add per chain RSSI reporting.
  2017-06-01 19:10 ` Norik Dzhandzhapanyan
@ 2017-06-12 15:37   ` Kalle Valo
  -1 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-06-12 15:37 UTC (permalink / raw)
  To: Norik Dzhandzhapanyan; +Cc: ath10k, linux-wireless

Norik Dzhandzhapanyan <norikd@gmail.com> wrote:

> Report per chain RSSI to mac80211.
> 
> Signed-off-by: Norik Dzhandzhapanyan <norikd@gmail.com>
> [kvalo@qca.qualcomm.com: fix conflicts and style]
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

This failed to apply and had quite a few checkpatch warnings. So I recreted the
patch manually:

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=5df110e3a093771f23001be2012ab6fa4d87089b

-- 
https://patchwork.kernel.org/patch/9760887/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [1/1] Add per chain RSSI reporting.
@ 2017-06-12 15:37   ` Kalle Valo
  0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-06-12 15:37 UTC (permalink / raw)
  To: Norik Dzhandzhapanyan; +Cc: linux-wireless, ath10k

Norik Dzhandzhapanyan <norikd@gmail.com> wrote:

> Report per chain RSSI to mac80211.
> 
> Signed-off-by: Norik Dzhandzhapanyan <norikd@gmail.com>
> [kvalo@qca.qualcomm.com: fix conflicts and style]
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

This failed to apply and had quite a few checkpatch warnings. So I recreted the
patch manually:

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=5df110e3a093771f23001be2012ab6fa4d87089b

-- 
https://patchwork.kernel.org/patch/9760887/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [1/1] Add per chain RSSI reporting.
  2017-06-01 19:10 ` Norik Dzhandzhapanyan
@ 2017-06-16  6:53   ` Kalle Valo
  -1 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-06-16  6:53 UTC (permalink / raw)
  To: Norik Dzhandzhapanyan; +Cc: ath10k, linux-wireless

Norik Dzhandzhapanyan <norikd@gmail.com> wrote:

> Report per chain RSSI to mac80211.
> 
> Signed-off-by: Norik Dzhandzhapanyan <norikd@gmail.com>
> [kvalo@qca.qualcomm.com: fix conflicts and style]
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

Patch applied to ath-next branch of ath.git, thanks.

8241253d03fe ath10k: add per chain RSSI reporting

-- 
https://patchwork.kernel.org/patch/9760887/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [1/1] Add per chain RSSI reporting.
@ 2017-06-16  6:53   ` Kalle Valo
  0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-06-16  6:53 UTC (permalink / raw)
  To: Norik Dzhandzhapanyan; +Cc: linux-wireless, ath10k

Norik Dzhandzhapanyan <norikd@gmail.com> wrote:

> Report per chain RSSI to mac80211.
> 
> Signed-off-by: Norik Dzhandzhapanyan <norikd@gmail.com>
> [kvalo@qca.qualcomm.com: fix conflicts and style]
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

Patch applied to ath-next branch of ath.git, thanks.

8241253d03fe ath10k: add per chain RSSI reporting

-- 
https://patchwork.kernel.org/patch/9760887/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-16  6:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 19:10 [PATCH 1/1] Add per chain RSSI reporting Norik Dzhandzhapanyan
2017-06-01 19:10 ` Norik Dzhandzhapanyan
2017-06-12 15:37 ` [1/1] " Kalle Valo
2017-06-12 15:37   ` Kalle Valo
2017-06-16  6:53 ` Kalle Valo
2017-06-16  6:53   ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.