Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1e32449 authored by Danny Baumann's avatar Danny Baumann
Browse files

Fix EAP password being lost when switching from an EAP network to

another network and back.

Fixes issue 2479.
parent cfa71fac
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1131,6 +1131,15 @@ public class WifiService extends IWifiManager.Stub {

        for (WifiConfiguration.EnterpriseField field :
                config.enterpriseFields) {
            /*
             * Skip reading the password field, as the actual value isn't returned
             * anyway, and the returned '*' might cause confusion when saving the
             * config again, as '*' might actually be a valid password.
             */
            if (field == config.password) {
                continue;
            }

            value = mWifiStateTracker.getNetworkVariable(netId,
                    field.varName());
            if (!TextUtils.isEmpty(value)) {