Question Can't connect to university 802.1x WiFi

Search This thread

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10
I am running official MIUI Global 12.5.4 ROM (the only thing is that I am rooted, and always have been rooted).
But I noticed that for a month or so, I can't connect to my university's enterprise WiFi. It used to connect fine before, maybe this is related to the new ROM but I am not 100% sure. My phone connects to my home WPA2 WiFi normally, as well as other open networks.
What happens is when I tap on the Wifi network it shows "connecting" then it stops and does not connect.
The problem is of course not on the university's end, because my other laptops, devices etc. connect as normal.
Is there a way to troubleshoot or solve this without "aggressive" things like wiping etc. ?
 

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10
To add, I've tried forgetting the wifi network and re-configuring the wifi settings, same results. Any good apps that might be helpful to solve the problem? (i.e. show logs why connection is rejected?)
 

MrCrayon

Senior Member
Sep 6, 2013
193
60
Xiaomi Redmi Note 4
Lenovo P11
You can try to see if you can debug the problem running
Bash:
adb logcat wpa_supplicant:V *:S
or using an app like MatLog and filtering with wpa_supplicant.

Hopefully you'll have some more clues on what's the problem and you can search for a solution.
 

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10
I used Logcat reader with root privileges, here is a copy of the log when I attempted to connect to the "eduroam" wifi network:

Code:
[01-28 11:45:13.104 2577:2577 I/wpa_supplicant]
wlan0: Trying to associate with SSID 'eduroam'

[01-28 11:45:13.104 2577:2577 E/wpa_supplicant]
wlan0: Adaptive 11r is Enabled for BSS 70:69:5a:a6:40:2d

[01-28 11:45:13.105 2577:2577 E/wpa_supplicant]
eap_proxy: eap_proxy_notify_config

[01-28 11:45:13.105 2577:2577 E/wpa_supplicant]
eap_proxy: eap_proxy_allowed_method

[01-28 11:45:13.105 2577:2577 I/chatty]
uid=1010(wifi) /vendor/bin/hw/wpa_supplicant identical 1 line

[01-28 11:45:13.105 2577:2577 E/wpa_supplicant]
eap_proxy: eap_proxy_allowed_method

[01-28 11:45:13.107 1839:1839 D/ClientSlaveModeImpl]
Master is not connected, disable mWifiConnectivityManager of slave

[01-28 11:45:13.108 1839:2429 I/MiuiNetworkPolicy]
mWifiStateReceiver onReceive: android.net.wifi.STATE_CHANGE

[01-28 11:45:13.108 1839:2429 I/MiuiNetworkPolicy]
wasConnected = false mWifiConnected = false mNetworkPriorityMode =255

[01-28 11:45:13.108 2589:2589 D/BluetoothAdapterService]
android.net.wifi.STATE_CHANGE

[01-28 11:45:13.109 2694:2849 D/NetworkController]
onReceive: intent=Intent { act=android.net.wifi.STATE_CHANGE flg=0x5000010 (has extras) }

[01-28 11:45:13.109 3518:3518 D/MiuiFastConnectService]
onReceive: action = android.net.wifi.STATE_CHANGE

[01-28 11:45:13.109 3518:3518 D/MiuiFastConnectService]
Connect_state: CONNECTING

[01-28 11:45:13.110 2965:2965 D/HingeNetworkManager]
NETWORK_STATE_CHANGED_ACTION: mIsWifiConnected=false

[01-28 11:45:13.110 3315:5575 I/NearbyDiscovery]
FastPairHandler: Received action android.net.wifi.STATE_CHANGE [CONTEXT service_id=49 ]

[01-28 11:45:13.110 2694:2694 D/ToggleManager]
updateWifiToggle wifiState=-1 mWifiConnected=false action=android.net.wifi.STATE_CHANGE

[01-28 11:45:13.110 2842:4386 D/QCNEJ/WlanStaInfoRelay]
Received action: android.net.wifi.STATE_CHANGE

[01-28 11:45:13.110 2589:2589 D/BluetoothVendorService]
setWifiState to: true

[01-28 11:45:13.110 2589:2589 I/BluetoothVendorJni]
setWifiStateNative

