mac80211: fix txpower when using DFS channels
authorDavid Bauer <mail@david-bauer.net>
Sat, 14 Dec 2019 22:38:02 +0000 (23:38 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 15 Dec 2019 23:50:10 +0000 (00:50 +0100)
commit6ec288a178de37c30831398f5a470fdc43b18130
tree9513fe55745790448def9acc6d7de0bfe3d5add8
parenta15f658ed0840dc7d8e47d4c2c91aa35bdc0a96c
mac80211: fix txpower when using DFS channels

With this patch, txpower for the PHY is applied when configuring the PHY
instead of the VIF. Otherwise, the configured txpower is not applied for
the first initialized VIF when using DFS channels, as it is currently
applied too early when the CAC hasn't finished.

Reported-by: Martin Weinelt <martin@darmstadt.freifunk.net
Signed-off-by: David Bauer <mail@david-bauer.net>
Tested-by: Martin Weinelt <martin@darmstadt.freifunk.net>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh