I assume it will work like this (even if it’s not mentioned in the documentation): getConfiguredNetworks () only retrieves my “saved” Wi-Fi hotspots, which probably don’t save the BSSID (since you don’t care about which access point to connect, just so that it has the expected ssid). If you need a BSSID, you probably just need to cross reference getScanResults () using getConfiguredNetworks ().
source share