[01-28 11:45:13.110 2589:2589 I/bt_btif_vendor]
setWifiState :1

[01-28 11:45:13.110 2589:3210 W/bt_btm]
btm_cb.is_wifi_connected = 1

[01-28 11:45:13.110 2589:3210 W/bt_l2cap]
L2CA_SetDesireRole() new:x1, disallow_switch:0

[01-28 11:45:13.110 11375:11375 D/AutoInstallService]
onReceive: android.net.wifi.STATE_CHANGE

[01-28 11:45:13.111 1839:1987 D/CompatibilityInfo]
mCompatibilityFlags - 0

[01-28 11:45:13.111 1839:1987 D/CompatibilityInfo]
applicationDensity - 440

[01-28 11:45:13.111 1839:1987 D/CompatibilityInfo]
applicationScale - 1.0

[01-28 11:45:13.116 4224:4275 D/OsAgent]
[wifi_supplicant_status_update][3129] [HC] =>> [HS]

[01-28 11:45:13.116 925:925 V/LocSvc_HIDL_IzatSubscription]
[wifiSupplicantStatusUpdate][675] [HS] <<<<= [HC]

[01-28 11:45:13.120 5328:5328 D/ConnectivityManager]
getMobileDataEnabled()+ subId=1

[01-28 11:45:13.121 1839:4998 D/CompatibilityInfo]
mCompatibilityFlags - 0

[01-28 11:45:13.121 1839:4998 D/CompatibilityInfo]
applicationDensity - 440

[01-28 11:45:13.121 1839:4998 D/CompatibilityInfo]
applicationScale - 1.0

[01-28 11:45:13.126 5328:5328 D/ConnectivityManager]
getMobileDataEnabled()- subId=1 retVal=false

[01-28 11:45:13.126 919:3213 I/[email protected]_handler]
DeviceSleep: TX Awake, Sending SLEEP_IND

[01-28 11:45:13.127 919:3213 D/[email protected]_handler]
SerialClockVote: vote for UART CLK OFF

[01-28 11:45:13.129 1839:2478 W/BroadcastQueueInjector]
Unable to launch app com.wilysis.cellinfolite/10347 for broadcast Intent { act=android.net.wifi.STATE_CHANGE flg=0x5000010 (has extras) }: process is not permitted to  auto start

[01-28 11:45:13.131 1839:1987 W/BroadcastQueueInjector]
Unable to launch app io.wifimap.wifimap/10395 for broadcast Intent { act=android.net.wifi.STATE_CHANGE flg=0x5000010 (has extras) }: process is not permitted to  auto start

[01-28 11:45:13.136 1839:2429 I/MiuiNetworkPolicy]
updateUidState uid = 99008, uidState = 19

[01-28 11:45:13.136 1839:2429 I/MiuiNetworkPolicy]
updateUidState uid = 10434, uidState = 19

[01-28 11:45:13.141 2694:2849 D/NetworkController]
onReceive: intent=Intent { act=android.net.wifi.supplicant.STATE_CHANGE flg=0x24000010 (has extras) }

[01-28 11:45:13.165 26606:27288 D/WifiTracker]
needCreateConnectedAP: false

[01-28 11:45:13.165 26606:27288 D/WifiTracker]
needCreateSlaveConnectedAP: false

[01-28 11:45:13.192 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.197 26606:27288 W/SettingsLib.AccessPoint]
Received abnormal flag string: [WPA2-EAP-CCMP][RSN-EAP-CCMP][ESS]

[01-28 11:45:13.204 26606:27288 D/WifiTracker]
needCreateConnectedAP: false

[01-28 11:45:13.204 26606:27288 D/WifiTracker]
needCreateSlaveConnectedAP: false

[01-28 11:45:13.277 919:3107 D/[email protected]_lock]
Release wakelock is released

[01-28 11:45:13.472 26606:26606 W/Settings]
Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.

[01-28 11:45:13.497 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.500 26606:26606 W/SettingsLib.AccessPoint]
NetworkInfo is null, cannot return detailed state

[01-28 11:45:13.500 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.504 26606:26606 W/SettingsLib.AccessPoint]
NetworkInfo is null, cannot return detailed state

