wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Mon, 21 Sep 2020 13:21:17 +0000 (16:21 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 22 Sep 2020 07:22:53 +0000 (10:22 +0300)
commitf779a92f7b69bf4f421b8bdcc744307fa9c46b32
treeffd30e122f2982861c98efc51cc61d66f535c085
parent59b5c8447c14e7aeda90439f05968bcdbae11af1
wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number

Uses HW_VALUE_CHANNEL() to extract the channel number from a
struct ieee80211_channel->hw_value. Once done we can use the upper bits of
the hw_value to encode PHY related data.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200910150708.2179043-3-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/smd.c