Apple MacBook Wi-Fi Troubleshooting
Here is a 4-step process to collect some wireless troubleshooting data on the Macbook.
1. Collect mobility data
2. Enable 802.1x enhanced logs before collecting data
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.eapolclient LogFlags -int -1
Note: File will be saved under /var/log/eapolclient.(interfacename).log. Additional useful logging appears in/var/log/system.log. This will activate logging on all interfaces that 802.1x is started on, regardless of how they were started, from loginwindow, from a System mode configuration or by the user.
3. Start and stop 802.11 network scan
4. Disable 802.1x enhanced logs after collecting data
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.eapolclient LogFlags -int 0
Some other useful commands while you are in the terminal
Connect to SSID
networksetup -setairportnetwork Airport [router SSID] [password]
Turn Airport Off via Command Line
networksetup -setairportpower airport off
Turn Airport On via Command Line
networksetup -setairportpower airport on