100Mbps on Wi-Fi to wan

Hello. I have an Archer C6 router and it runs openwrt perfectly. I'm running 21.04-rc4. My problem is that the internet works well on ethernet (400mbps WAN), but is limited to nearly 100mbps on Wi-Fi 5GHZ AC. The problem is that it connect with 867mbps and iperf3 tests show that in fact it can deliver that speed in the local network. So I'm thinking it's something to do with wan->lan? On ethernet the computer can pull full speed on speedtest, so my wan connection speed is not the problem.