How to build IPQ4018 firmware

Well:

"You might be interested to test reverting the ath10k buffer reduction that was done in March in master. That might help with performance issues.

The background is that the ath10k buffer size reduction was introduced a bit sneakily into ipq806x with a commit improving support for QCA4019. (The commit title talks about QCA4019 but does not mention that ath10k buffers get reduced for all chips):
https://git.lede-project.org/?p=source.git;a=commit;h=cc189c0b7fa015978b04bb663a75b1da726376b56

I tried to initiate discussion about that action later, but that got no traction as there was no real proof that the buffer reduction caused harm in a significant way. If there would be proof, the action might hopefully be retracted."

"I couldn't wait, so I tested it just now. Bad news though, performance on wifi is still abysmal."

Thing is, this wasn't the first time. It comes up again and again, if 2.4G acts up on the R7800.
As for the IPQ4019, In my observations, the firmware-5.bin_10.4-3.4-00082 isn't as stable/robust as the older firmware-5.bin_10.4-3.2.1-00053. So maybe the same is true for the QCA9984, you could ask people that have a problem with the 2.4GHz stability to try the older firmware. But YMMV.