HowTo create ipq40xx BDF files

There could be small differences in board construction and this could lead to worse range of WiFi if wrong BDF is used. And naturally, vendor BDFs were used for certification, so to be in line with limits, use ones provided with device.

OpenWrt doesn't have any logic to reload BDF depending on what country is set in configuration, so people include single BDF for each band covering most of the world. I, in contrary, did include all of BDFs that vendor provided, since there were only few of them (https://git.openwrt.org/?p=project/firmware/qca-wireless.git;a=commit;h=5e8d89f1b93ba2bd7cb7291f0f8e7272cfc86e6a), so "power users" could change them. This was also accepted upstream (https://lore.kernel.org/ath10k/874jqjli8o.fsf@kernel.org), so if You want to package more of them, go ahead.

Keep in mind to first compare md5sums with all variants of vendor provided ones, if they overlap. After (this one also applies if You want to package single BDF for each band), unpack OpenWrt ones from qca-wireless.git and upstream ones from linux-firmware.git and compare md5sums, maybe it's already there under different name.

1 Like