[Galaxy S 4 Mini Original Android Development] Kot_Ik:
[MENTION=3044346]arco68[/MENTION]

Still with WiFi autoconnection problem here. I was complaining about it previously in this thread here and here.

Tried almost everything: clean install, official, unofficial and self-compiled builds, [MENTION=5416372]csendre[/MENTION] 's custom kernel, different modems (that NON-HLOS.bin files with appropriate tz.mbn & rpm.mbn), erasing data from google's servers (i mean autobackup & autorestore function, which can restore wifi credentials on new device). Even flashed my home router to another firmware (can't do this on another two routers i have to connect). As last resort i flashed phone to stock with 4-file firmware (that contains info for almost every partition in MTD) and then flashed LOS14.1 as in OP. Default config is LOS14.1+Opengapps(nano)+su. For now flashed csendre's custom kernel - it makes no difference to issue mentioned above, but at least it has fast charge option (very useful - battery discarges faster when occasionally using internet not over WiFi).

Details: after some random time after reboot phone stucks with mobile data only, even with known WiFi AP's in range. Mostly i can see this behaviour when moving from one AP to another (when going from work to home as an example). Although saved network exists in AP's list, and phone really scans and displays WiFi AP's (it can be seen on screenrecord attached) - it doesn't even try to connect to known AP.

That issue exists on all three serrano devices my family have: serranoltexx, serranodsdd and serrano3gxx. All of them with latest official build of LOS14.1.

Neither logcat has nothing relevant, nor dmesg: they are empty to any events related.

DUMP OF SERVICE wifi: "found=3 known=0 got=3" and GUI shows me that at least one AP is "saved"

rec[563]: time=05-13 17:53:19.569 processed=DriverStartedState org=DisconnectedState dest=<null> what=131143(0x20047) !(1)CMD_START_SCAN rt=12963769/26784671 1000 68 ic=0 proc(ms):18 onGoing full rssi=-127 f=-1 sc=0 link=-1 tx=0.0, 0.0, 0.0 rx=0.0 [on:0 tx:0 rx:0 period:8] from screen [on:0 period:34980561]
rec[564]: time=05-13 17:53:19.579 processed=ConnectModeState org=DisconnectedState dest=<null> what=147462(0x24006) !SUPPLICANT_STATE_CHANGE_EVENT rt=12963780/26784682 2460 0 SSID: BSSID: 00:00:00:00:00:00 nid: -1 state: SCANNING
rec[565]: time=05-13 17:53:19.582 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12963783/26784684 1000 0 num=3
rec[566]: time=05-13 17:53:19.616 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12963817/26784719 1000 0 num=3
rec[567]: time=05-13 17:53:19.659 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12963860/26784762 1000 0 num=3
rec[568]: time=05-13 17:53:20.594 processed=SupplicantStartedState org=DisconnectedState dest=<null> what=147461(0x24005) !SCAN_RESULTS_EVENT rt=12964795/26785697 0 0 found=3 known=0 got=3 bcn=0 con=1 untrustedcn=0
rec[569]: time=05-13 17:53:20.598 processed=ConnectModeState org=DisconnectedState dest=<null> what=147462(0x24006) !SUPPLICANT_STATE_CHANGE_EVENT rt=12964799/26785701 2463 0 SSID: BSSID: 00:00:00:00:00:00 nid: -1 state: DISCONNECTED
rec[570]: time=05-13 17:53:20.618 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12964819/26785720 1000 0 num=3
rec[571]: time=05-13 17:53:20.623 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12964824/26785725 1000 0 num=3
rec[572]: time=05-13 17:53:20.627 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12964829/26785730 1000 0 num=3
rec[573]: time=05-13 17:53:20.643 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12964845/26785746 1000 0 num=3
rec[574]: time=05-13 17:53:20.669 processed=ConnectModeState org=DisconnectedState dest=<null> what=131131(0x2003b) !CMD_GET_CONFIGURED_NETWORKS uid=1000 rt=12964871/26785772 1000 0 num=3

There is more info in bugreport, can't understand what is important and what is not. I can send you bugreport.zip if you wish, can't put it at public.