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

Commit 5b2d41b1 authored by Danny Baumann's avatar Danny Baumann Committed by Diogo Ferreira
Browse files

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

another network and back.

Fixes issue 2479.
parent 4e008537
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)) {