diff options
author | Guy Mishol <guym@ti.com> | 2015-07-27 17:25:49 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-08-06 10:20:02 +0300 |
commit | 5d7e73ba2fd54b17aa8a9f0bcc228a4200d094ad (patch) | |
tree | 0fa3e55cf1db1b09652da692213a8c853b663a14 /drivers | |
parent | 6c6317321107bee5aad2d85d848b0597428343d8 (diff) | |
download | linux-5d7e73ba2fd54b17aa8a9f0bcc228a4200d094ad.tar.xz |
wlcore: add antenna diversity reading comments
add comments to the antenna diversity reading
Signed-off-by: Guy Mishol <guym@ti.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 7df672a84530..5b2927391d1c 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); |