Wlan 5g not starting most of the time

I don’t remember exactly where but it was openWRT/ LEDE/ ath10k/ mwlwifi forums. I remember that both mac80211 and hostapd needs to be patched for VHT160. In addition there were some patches on github showing enabling DFS scan for 160 MHz if I remember well.
As you can see in code below it seems that current hostapd version is patched and should support [VHT160-80PLUS80] but I really don’t know it’s just based on text output.

I did not spend so much time to investigate as VHT160 is not needed for me. I just tried to replace wpad by hostapd and wpa-supplicant directly but no success.
Anyway you’re free to investigate and please let me know what you find.

This is part of my hostapd generated file (see vht_capab):

driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
country_code=CZ
ieee80211d=1
ieee80211h=1
hw_mode=a
channel=36


ieee80211n=1
ht_coex=0
ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40]
vht_oper_chwidth=1 // this changes to =2 when VHT160 is set //
vht_oper_centr_freq_seg0_idx=42
ieee80211ac=1
vht_capab=[RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][SU-BEAMFORMER][SU-BEAMFORMEE][MU-BEAMFORMER][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][VHT160-80PLUS80][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]

Q: In Luci you can see option to set “VHT160-80PLUS80”? I see just “20/40/80/160 MHz”. What country code and channel you have set?

@HomerSp Mathias is VHT160 working to you?

edit:
iw phy0 info:

valid interface combinations:
		 * #{ managed } <= 1, #{ AP, mesh point } <= 16,
		   total <= 16, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

Here I would expect 160 Mhz so (as mentioned before) maybe there is some problem with DFS.

Log:

notice netifd[]: radio0 (21123): wlan0: interface state HT_SCAN->DFS
notice netifd[]: radio0 (21123): wlan0: DFS-CAC-START freq=5180 chan=36 sec_chan=1, width=2, seg0=50, seg1=0, cac_time=60s
notice netifd[]: radio0 (21123): DFS start_dfs_cac() failed, -1
notice netifd[]: radio0 (21123): Interface initialization failed
notice netifd[]: radio0 (21123): wlan0: interface state DFS->DISABLED
notice netifd[]: radio0 (21123): wlan0: AP-DISABLED 
notice netifd[]: radio0 (21123): wlan0: interface state DISABLED->DISABLED