-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All the returned BSSIDs are null #1
Comments
Are you using 10.15 beta? I found a post about CoreWLAN that in 10.15 the BSSID returns nil somehow. |
@sushihangover I updated the README about this. I did some research on this, seemed from 10.15 apple becomes more strict on privacy so BSSID become not something you can ask for free :( |
I am little bit confused if there is workaround for this. I am running Catalina, successfully build project and signed locally as stated in the README: it doesn't work. All channels shows empty BSSID. Is there some workaround for this? It is not clear for me from these comments above. |
@bmansvk As mentioned in README, even signing the app does not work. A work around for 10.15 is scan and connect via channel number
|
Yes I tried this.
Mac successfully connects to specified SSID but not channel 44, only 11 (which connect there by default, chan 11 has better signal than 44). There are same SSIDs on channel 44 with different BSSIDs (multiple APs on channel 44 with same SSID) It seems that still doesn't work for me. I thought this is because missing BSSID in "scan command".
|
Thanks for reporting. I sometimes can reproduce the problem but not every time. Looks like macOS has some other logic to select Wifi even for specified network (ssid and channel in this case). I'll need some further investigation. |
Same here on 10.15.5 |
Hi guys, thanks for the comment, after I tested this API in some of my friends' places, office... I can only say the behavior is unpredictable. try interface.associate(to: network, password: password) When loop to this line, the network for sure is the correct one, but sometime the OS decides to connect to one with strongest signal |
Is the app sandboxed? I got my networks to return their bssids by enabling the Outgoing Connections (Client) capability in the App Sandbox section. |
@Aklaran Is it a different app or this one? I tried to test it and it returns illegal instruction after enabling sandbox |
@braineo This is just in a minimal test app that I spun up, I haven't tried it in this one |
@Aklaran Thanks! Seems command line application is not treated equally with an App, I would need to have a pseudo to hold this command line. |
As a python script kiddie I don't know much of anything - but would this help with pulling BSID on 10.15+ ? It's saying to enable CoreLocations prior to checking networks |
I've tried this one in another branch, although I made it asking you permissions for location, it still does not work. The explanation of inheriting sand box from parent Application seems promising, going to try it later |
I'm having the exact problem |
This might be fixed in MacOS 13. In Python I am able to get the BSSID using CoreWLAN after granting location services permissions to Python itself. This same approach was not working for Python in earlier version of MacOS. See this thread for more details: Been playing with the Swift code, but I am having trouble getting generate the request for permissions. |
Same here, scan shows all blank info (even scanning with |
All the returned BSSIDs are null, thus it can not connect to one when supplied (via airport scan)
./.build/x86_64-apple-macosx/debug/bssid scan
The text was updated successfully, but these errors were encountered: