summaryrefslogtreecommitdiff
path: root/framework/java
diff options
context:
space:
mode:
author Sunil Ravi <sunilravi@google.com> 2025-01-28 18:13:11 +0000
committer Sunil Ravi <sunilravi@google.com> 2025-01-30 15:57:32 +0000
commit90717ef12da7343d2a77ca0b9c1bbb9aaa86d66a (patch)
treeb5df027dd51dbf754e31c3e5902c090fee4dc746 /framework/java
parent00f8df85825750fd9569d3790f0d0102595a9e9a (diff)
WFD-R2: Set IP provisioning mode to IPV6 link local
As per the Wi-Fi Direct R2 spec, if the P2P connection is established by using the P2P pairing protocol, the devices shall use IPV6 link local address as IP address. So set the IP provisioning mode to IPv6 link local in the WifiP2pConfig, so that the P2P service will skip the DHCP and derive the IPV6 address from the P2P interface address. Bug: 388057182 Flag: com.android.wifi.flags.wifi_direct_r2 Test: Manual - Basic P2P connect/disconnect tests Test: TH Presubmit tests Test: atest com.android.server.wifi.p2p Change-Id: I232c7c1ac13c3c70e93ce32bbdc67c7562cece37
Diffstat (limited to 'framework/java')
-rw-r--r--framework/java/android/net/wifi/p2p/WifiP2pConfig.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/java/android/net/wifi/p2p/WifiP2pConfig.java b/framework/java/android/net/wifi/p2p/WifiP2pConfig.java
index 8f8374a558..8e0805797f 100644
--- a/framework/java/android/net/wifi/p2p/WifiP2pConfig.java
+++ b/framework/java/android/net/wifi/p2p/WifiP2pConfig.java
@@ -1019,6 +1019,8 @@ public class WifiP2pConfig implements Parcelable {
config.mJoinExistingGroup = mJoinExistingGroup;
if (mPairingBootstrappingConfig != null) {
config.mPairingBootstrappingConfig = mPairingBootstrappingConfig;
+ config.mGroupClientIpProvisioningMode =
+ GROUP_CLIENT_IP_PROVISIONING_MODE_IPV6_LINK_LOCAL;
config.wps.setup = WpsInfo.INVALID;
}
config.mIsAuthorizeConnectionFromPeerEnabled = mIsAuthorizeConnectionFromPeerEnabled;