ath10k: limit available channels via DT ieee80211-freq-limit
authorSven Eckelmann <sven.eckelmann@openmesh.com>
Fri, 24 Aug 2018 12:04:59 +0000 (15:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:45:30 +0000 (18:45 +0100)
commitf71230e6898e0089c8a88c49d2ec43bfd628d050
treeb15ff969f274c2de830cd138339331cb330b4639
parent8cad5d80f8d0c5e551bf89c48dc4a532fba2b0b3
ath10k: limit available channels via DT ieee80211-freq-limit

[ Upstream commit 34d5629d2ca89d847b7040762b87964c696c14da ]

Tri-band devices (1x 2.4GHz + 2x 5GHz) often incorporate special filters in
the RX and TX path. These filtered channel can in theory still be used by
the hardware but the signal strength is reduced so much that it makes no
sense.

There is already a DT property to limit the available channels but ath10k
has to manually call this functionality to limit the currrently set wiphy
channels further.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/mac.c