summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2017-05-10 16:17:01 -0700
committerEtan Cohen <etancohen@google.com>2017-06-01 13:08:26 -0700
commit9fc0418bd441b14c465c3fe35e07bceac10208be (patch)
tree82ca8be3ecdad42facfd248d1a7efdc9a99489ac /service
parentffad8da00fefb79505636a7044483650113a7f8b (diff)
[AWARE] Delegate channel selection to HAL
Aware data-path operational channel selection: HAL provides API for framework to: delegate, recommend, or require channel. The framework currently doesn't have a mechanism to select the channel so this CL explicitly delegates selection to HAL. Bug: 36905549 Test: unit-tests & integration (sl4a) tests Change-Id: I8152e9a1fc262fe856b24002762b1c69891dbcf7
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java b/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java
index aebc37c72..aa1771c60 100644
--- a/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java
+++ b/service/java/com/android/server/wifi/aware/WifiAwareDataPathStateManager.java
@@ -639,7 +639,7 @@ public class WifiAwareDataPathStateManager {
nnri.interfaceName = selectInterfaceForRequest(nnri);
mMgr.initiateDataPathSetup(networkSpecifier, nnri.networkSpecifier.peerId,
- NanDataPathChannelCfg.REQUEST_CHANNEL_SETUP, selectChannelForRequest(nnri),
+ NanDataPathChannelCfg.CHANNEL_NOT_REQUESTED, selectChannelForRequest(nnri),
nnri.peerDiscoveryMac, nnri.interfaceName, nnri.networkSpecifier.pmk,
nnri.networkSpecifier.passphrase, nnri.networkSpecifier.isOutOfBand());
nnri.state =
@@ -781,7 +781,8 @@ public class WifiAwareDataPathStateManager {
/**
* Select a channel for the network request.
*
- * TODO: for now simply select channel 6
+ * TODO (b/38209409): The value from this function isn't currently used - the channel selection
+ * is delegated to the HAL.
*/
private int selectChannelForRequest(AwareNetworkRequestInformation req) {
return 2437;