This usually happens, when some of the OSX settings become corrupted. OSX can regenerate new settings, which should resolve your problem. Follow the settings below:
- Open Finder
- Navigate to your harddrive
- Go to /Library/Prefences
- Drag SystemConfiguration folder to Trash
- Now openNetworkPreferences, the System Configuration folder should reappear and OSX should not freeze.
If the above doesn’t work then delete these files: