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

Wifi List is not working #25

Open
BBaek opened this issue Mar 20, 2024 · 5 comments
Open

Wifi List is not working #25

BBaek opened this issue Mar 20, 2024 · 5 comments

Comments

@BBaek
Copy link

BBaek commented Mar 20, 2024

Wifi List is not working. This is the alfred workflow debug error log below.
When I type 'wifilist' wifi list does not show.

Alfred 5, Network workflow v1.7


[09:15:01.880] Network[Script Filter] Queuing argument '(null)'
[09:15:01.993] Network[Script Filter] Script with argv '(null)' finished
[09:15:02.000] STDERR: Network[Script Filter] src/helpers.sh: line 287: [: : integer expression expected
src/helpers.sh: line 289: [: : integer expression expected
src/helpers.sh: line 291: [: : integer expression expected
[09:15:02.001] Network[Script Filter]

@mrodalgaard
Copy link
Owner

Hi @BBaek,

I actually see the same error (src/helpers.sh: line 289: [: : integer expression expected) for each wifi AP found when running wifilist, but output is still correct. Does wifilist show an empty list in Alfred or something else? What is the output when you run below command in your terminal?

´/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --scan´

@yamaya-masayuki
Copy link

yamaya-masayuki commented Apr 3, 2024

❯ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --scan

WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool.
❯ sw_vers 
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224

@yarub123
Copy link

Same issue as the other 2 guys. I think it might be truly because of the deprecated, or soon to be deprecated, "airport --scan" ....

Even after fixing the handling of the integers in 287/8 and 291... still the wifilist shows nothing... the debug shows the script working... running helpers.sh and the other relevant src scripts in terminal works fine with no errors...

Issue is: Alfred shows nothing in the list... (it used to work on my older mac 🤷)

@mrodalgaard
Copy link
Owner

Yikes! Bad news. MacOS 14.4 removed the airport utility completely because of a "security concern" and there is no out-of-the-box replacement. wdutil does not have the functionality to scan for APs and is also behind sudo.

Anyone with suggestions on alternatives? Otherwise I'll have to remove that feature completely, which would be a shame.

https://www.reddit.com/r/MacOS/comments/1bjjchk/rip_airport_cli_macos_sonoma_144_removes_the/

@VladislavGatsenko
Copy link

I was looking for a solution to a different problem, but maybe this will help with a 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

5 participants