Skip to content
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

Scanning of wifi networks (wifi-wand a) no longer works following the airport command deprecation. #24

Open
arnlen opened this issue Apr 12, 2024 · 2 comments

Comments

@arnlen
Copy link
Contributor

arnlen commented Apr 12, 2024

Apple has officially retired the airport command-line utility on macOS Sonoma 14.4 (see this post)

Since the scan feature was relaying on airport (source code), it's now broken. 😢

Current behavior

$ wifi-wand a
Available networks are:

[]

Expected behavior

As per Apple recommandation, we should now use the wdutil command line tool.
Unfortunately, since scanning isn't available (yet?) with wdutil, fixing this issue won't be as easy as switching to the new tool...

Related issues

Many people are currently fighting to find a workaround 💪

@keithrbennett
Copy link
Owner

Using Swift scripts and the Mac OS CoreWLAN subsystem, I have just restored (in version 2.16.1) the following functions of wifiwand disabled due to the airport deprecation:

  • a[vail_nets] - array of names of the available networks
  • d[isconnect] - disconnects from current network, does not turn off wifi

An added benefit is that the disconnect task no longer requires sudo access.

However, the CoreWLAN functionality on which the Swift scripts rely is only available if XCode is installed.

Please let me know if you have any issues.

@VladislavGatsenko
Copy link

I was looking for a solution to a different problem, but maybe this will help with a another solution. Just execute in the console:

system_profiler SPAirPortDataType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants