diff mbox

wlcore: add antenna diversity reading comments

Message ID 1438007149-23044-1-git-send-email-guym@ti.com (mailing list archive)
State Accepted
Delegated to: Kalle Valo
Headers show

Commit Message

Guy Mishol July 27, 2015, 2:25 p.m. UTC
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(-)

Comments

Kalle Valo Aug. 6, 2015, 7:20 a.m. UTC | #1
> add comments to the antenna diversity reading
> 
> Signed-off-by: Guy Mishol <guym@ti.com>

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

Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);