Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Guy Mishol and committed by
Kalle Valo
5d7e73ba 6c631732

+6
+6
drivers/net/wireless/ti/wlcore/rx.c
··· 74 74 if (desc->rate <= wl->hw_min_ht_rate) 75 75 status->flag |= RX_FLAG_HT; 76 76 77 + /* 78 + * Read the signal level and antenna diversity indication. 79 + * The msb in the signal level is always set as it is a 80 + * negative number. 81 + * The antenna indication is the msb of the rssi. 82 + */ 77 83 status->signal = ((desc->rssi & RSSI_LEVEL_BITMASK) | BIT(7)); 78 84 status->antenna = ((desc->rssi & ANT_DIVERSITY_BITMASK) >> 7); 79 85