-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
BSSIDs not being populated by wifiNetworks() on macOS Monterey 12.0.1 #630
Comments
Using '/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s -x' returns XML that contains the bssid. Seems like a reasonable alternative, the xml can just be parsed. |
@akashkashyap I created an tiny xml parser and will see if this also works here. I will then implement a working version this weekend. |
Thanks @sebhildebrandt, sounds great! I'll keep an eye out for a new release once you have it working. |
FYI Something to keep in mind: I wrote a quick-hack workaround just for bssid's for myself using xpath and xmldom, and I have been running into an issue where stdout from child_process.exec is truncated sometimes. Basically the truncated stdout doesn't break all parsing, but it results in missing some of the network connections. Worth keeping in mind as you work on the full fix. It looks like there's an open issue on the nodejs side for this but there hasn't been any activity since May: nodejs/node#19218 |
@akashkashyap very clear, thank you for reminding me! I will increase here the buffer size (and see if this helps - the output is quite large and might be larger than what I have configured).... Concerning I will keep you updated on the progress. |
@akashkashyap I just released a new version with a fix for this. Can you test it on your side? Version 5.9.16 just released |
Looks good, it's working on my end! Thanks Sebastian. |
@sebhildebrandt, just saw a crash today on my end in parseWifiDarwin.
Noticed this when wifi was turned off and ethernet was plugged in, haven't been able to repro with wifi on. I think you just need to handle the null case. |
@akashkashyap Will havea look on it ... |
@akashkashyap Should be fixed now. Version 5.9.17 just released |
Describe the bug
On macOS Monterey 12.0.1, the object returned by wifiNetworks() doesn't have BSSID's populated. It just contains empty strings for each entry. I haven't gotten the chance to see if this behavior replicates on other OS's/versions
To Reproduce
Steps to reproduce the behavior:
Current Output
Empty string in bssid field.
Expected behavior
The correct string in the bssid field.
Environment (please complete the following information):
Additional context
Example screenshot:
The text was updated successfully, but these errors were encountered: