How to get the BSSID of Wi-Fi networks configured in the supplicator - android?

When I use getConfiguredNetworks () to get the BSSID value, it gives me nothing. I get all other values ​​except BSSID. Can someone tell me why this is happening? And yes, the networks that I get have corresponding BSSIDs. I discovered this through getScanResults (). I do not get the BSSID when I use getConfiguredNetworks ().

+4
source share
1 answer

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 ().

+4
source

Source: https://habr.com/ru/post/1390214/


All Articles