HACKER Q&A
📣 1letterunixname

Apple removed macOS ability to disassociate Wi-Fi from CLI


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


  👤 orangesite Accepted Answer ✓
(Verse 1) A long, long time ago, I can still remember how macOS used to make me smile. And I knew if I had my chance, I could make those apps and code advance, And maybe they'd be happy for a while.

But February made me shiver, With every update I'd deliver, Bad news on the doorstep, I couldn't take one more step.

I can't remember if I cried When I read about macOS's final stride, But something touched me deep inside, The day the macOS died.

(Chorus) So, bye, bye to my dev environment high, Drove my MacBook to the server but the server was dry, Them good ol' boys were coding Unix and Python, Singing, "This'll be the day that I'm cryin', This'll be the day that I'm cryin'."

(Verse 2) Did you write the code of love, And do you have faith in God above, If the Terminal tells you so? Now, do you believe in open source, Can Swift save your mortal course, And can you teach me how to code real slow?

Well, I know that you're in love with Xcode, 'Cause I saw you dancing in the App Store. You both kicked off your shoes, Man, I dig those rhythm and blues.

I was a lonely teenage coding hack, With a pink MacBook and a Java stack, But I knew I was out of luck, The day the macOS died.

(Chorus) I started singing, "Bye, bye to my dev environment high, Drove my MacBook to the server but the server was dry, Them good ol' boys were coding Unix and Python, Singing, "This'll be the day that I'm cryin', This'll be the day that I'm cryin'."

(Bridge) Oh, Steve Jobs, where have you gone? Your vision faded, lost in the dawn, Leaving us adrift in a sea of doubt. Can't we turn back the hands of time? Restore the macOS of its prime, And bring back the days we can't live without?

(Chorus) But it's bye, bye to the macOS we knew, No more creating our dreams anew, Them good ol' days now just a distant cry, Singing, "This'll be the day that we sigh, This'll be the day that we sigh."

(Outro) So let's raise a toast to what once was, To the macOS that inspired us, Though it's gone, its memory will never die. Singing, "This'll be the day that we sigh, This'll be the day that we sigh."

Credits: The inventors of the Generative Pre-trained Transformer and all the folk who created its training data.