diff options
author | Sunil Ravi <sunilravi@google.com> | 2020-03-16 21:12:17 -0700 |
---|---|---|
committer | Sunil Ravi <sunilravi@google.com> | 2020-03-16 21:15:39 -0700 |
commit | 9711304414e8cecf14bd82213965613af01ee856 (patch) | |
tree | 7e45b8e51533502127c928d72e3a6e15bc1825ec | |
parent | b628b4e539eddef9147bb927015882a6ddfa8686 (diff) |
set Http Proxy & tcp buffer sizes for FILS connection
Added a private function to set the Http Proxy &
tcp buffer sizes before calling IpClient Provisioning.
Bug: 150220819
Test: Manual - Wifi Sanity test
Change-Id: Id0327642f4c7966766e68e8ab8cbf367f60a2654
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index be3b3132c..1674e23f4 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -6330,6 +6330,15 @@ public class ClientModeImpl extends StateMachine { } } + private void setConfigurationsPriorToIpClientProvisioning(WifiConfiguration config) { + mIpClient.setHttpProxy(config.getHttpProxy()); + if (!TextUtils.isEmpty(mContext.getResources().getString( + R.string.config_wifi_tcp_buffers))) { + mIpClient.setTcpBufferSizes(mContext.getResources().getString( + R.string.config_wifi_tcp_buffers)); + } + } + private boolean startIpClient(WifiConfiguration config, boolean isFilsConnection) { if (mIpClient == null) { return false; @@ -6352,6 +6361,7 @@ public class ClientModeImpl extends StateMachine { mWifiNative.flushAllHlp(mInterfaceName); return false; } + setConfigurationsPriorToIpClientProvisioning(config); final ProvisioningConfiguration prov = new ProvisioningConfiguration.Builder() .withPreDhcpAction() @@ -6376,14 +6386,7 @@ public class ClientModeImpl extends StateMachine { // connectivity APIs such as getActiveNetworkInfo should not return // CONNECTED. stopDhcpSetup(); - - mIpClient.setHttpProxy(config.getHttpProxy()); - if (!TextUtils.isEmpty(mContext.getResources().getString( - R.string.config_wifi_tcp_buffers))) { - mIpClient.setTcpBufferSizes(mContext.getResources().getString( - R.string.config_wifi_tcp_buffers)); - } - + setConfigurationsPriorToIpClientProvisioning(config); ScanDetailCache scanDetailCache = mWifiConfigManager.getScanDetailCacheForNetwork(config.networkId); ScanResult scanResult = null; |