Spectral scan feature not working for ath10k

I am trying to run below commands and it's giving me nonexistent directory error. I followed Spectral scan not working on 18.06? - #3 by hurricos but no luck.
commands:

 ip link set dev wlan0 up
    echo background > /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl
    echo trigger > /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl
    iw dev wlan0 scan
    echo disable > /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl
    cat /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan0 > samples

error:

ash: can't create /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl: nonexistent directory

Not supported by ath10k afair

any other way to make it work?