I have a Linux machine operating as an access point using hostapd and dnsmasq. The AP is working fine (the device is wlan0), but I am having difficulty finding the SSID of the AP for monitoring purposes. I am really using the nl80211 Netlink interface, but iw is a useful proxy here.
The output of iw dev wlan0 link is:
Interface wlan0
ifindex 2
type AP
wiphy 3
And iw dev wlan0 link is:
Not connected.
However, I'd like to find out the SSID of the running AP on this device (without having to ask the program that set it up in the first place).