summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java8
-rw-r--r--service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java5
2 files changed, 13 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java b/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java
index 82a3264ee..558274c8d 100644
--- a/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java
+++ b/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java
@@ -635,6 +635,14 @@ public class WifiAwareDataPathStateManager {
+ " - can't parse network specifier");
return false;
}
+
+ // TODO (b/63635780) support more then a single concurrent NDP
+ if (mNetworkRequestsCache.size() > 0) {
+ Log.e(TAG, "WifiAwareNetworkFactory.acceptRequest: request=" + request
+ + " - >1 concurrent NDPs aren't supported (yet).");
+ return false;
+ }
+
mNetworkRequestsCache.put(networkSpecifier, nnri);
return true;
diff --git a/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java b/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
index 35773210b..6fdcc36c6 100644
--- a/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
+++ b/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
@@ -167,6 +167,11 @@ public class WifiAwareNativeCallback extends IWifiNanIfaceEventCallback.Stub imp
capabilities.maxSubscribeInterfaceAddresses;
frameworkCapabilities.supportedCipherSuites = capabilities.supportedCipherSuites;
+ // TODO (b/63635780, b/63635857): enable framework support of >1 NDI and >1 NDP per NDI
+ // Until then: force corresponding capabilities to 1.
+ frameworkCapabilities.maxNdiInterfaces = 1;
+ frameworkCapabilities.maxNdpSessions = 1;
+
mWifiAwareStateManager.onCapabilitiesUpdateResponse(id, frameworkCapabilities);
} else {
Log.e(TAG, "notifyCapabilitiesResponse: error code=" + status.status + " ("