OSDN Git Service

wcn36xx: Implement get_snr()
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Sat, 15 Jan 2022 00:16:43 +0000 (00:16 +0000)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 19 Jan 2022 08:49:14 +0000 (10:49 +0200)
commit039d5d4db4bccbc299ce3daa2d30e933c4a2719b
treeac7966b5a1cba68c7e5931326c7b8b6f8888d5e7
parent6bae9de622d3ef4805aba40e763eb4b0975c4f6d
wcn36xx: Implement get_snr()

The wcn36xx BD phy descriptor returns both Received Signal Strength
Information (RSSI) and Signal To Noise Ratio (SNR) with each delivered BD.

The macro to extract this data is a simple-one liner, easily imported from
prima driver. This data will be useful to us when implementing
mac80211-ops->get_survey().

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220115001646.3981501-2-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/txrx.c