AP mode on Debian


I’m trying to configure my dragonboard as an access point. I tried out multiple guides but none worked. I’m using hostapd and dnsmaq. Anyone know how to configure them properly?

I can configure open AP, and it is working well.
I tried to add security and tried to hide the SSID, none of the two are not working.
Maybe someone knows how to configure AP with security or hidden?