[Xperia Z1 Compact Original Android Development] alex1338:
Incredible ROM! Thank you for your work, optimumpro.

The only issue I've encountered is wifi roaming and/or autoconnect.

Looking at the relevant logcat part:

E/WifiStateMachine(16369): WifiStateMachine shouldSwitchNetwork txSuccessRate=3.65 rxSuccessRate=5.61 delta 1000 -> 1000
E/WifiStateMachine(16369): CMD_AUTO_CONNECT sup state ScanState my state DisconnectedState nid=1 roam=3
E/WifiConfigStore(16369): saveWifiConfigBSSID Setting BSSID for "eduroam"WPA_EAP to any
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiStateMachine(16369): CMD_AUTO_CONNECT will save config -> "eduroam" nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
E/WifiStateMachine(16369): CMD_AUTO_CONNECT did save config -> nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
I/wpa_supplicant(31601): wlan0: Trying to associate with SSID 'eduroam'
I/wpa_supplicant(31601): wlan0: Associated with 18:64:72:c8:f5:01
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): sendTetherStateChangedBroadcast 1, 0, 0
D/NetworkManagementService(16369): getNetworkStatsSummaryXt:NetworkStats: elapsedRealtime=1413075263072
D/NetworkManagementService(16369): [0] iface=rmnet0 uid=-1 set=ALL tag=0x0 rxBytes=1144844 rxPackets=1796 txBytes=253983 txPackets=1901 operations=0
D/NetworkManagementService(16369): [1] iface=wlan0 uid=-1 set=ALL tag=0x0 rxBytes=60751836 rxPackets=45992 txBytes=1983952 txPackets=29883 operations=0
D/NetworkManagementService(16369): [2] iface=lo uid=-1 set=ALL tag=0x0 rxBytes=18088 rxPackets=202 txBytes=18088 txPackets=202 operations=0
D/NetworkManagementService(16369): getNetworkStatsSummaryDev:NetworkStats: elapsedRealtime=1413075263088
D/NetworkManagementService(16369): [0] iface=rmnet0 uid=-1 set=ALL tag=0x0 rxBytes=1144844 rxPackets=1796 txBytes=270312 txPackets=1901 operations=0
D/NetworkManagementService(16369): [1] iface=wlan0 uid=-1 set=ALL tag=0x0 rxBytes=60756558 rxPackets=45996 txBytes=2398756 txPackets=29886 operations=0
D/NetworkManagementService(16369): [2] iface=lo uid=-1 set=ALL tag=0x0 rxBytes=18088 rxPackets=202 txBytes=18088 txPackets=202 operations=0
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/HeadsetPhoneState(17778): sendDeviceStateChanged. mService=1 mSignal=2 mRoam=0 mBatteryCharge=2
D/HeadsetStateMachine(17778): Disconnected process message: 11, size: 0
I/wpa_supplicant(31601): wlan0: CTRL-EVENT-DISCONNECTED bssid=18:64:72:c8:f5:01 reason=3
D/Tethering(16369): InitialState.processMessage what=4
D/Tethering(16369): sendTetherStateChangedBroadcast 0, 0, 0
D/HeadsetStateMachine(17778): Disconnected process message: 10, size: 0
D/HeadsetStateMachine(17778): Disconnected process message: 10, size: 0
E/WifiStateMachine(16369): WifiStateMachine shouldSwitchNetwork txSuccessRate=0.91 rxSuccessRate=1.40 delta 1000 -> 1000
E/WifiStateMachine(16369): CMD_AUTO_CONNECT sup state ScanState my state DisconnectedState nid=1 roam=3
E/WifiConfigStore(16369): saveWifiConfigBSSID Setting BSSID for "eduroam"WPA_EAP to any
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiStateMachine(16369): CMD_AUTO_CONNECT will save config -> "eduroam" nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
E/WifiStateMachine(16369): CMD_AUTO_CONNECT did save config -> nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
I/wpa_supplicant(31601): wlan0: Trying to associate with SSID 'eduroam'
D/Tethering(16369): sendTetherStateChangedBroadcast 1, 0, 0
I/wpa_supplicant(31601): wlan0: Associated with 18:64:72:c8:f5:01
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
I/wpa_supplicant(31601): wlan0: CTRL-EVENT-DISCONNECTED bssid=18:64:72:c8:f5:01 reason=3
D/Tethering(16369): InitialState.processMessage what=4
D/Tethering(16369): sendTetherStateChangedBroadcast 0, 0, 0
D/NetworkManagementService(16369): getNetworkStatsSummaryXt:NetworkStats: elapsedRealtime=1413075283132
D/NetworkManagementService(16369): [0] iface=rmnet0 uid=-1 set=ALL tag=0x0 rxBytes=1144844 rxPackets=1796 txBytes=253983 txPackets=1901 operations=0
D/NetworkManagementService(16369): [1] iface=wlan0 uid=-1 set=ALL tag=0x0 rxBytes=60751836 rxPackets=45992 txBytes=1983952 txPackets=29883 operations=0
D/NetworkManagementService(16369): [2] iface=lo uid=-1 set=ALL tag=0x0 rxBytes=18448 rxPackets=206 txBytes=18448 txPackets=206 operations=0
D/NetworkManagementService(16369): getNetworkStatsSummaryDev:NetworkStats: elapsedRealtime=1413075283144
D/NetworkManagementService(16369): [0] iface=rmnet0 uid=-1 set=ALL tag=0x0 rxBytes=1144844 rxPackets=1796 txBytes=270312 txPackets=1901 operations=0
D/NetworkManagementService(16369): [1] iface=wlan0 uid=-1 set=ALL tag=0x0 rxBytes=60757163 rxPackets=46001 txBytes=2398882 txPackets=29893 operations=0
D/NetworkManagementService(16369): [2] iface=lo uid=-1 set=ALL tag=0x0 rxBytes=18448 rxPackets=206 txBytes=18448 txPackets=206 operations=0
E/WifiStateMachine(16369): WifiStateMachine shouldSwitchNetwork txSuccessRate=0.23 rxSuccessRate=0.35 delta 1000 -> 1000
E/WifiStateMachine(16369): CMD_AUTO_CONNECT sup state ScanState my state DisconnectedState nid=1 roam=3
E/WifiConfigStore(16369): saveWifiConfigBSSID Setting BSSID for "eduroam"WPA_EAP to any
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiStateMachine(16369): CMD_AUTO_CONNECT will save config -> "eduroam" nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
E/WifiStateMachine(16369): CMD_AUTO_CONNECT did save config -> nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
I/wpa_supplicant(31601): wlan0: Trying to associate with SSID 'eduroam'
I/wpa_supplicant(31601): wlan0: Associated with 18:64:72:c8:f5:01
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): sendTetherStateChangedBroadcast 1, 0, 0
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): InitialState.processMessage what=4
I/wpa_supplicant(31601): wlan0: CTRL-EVENT-DISCONNECTED bssid=18:64:72:c8:f5:01 reason=3
D/Tethering(16369): sendTetherStateChangedBroadcast 0, 0, 0
D/audio_hw_primary(16339): adev_set_parameters: enter: vsid=281022464;call_state=1
D/voice_extn(16339): update_call_states is_call_active:0 in_call:0, mode:0
D/audio_hw_primary(16339): adev_set_parameters: enter: vsid=281026560;call_state=1
D/voice_extn(16339): update_call_states is_call_active:0 in_call:0, mode:0
D/AlarmManagerService(16369): Kernel timezone updated to -120 minutes west of GMT
D/ConnectivityService(16369): rematching NetworkAgentInfo [MOBILE (HSPA) - 106]
D/ConnectivityService(16369): Network NetworkAgentInfo [MOBILE (HSPA) - 106] was already satisfying request 1. No change.
D/ConnectivityService(16369): notifyType AVAILABLE for NetworkAgentInfo [MOBILE (HSPA) - 106]
D/ConnectivityService(16369): notifyType CAP_CHANGED for NetworkAgentInfo [MOBILE (HSPA) - 106]
D/ConnectivityService(16369): notifyType IP_CHANGED for NetworkAgentInfo [MOBILE (HSPA+) - 106]
D/ConnectivityManager.CallbackHandler(16880): CM callback handler got msg 524290
D/ConnectivityManager.CallbackHandler(16880): CM callback handler got msg 524294
D/ConnectivityManager.CallbackHandler(16880): CM callback handler got msg 524295
D/PhoneApp(17206): getPhone phoneId:0
D/NotificationMgr(17206): updateNetworkSelection()...state = 0 new network
D/PhoneApp(17206): mReceiver: ACTION_ANY_DATA_CONNECTION_STATE_CHANGED
D/PhoneApp(17206): - state: CONNECTED
D/PhoneApp(17206): - reason: null
D/KeyguardUpdateMonitor(16880): ACTION_SERVICE_STATE_CHANGED on sub: 1 mServiceState: 0 0 voice home data home o2 - de+ o2 - de+ 26203 o2 - de+ o2 - de+ 26203 UMTS HSPAP CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
D/CellBroadcastReceiver(20396): onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
D/CellBroadcastReceiver(20396): Intent ACTION_SERVICE_STATE_CHANGED
D/CellBroadcastReceiver(20396): Service state changed! 0 Full: 0 0 voice home data home o2 - de+ o2 - de+ 26203 o2 - de+ o2 - de+ 26203 UMTS HSPAP CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Current state=-1
D/CellBroadcastConfigService(20396): enabling emergency cell broadcast channels
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4097 to 4097 from client com.android.cellbroadcastreceiver
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4098 to 4098 from client com.android.cellbroadcastreceiver
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4099 to 4099 from client com.android.cellbroadcastreceiver
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4096 to 4096 from client com.android.cellbroadcastreceiver
D/CellBroadcastConfigService(20396): enabled emergency cell broadcast channels
D/CellBroadcastConfigService(20396): disabling cell broadcast channel 50
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to remove GSM cell broadcast subscription for MID range 50 to 50 from client com.android.cellbroadcastreceiver
D/CellBroadcastConfigService(20396): disabling channels 919-928
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to remove GSM cell broadcast subscription for MID range 919 to 928 from client com.android.cellbroadcastreceiver
D/CellBroadcastConfigService(20396): disabling cell broadcast ETWS test messages
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to remove GSM cell broadcast subscription for MID range 4355 to 4355 from client com.android.cellbroadcastreceiver
D/CellBroadcastConfigService(20396): disabling cell broadcast CMAS test messages
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to remove GSM cell broadcast subscription for MID range 4380 to 4382 from client com.android.cellbroadcastreceiver
D/IccSmsInterfaceManager(17206): [IccSmsInterfaceManager] Failed to remove cdma broadcast subscription for MID range 4100 to 4100 from client com.android.cellbroadcastreceiver
E/WifiStateMachine(16369): WifiStateMachine shouldSwitchNetwork txSuccessRate=0.06 rxSuccessRate=0.09 delta 1000 -> 1000
E/WifiStateMachine(16369): CMD_AUTO_CONNECT sup state ScanState my state DisconnectedState nid=1 roam=3
E/WifiConfigStore(16369): saveWifiConfigBSSID Setting BSSID for "eduroam"WPA_EAP to any
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiStateMachine(16369): CMD_AUTO_CONNECT will save config -> "eduroam" nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
E/WifiStateMachine(16369): CMD_AUTO_CONNECT did save config -> nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
I/wpa_supplicant(31601): wlan0: Trying to associate with SSID 'eduroam'
I/wpa_supplicant(31601): wlan0: Associated with 18:64:72:c8:f5:01
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): sendTetherStateChangedBroadcast 1, 0, 0
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): InitialState.processMessage what=4
I/wpa_supplicant(31601): wlan0: CTRL-EVENT-DISCONNECTED bssid=18:64:72:c8:f5:01 reason=3
D/Tethering(16369): sendTetherStateChangedBroadcast 0, 0, 0
D/NetworkManagementService(16369): getNetworkStatsSummaryXt:NetworkStats: elapsedRealtime=1413075303173
D/NetworkManagementService(16369): [0] iface=rmnet0 uid=-1 set=ALL tag=0x0 rxBytes=1144844 rxPackets=1796 txBytes=254423 txPackets=1909 operations=0
D/NetworkManagementService(16369): [1] iface=wlan0 uid=-1 set=ALL tag=0x0 rxBytes=60751836 rxPackets=45992 txBytes=1983952 txPackets=29883 operations=0
D/NetworkManagementService(16369): [2] iface=lo uid=-1 set=ALL tag=0x0 rxBytes=18808 rxPackets=210 txBytes=18808 txPackets=210 operations=0
D/NetworkManagementService(16369): getNetworkStatsSummaryDev:NetworkStats: elapsedRealtime=1413075303192
D/NetworkManagementService(16369): [0] iface=rmnet0 uid=-1 set=ALL tag=0x0 rxBytes=1144844 rxPackets=1796 txBytes=270816 txPackets=1909 operations=0
D/NetworkManagementService(16369): [1] iface=wlan0 uid=-1 set=ALL tag=0x0 rxBytes=60757889 rxPackets=46007 txBytes=2399026 txPackets=29901 operations=0
D/NetworkManagementService(16369): [2] iface=lo uid=-1 set=ALL tag=0x0 rxBytes=18988 rxPackets=212 txBytes=18988 txPackets=212 operations=0
E/WifiStateMachine(16369): WifiStateMachine shouldSwitchNetwork txSuccessRate=0.01 rxSuccessRate=0.02 delta 1000 -> 1000
E/WifiConfigStore(16369): rewrite network history for "eduroam"WPA_EAP
E/WifiStateMachine(16369): CMD_AUTO_CONNECT sup state ScanState my state DisconnectedState nid=1 roam=3
E/WifiConfigStore(16369): saveWifiConfigBSSID Setting BSSID for "eduroam"WPA_EAP to any
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiStateMachine(16369): CMD_AUTO_CONNECT will save config -> "eduroam" nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
E/WifiStateMachine(16369): CMD_AUTO_CONNECT did save config -> nid=1
E/wifi_gbk2utf(16369): g_pItemList is NULL
E/WifiConfigStore(16369): will read network variables netId=1
I/wpa_supplicant(31601): wlan0: Trying to associate with SSID 'eduroam'
I/wpa_supplicant(31601): wlan0: Associated with 18:64:72:c8:f5:01
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): sendTetherStateChangedBroadcast 1, 0, 0
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
W/wpa_supplicant(31601): wlan0: WPA: Failed to get master session key from EAPOL state machines - key handshake aborted
D/Tethering(16369): InitialState.processMessage what=4
I/wpa_supplicant(31601): wlan0: CTRL-EVENT-DISCONNECTED bssid=18:64:72:c8:f5:01 reason=3

It has the right AP (18:64:72:c8:f5:01), but is somehow unable to connect. It connects without any problems after turning wifi off and on again.