How can we get the BSSID value for a wifi network without sudo

How can we get the BSSID value for a wifi network without sudo

we have tried with different options but they dont seem to work.It seems they have been deprecated.

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en1 --getinfo | grep BSSID | awk -F ': ' '{print $2}'

ioreg -l -n AWDLPeerManager | perl -lne 'print $1 if $_ =~ /IO80211BSSID.<(.)>/;' | fold -w2 | paste -sd: -

How can we get the BSSID value for a wifi network without sudo

sudo isn’t the issue here. Rather, the APIs for returning detailed Wi-Fi information have recently been moved behind the Location privilege (System Settings > Privacy & Security > Location). That change started rolling out in macOS 11 with limits on the BSSID. In macOS 14 we extended it to the SSID. And in various macOS 14.x releases we’ve plugged some ‘leaks’, where it was possible to bypass this new privacy policy.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How can we get the BSSID value for a wifi network without sudo
 
 
Q