Failing to connect to WiFi network with MacAuthEvent error
It might be your WiFi hardware, but you can test it using following steps to manualy onnect:

Manually connect to WiFi

Turn On

networksetup -setairportpower en0 on


Find

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan


Connect

networksetup -setairportnetwork en0 WIFI_SSID_I_WANT_TO_JOIN WIFI_PASSWORD


If above does not work you have a deeper problem.


Before you go, try using the BSSID instead the network name.



  airport -A=ssid -BSSID=bssidname -password=password


If you do not know the BSSID (who does), use this to find it:

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s


This will give you all SSID and BSSID in your scan range.