macOS WiFi BSSID scan
The undocumented, discontinued macOS command-line utility
airport–
not to be confused with the Airport Utility app–gave detailed information about the current WiFi connection and nearby WiFi APs.
This utility was located at /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
.
Since discontining airport, current BSSID requires using CoreWLAN framework as demonstrated in Python scan-wifi-python.
Apple provides a list of device WiFi support.