All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wlcore: add antenna diversity reading comments
@ 2015-07-27 14:25 Guy Mishol
  2015-08-06  7:20 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Guy Mishol @ 2015-07-27 14:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: Guy Mishol

add comments to the antenna diversity reading

Signed-off-by: Guy Mishol <guym@ti.com>
---
 drivers/net/wireless/ti/wlcore/rx.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ti/wlcore/rx.c b/drivers/net/wireless/ti/wlcore/rx.c
index 7df672a..5b29273 100644
--- a/drivers/net/wireless/ti/wlcore/rx.c
+++ b/drivers/net/wireless/ti/wlcore/rx.c
@@ -74,6 +74,12 @@ static void wl1271_rx_status(struct wl1271 *wl,
 	if (desc->rate <= wl->hw_min_ht_rate)
 		status->flag |= RX_FLAG_HT;
 
+	/*
+	* Read the signal level and antenna diversity indication.
+	* The msb in the signal level is always set as it is a
+	* negative number.
+	* The antenna indication is the msb of the rssi.
+	*/
 	status->signal = ((desc->rssi & RSSI_LEVEL_BITMASK) | BIT(7));
 	status->antenna = ((desc->rssi & ANT_DIVERSITY_BITMASK) >> 7);
 
-- 
1.7.0.4


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

* Re: wlcore: add antenna diversity reading comments
  2015-07-27 14:25 [PATCH] wlcore: add antenna diversity reading comments Guy Mishol
@ 2015-08-06  7:20 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2015-08-06  7:20 UTC (permalink / raw)
  To: Guy Mishol; +Cc: linux-wireless, Guy Mishol


> add comments to the antenna diversity reading
> 
> Signed-off-by: Guy Mishol <guym@ti.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

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

end of thread, other threads:[~2015-08-06  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-27 14:25 [PATCH] wlcore: add antenna diversity reading comments Guy Mishol
2015-08-06  7:20 ` 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.