Kernel log errors for ath10k during boot

I’ve strange errors with ath10 driver. It’s seems that because of an error it doesn’t use frequency
regulatory of Czech Republic and switches to US defaults. It seems to me that output power of 200mW on 5GHz WiFi band isn’t allowed in CZ unless the output has an automatic regulation. See log:

[ 20.379040] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 20.389514] ath10k_pci 0000:02:00.0: Falling back to user helper
[ 20.399107] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[ 20.408056] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 21.537277] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[ 21.621874] ath: EEPROM regdomain: 0x0
[ 21.621880] ath: EEPROM indicates default country code should be used
[ 21.621882] ath: doing EEPROM country->regdmn map search
[ 21.621886] ath: country maps to regdmn code: 0x3a
[ 21.621889] ath: Country alpha2 being used: US
[ 21.621892] ath: Regpair used: 0x3a
[ 21.624619] cfg80211: Regulatory domain changed to country: US
[ 21.630483] cfg80211: DFS Master region: FCC
[ 21.634709] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 21.644496] cfg80211: (2402000 KHz - 2467000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[ 21.652527] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (N/A)
[ 21.662036] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
[ 21.671545] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
[ 21.679653] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[ 21.687682] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)

Does this help: https://wiki.openwrt.org/doc/uci/wireless

Search for country.

Did you checked the real reg domain set? You can do that using iw reg get. Kernel module sets some default but that is changed later during bootup. And yes, the driver messages during bootup are not nice but driver just tries few ways to load firmware and searches for one that works.

Thanks for info: reg domain is correct

root@router:~$ iw reg get
country CZ: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS
(5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS
(57000 - 66000 @ 2160), (N/A, 40), (N/A)