]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: support DT ieee80211-freq-limit property to limit channels
authorChristian Lamparter <chunkeey@gmail.com>
Mon, 11 Oct 2021 15:18:00 +0000 (18:18 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 13 Oct 2021 05:46:20 +0000 (08:46 +0300)
commit139661428474633e233178a92f4074ca9dd52d3d
treed0e020f4b42c9044303dc8da524a05e7db3fe27f
parent10fc9cde1895fd6c9d12f81e147987e71ff6d4b2
ath9k: support DT ieee80211-freq-limit property to limit channels

The common DT property can be used to limit the available channels
but ath9k has to manually call wiphy_read_of_freq_limits().

I would have put this into ath9k_of_init(). But it didn't work there.
The reason is that in ath9k_of_init() the channels and bands are not yet
registered in the wiphy struct. So there isn't any channel to flag as
disabled.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211009212847.1781986-1-chunkeey@gmail.com
drivers/net/wireless/ath/ath9k/init.c