September 06, 2021
I was unable to turn on my Wi-Fi on macOS, the buttons in the menu bar and system preferences did nothing. In this post, I go over how I fixed it.
When I opened network preferences, the window looked like this:

Pressing the “turn Wi-Fi on” button did absolutely nothing.
The solution that worked for me was:
/Library/Preferences/SystemConfiguration/, or at the very least the files NetworkInterfaces.plist, com.apple.airport.plist, and com.apple.wifi.message-tracer.plist.
You need root/admin privileges.Your mileage may vary.
(Update: in the end, this still works as a temporary fix, but for me it turned out to be a hardware issue. Replacing the Wi-Fi cable fixed it permanently.)