Ask HN: Apple removed macOS ability to disassociate Wi-Fi from CLI

https://news.ycombinator.com/item?id=39701417
by 1letterunixname • 2 years ago
7 1 2 years ago

The magic incantation for disassociating from Wi-Fi, i.e., for Ethernet/Wi-Fi toggling, no longer works.

    sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
Results in the output:
    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.
But nothing happens. So there appears to be no replacement for CLI-based Wi-Fi disassociation.

Anyone have a solution for Sonoma 14.1 arm by chance?

I've submitted a radar, but no one's ever going to read it and the functionality has already been broken pointlessly.

See also:

- https://forums.developer.apple.com/forums/thread/748161

Related Stories

Loading related stories...

Source preview

news.ycombinator.com