[01-28 11:45:13.504 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.540 26606:26606 W/Settings]
Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.

[01-28 11:45:13.544 26606:26606 W/Settings]
Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.

[01-28 11:45:13.580 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.583 26606:26606 W/SettingsLib.AccessPoint]
NetworkInfo is null, cannot return detailed state

[01-28 11:45:13.583 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.587 26606:26606 W/SettingsLib.AccessPoint]
NetworkInfo is null, cannot return detailed state

[01-28 11:45:13.587 26606:26606 W/SettingsLib.AccessPoint]
mSlaveNetworkInfo is null, cannot return detailed state

[01-28 11:45:13.745 2694:2694 D/BatteryController]
onReceive: Intent = Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } action = android.intent.action.BATTERY_CHANGED

[01-28 11:45:13.745 2694:2694 D/KeyguardUpdateMonitor]
received broadcast android.intent.action.BATTERY_CHANGED

[01-28 11:45:13.748 5328:5328 I/BatteryInfoReceiver]
ACTION_BATTERY_CHANGED

[01-28 11:45:13.750 7082:7355 D/PowerCheckerService]
onBatteryChanged, mBatteryLevel = 95, status = 2, level = 95, plug = 1, scale = 100

[01-28 11:45:13.752 2929:2929 D/DeviceStatisticsService]
chargerType=1 batteryLevel=95 totalBatteryCapacity=4581400

[01-28 11:45:13.753 2929:2929 D/DeviceInfoHidlClient]
isPowerInfoNeverSent()=true

[01-28 11:45:13.753 2929:2929 D/DeviceInfoHidlClient]
getPowerInfoSupportStatus()=-1

[01-28 11:45:14.119 16523:16523 I/MemoryOptimizationService]
kill process com.android.settings intent:Intent { act=miui.intent.action.MEMORY_OPTIMIZATION pkg=com.android.htmlviewer (has extras) }

[01-28 11:45:13.131 1839:1987 W/BroadcastQueueInjector]
Unable to launch app io.wifimap.wifimap/10395 for broadcast Intent { act=android.net.wifi.STATE_CHANGE flg=0x5000010 (has extras) }: process is not permitted to  auto start

[01-28 11:45:14.122 1839:4998 I/ActivityManager]
Killing 26748:com.android.settings:remote/1000 (adj 500): kill background from process:com.android.htmlviewer

[01-28 11:45:14.122 1839:4998 I/Process]
PerfMonitor : current process sending signal quiet. PID: 26748 SIG: 9

[01-28 11:45:14.124 1839:1995 I/Process]
PerfMonitor : current process killing process group. PID: 26748

[01-28 11:45:14.129 5916:5944 I/com.xiaomi.xms]
oneway function results will be dropped but finished with status UNKNOWN_TRANSACTION and parcel size 0

[01-28 11:45:14.147 4647:4693 I/com.miui.daemo]
oneway function results will be dropped but finished with status OK and parcel size 4

[01-28 11:45:14.163 4647:4693 I/chatty]
uid=1000(system) Binder:4647_3 identical 1 line

[01-28 11:45:14.163 4647:4693 I/com.miui.daemo]
oneway function results will be dropped but finished with status OK and parcel size 4

[01-28 11:45:14.173 808:808 I/Zygote]
Process 26748 exited due to signal 9 (Killed)

[01-28 11:45:14.175 1839:1995 I/libprocessgroup]
Successfully killed process cgroup uid 1000 pid 26748 in 51ms

[01-28 11:45:14.273 2965:2965 I/MiuiPhoneUtils]
getOperatorNumeric phone:0 numeric:310260

[01-28 11:45:14.637 1839:1987 D/CompatibilityInfo]
mCompatibilityFlags - 0

[01-28 11:45:14.637 1839:1987 D/CompatibilityInfo]
applicationDensity - 440

[01-28 11:45:14.637 1839:1987 D/CompatibilityInfo]
applicationScale - 1.0

[01-28 11:45:14.645 26606:26606 I/MemoryOptimizationService]
ApplicationReceiverStub start

[01-28 11:45:14.881 1839:2525 D/SchedBoost]
thread tid=26606, priority is set to -10

