Skip to contentSkip to conversation

wlcore: add antenna diversity reading comments

PATCH Applied Guy Mishol 2 participants 2 messages Jul 27, 2015 – Aug 6, 2015 TI wilink wireless drivers

lore
Share & tools
lore

Guy Mishol

author
#0 lore raw

PATCH 1/1 wlcore: add antenna diversity reading comments

add comments to the antenna diversity reading

---
 drivers/net/wireless/ti/wlcore/rx.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/net/wireless/ti/wlcore/rx.c +6 -0
index 7df672a..5b29273 100644
@@ -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);
 
Signature · 1 line
1.7.0.4