wlcore: add antenna diversity reading comments
authorGuy Mishol <guym@ti.com>
Mon, 27 Jul 2015 14:25:49 +0000 (17:25 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Aug 2015 07:20:02 +0000 (10:20 +0300)
add comments to the antenna diversity reading

Signed-off-by: Guy Mishol <guym@ti.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/rx.c

index 7df672a84530b0217378d8f9b66c2e10d31e044e..5b2927391d1cef5aaa0c6c4f3947e7f51aa1a1eb 100644 (file)
@@ -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);