Luci, retrieving SSID list

Hi, I'm working on a custom luci version that has no Wi-Fi scanning, and I've been tasked to restore it. Any idea on how to do it?

Thank you in advance
Luca