[OnePlus X Q&A, Help & Troubleshooting] gladiac:
Hey there!

Thanks for making this rom - it works really well already. However, I have a problem with connecting to my Wifi at work. "Settings" force-closes when I try to connect to it. This is the logcat output:

E/WifiStateMachine( 1064): Exception: EAP-SIM not supported
D/AndroidRuntime( 4394): Shutting down VM
E/AndroidRuntime( 4394): FATAL EXCEPTION: main
E/AndroidRuntime( 4394): Process: com.android.settings, PID: 4394
E/AndroidRuntime( 4394): java.lang.NullPointerException: Attempt to read from field 'int android.net.wifi.WifiEapSimInfo.mNumOfSims' on a null object reference
E/AndroidRuntime( 4394): at com.android.settings.wifi.WifiConfigController.checkEapSimInfo(WifiConfigController.java:825)
E/AndroidRuntime( 4394): at com.android.settings.wifi.WifiConfigController.showSecurityFields(WifiConfigController.java:752)
E/AndroidRuntime( 4394): at com.android.settings.wifi.WifiConfigController.<init>(WifiConfigController.java:334)
E/AndroidRuntime( 4394): at com.android.settings.wifi.WifiDialog.onCreate(WifiDialog.java:68)
E/AndroidRuntime( 4394): at android.app.Dialog.dispatchOnCreate(Dialog.java:373)
E/AndroidRuntime( 4394): at android.app.Dialog.show(Dialog.java:274)
E/AndroidRuntime( 4394): at android.app.DialogFragment.onStart(DialogFragment.java:490)
E/AndroidRuntime( 4394): at com.android.settings.SettingsPreferenceFragment$SettingsDialogFragment.onStart(SettingsPreferenceFragment.java:590)
E/AndroidRuntime( 4394): at android.app.Fragment.performStart(Fragment.java:2077)
E/AndroidRuntime( 4394): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:922)
E/AndroidRuntime( 4394): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
E/AndroidRuntime( 4394): at android.app.BackStackRecord.run(BackStackRecord.java:834)
E/AndroidRuntime( 4394): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
E/AndroidRuntime( 4394): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)
E/AndroidRuntime( 4394): at android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime( 4394): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 4394): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 4394): at android.app.ActivityThread.main(ActivityThread.java:5294)
E/AndroidRuntime( 4394): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 4394): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 4394): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/AndroidRuntime( 4394): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/AndroidRuntime( 4394): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
W/ActivityManager( 1064): Force finishing activity 1 com.android.settings/.Settings$WifiSettingsActivity

It seems like WPASupplicant or the Wifi driver is configured to not support EAP-SIM - not sure who actually outputs "EAP-SIM not supported". I could not find the message in CyanogenMod's WifiStateMachine.java. Maybe we need to adjust something in WCNSS_qcom_cfg.ini or wpa_supplicant.conf or maybe we just need to handle the NullPointerException correctly. The crash should not happen anyways. I know on my Xperia Z1 with CM12.1 the Wifi connection works just fine. Tell me if you need more info!

EDIT: Alright, EAP-SIM seems virtually unsupported in the Android world. Cyanogenmod added support for it but it is kinda broken. Have a look at THIS. I like how nobody checks if mWifiEapSimInfo has a valid object reference => In the case of the OnePlus X it has not because EAP-SIM is unsupported which leads to a NullPointerException. An easy fix would be to check if mWifiEapSimInfo is NULL and if it is to just return. I could fix this problem but I would have to find some free time to get my build-machine to build this rom. [MENTION=5321417]MasterAwesome[/MENTION], do you want to implement the check yourself or shall I do it?