I found online an app to scan Access points around a cellphone and get SSID I added to it getting Mac Address, and RSSI Value.
I want to add to it getting tsf, and Last beacon. you can see what I am looking for after running this command put your interface name instead of the Xs.
iwlist XXXX scan | grep 'ESSID\|Address\|Signal level\|Extra'
Also I want my server to initiate a request to the App to collecte the information about Access points around the devices without taking any action in the app as well as I want the app responses to the server with the information without taking any action in it.
This is the app I found online.