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

Commit f5949e0e authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am 9c8de733: Merge "DO NOT MERGE update current config with dhcp settings" into honeycomb-mr1

* commit '9c8de733':
  DO NOT MERGE update current config with dhcp settings
parents 40c337f1 9c8de733
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -460,6 +460,25 @@ class WifiConfigStore {
        return dhcpInfoInternal;
    }

    /**
     * set IP configuration for a given network id
     */
    static void setIpConfiguration(int netId, DhcpInfoInternal dhcpInfo) {
        LinkProperties linkProperties = dhcpInfo.makeLinkProperties();

        synchronized (sConfiguredNetworks) {
            WifiConfiguration config = sConfiguredNetworks.get(netId);
            if (config != null) {
                // add old proxy details
                if(config.linkProperties != null) {
                    linkProperties.setHttpProxy(config.linkProperties.getHttpProxy());
                }
                config.linkProperties = linkProperties;
            }
        }
    }


    /**
     * Fetch the proxy properties for a given network id
     */
+1 −0
Original line number Diff line number Diff line
@@ -2510,6 +2510,7 @@ public class WifiStateMachine extends HierarchicalStateMachine {
                            synchronized (mDhcpInfoInternal) {
                                mDhcpInfoInternal = dhcpInfoInternal;
                            }
                            WifiConfigStore.setIpConfiguration(mLastNetworkId, dhcpInfoInternal);
                            sendMessage(CMD_IP_CONFIG_SUCCESS);
                        } else {
                            Log.d(TAG, "DHCP request failed: " +