way to display it is by holding the Option key and clicking the Wi-Fi icon.
In macOS 14.0, wdutil was still usable, but in 14.6.1, the returned information is now <redacted>. I am unsure if there is an official way to obtain the corresponding BSSID.
I need to process the BSSID in my code, so either a command-line tool or an API would work.
The API for this (on macOS) is Core WLAN.
There have been a bunch of changes in this space recently. The exact details are complex but, in summary, on modern systems you can only get this information from an app-like process running in a user context with the Location privilege. See this thread for more background.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"