[01-28 11:45:14.881 1839:2525 W/SchedBoost]
has reset SchedAffinity ui thread: 26606

[01-28 11:45:14.881 1839:2525 D/SchedBoost]
thread tid=27204, priority is set to -10

[01-28 11:45:14.881 1839:2525 W/SchedBoost]
has reset SchedAffinity render thread: 27204

[01-28 11:45:14.881 1839:2525 W/SchedBoost]
SchedBoost end: proc: 26606/27204 2001 aff:[0, 1, 2, 3, 4, 5, 6, 7]

[01-28 11:45:15.730 2577:2577 I/wpa_supplicant]
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=70:69:5a:a6:40:2d status_code=1

[01-28 11:45:15.731 1839:2352 D/SupplicantStaIfaceCallbackImpl]
flush PMK cache due to association rejection for config id 177.

[01-28 11:45:15.732 1839:2571 D/MiuiWifiDiagnostics]
isUserSelected: true

[01-28 11:45:15.732 2577:2577 E/wpa_supplicant]
eap_proxy: eap_proxy_notify_config

[01-28 11:45:15.733 1839:2442 V/WifiClientModeImpl]
stopIpClient IpClientWithPreConnection: false
java.lang.Throwable
    at com.android.server.wifi.ClientModeImpl.stopIpClient(ClientModeImpl.java:1240)
    at com.android.server.wifi.ClientModeImpl.access$4500(ClientModeImpl.java:181)
    at com.android.server.wifi.ClientModeImpl$ConnectModeState.processMessage(ClientModeImpl.java:4222)
    at com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:992)
    at com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:236)
    at android.os.HandlerThread.run(HandlerThread.java:67)

[01-28 11:45:15.734 1839:2442 W/WifiDiags]
CaptureBugReport 1

[01-28 11:45:15.728 935:935 W/[email protected]]
type=1400 audit(0.0:66303): avc: denied { search } for name="tombstones" dev="dm-6" ino=90 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_tombstone_data_file:s0 tclass=dir permissive=0

[01-28 11:45:15.735 935:935 E/[email protected]]
Failed to open directory: Permission denied

[01-28 11:45:15.735 935:935 E/[email protected]]
Error occurred while deleting old tombstone files

[01-28 11:45:15.735 935:935 E/[email protected]]
Error writing files to flash

[01-28 11:45:15.735 1839:2442 E/WifiVendorHal]
flushRingBufferData(l.1772) failed {.code = ERROR_UNKNOWN, .description = }

[01-28 11:45:15.735 1839:2442 W/WifiDiags]
could not flush ringbuffer

[01-28 11:45:15.736 1839:2442 D/WifiClientModeImpl]
Association Rejection event: bssid=70:69:5a:a6:40:2d reason code=1 timedOut=false

[01-28 11:45:15.743 1839:2442 W/LastMileLogger]
Failed to stop event tracing: /sys/kernel/debug/tracing/instances/wifi/tracing_on: open failed: ENOENT (No such file or directory)

[01-28 11:45:15.743 1839:2442 W/LastMileLogger]
Failed to read event trace: /sys/kernel/debug/tracing/instances/wifi/trace

[01-28 11:45:15.753 1839:2442 D/WifiLastResortWatchdog]
updateFailureCountForNetwork: Unable to find Network ["eduroam", 70:69:5a:a6:40:2d]

[01-28 11:45:15.754 1839:2442 E/SupplicantStateTracker]
Ignoring { when=-23ms what=147499 arg2=1 obj=70:69:5a:a6:40:2d target=com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler }

[01-28 11:45:15.756 1839:2429 I/MiuiNetworkPolicy]
mWifiStateReceiver onReceive: android.net.wifi.STATE_CHANGE

[01-28 11:45:15.756 1839:1839 D/ClientSlaveModeImpl]
Master is not connected, disable mWifiConnectivityManager of slave

[01-28 11:45:15.756 1839:2429 I/MiuiNetworkPolicy]
wasConnected = false mWifiConnected = false mNetworkPriorityMode =255

[01-28 11:45:15.757 2842:4386 D/QCNEJ/WlanStaInfoRelay]
Received action: android.net.wifi.STATE_CHANGE

[01-28 11:45:15.757 3518:3518 D/MiuiFastConnectService]
onReceive: action = android.net.wifi.STATE_CHANGE

[01-28 11:45:15.757 2842:4386 D/QCNEJ/WlanStaInfoRelay]
reset CountryCodeRetriever

[01-28 11:45:15.757 3518:3518 D/MiuiFastConnectService]
Connect_state: DISCONNECTED

[01-28 11:45:15.757 3518:3518 D/MiuiFastConnectService]
changeMode: true

[01-28 11:45:15.757 3518:3518 D/MiuiFastConnectService]
change scan mode: 1
 

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10

MrCrayon

Senior Member
Sep 6, 2013
193
60
Xiaomi Redmi Note 4
Lenovo P11
I don't really know what I'm talking about but if I had to guess it looks like it's trying to authenticate with the wrong protocol.

I also found this but not sure if it's related

P.S.
You could try to enable Wi-Fi verbose logging in developers options to see if you have more details. (remember to turn it off when you are done)
 
Last edited:

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10
Ok so here is a paste of the verbose log. I tried to connect to Wifi "eduroam" three times during logging. I can't pinpoint where the issue lies now though.

I also tried to connect to another enterprise network by another organization, and I am having the same issues. So my device basically cannot connect to enterprise wifi networks.
 

MrCrayon

Senior Member
Sep 6, 2013
193
60
Xiaomi Redmi Note 4
Lenovo P11
I am no expert but I think it might be related to the article I posted before.
Do your WIFI setting require to select "Do not validate" for CA certificate?
If so is that option still available?

BTW I can see your email in the log you posted, you might want to scan for other personal info or just delete the log, I don't think I can find anything anyway.
 

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10
Thank you for the heads up, yes I removed my email.

The wifi network is basically the "eduroam" network which is used across universities worldwide. The instructions posted by my university do not have any requirement to select "Do not validate", although in the advanced wifi settings, that option is selected.

I also tried to delete all certificates installed, and same thing happens.
 

MrCrayon

Senior Member
Sep 6, 2013
193
60
Xiaomi Redmi Note 4
Lenovo P11

bomberb17

Senior Member
Aug 6, 2013
96
3
Redmi Note 10
I forgetted the wifi network multiple times and tried over and over again.
Also installed the latest global stable ROM which was made available a few weeks ago, same exact behavior.
Eduroam app did not help.
A couple of more clues:

1. I contacted the IT department, they say that they don't see my device MAC address attempting to make a connection.
2. I tried to connect by putting a wrong username/password on purpose. The behavior is identical, meaning my phone does not even try to authenticate in the enterprise WiFi.

Any help with this matter appreciated.
 

StaryMuz

Senior Member
Dec 27, 2012
549
184
Does the phone show its identifying information (IMEI, device name) in the settings?
 

MrCrayon

Senior Member
Sep 6, 2013
193
60
Xiaomi Redmi Note 4
Lenovo P11
1. I contacted the IT department, they say that they don't see my device MAC address attempting to make a connection.
2. I tried to connect by putting a wrong username/password on purpose. The behavior is identical, meaning my phone does not even try to authenticate in the enterprise WiFi.
That would be explained by the fact that your phone and access point are not agreeing on the protocol to use to communicate so there is no attempt to login.
Maybe show them your logs I don't really have any other idea.
 

SubwayChamp

Senior Member
Aug 6, 2016
3,726
4
1,538
Not sure if the source of your issue is the same than yours, but I had issues trying to reconnect not connecting for first time, but every time I leave it out and coming back to it, and the solution was in Network details/Privacy, changing to Device MAC instead of randomize MAC.
 

SubwayChamp

Senior Member
Aug 6, 2016
3,726
4
1,538
I have tried with randomized MAC and same thing happens..
How I fixed it, was the other way around, forgetting the connection (just one time), setting it up, and then using device MAC instead of randomize MAC (I guess this is set by default), also checking Auto connect and detect automatically. Some private connections require some additional step, logging into an account or adding the device through a QR code (you should ask for it).