diff options
author | Etan Cohen <etancohen@google.com> | 2017-05-18 11:53:07 -0700 |
---|---|---|
committer | Etan Cohen <etancohen@google.com> | 2017-05-18 11:55:44 -0700 |
commit | 31e464cf7677c438151cc33384d524652e923234 (patch) | |
tree | 01255ad8fd4f232996443dd8d376c2a04a4457d2 /service | |
parent | 4c33382bf90796653e57cc9db9f93f5dfd53f888 (diff) |
[AWARE] Disable any service discovered callbacks on Publisher
Solicited publish gets an indication that a subscriber matches it.
The use-case and API do not need such a notification - disable it at
the firmware level to reduce host wake-ups.
Bug: 38421130
Test: integration (sl4a) tests logs confirm API not triggered
Change-Id: Icd21249417f3920593227c16ffa34a99b61e88c7
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/aware/WifiAwareNativeApi.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/aware/WifiAwareNativeApi.java b/service/java/com/android/server/wifi/aware/WifiAwareNativeApi.java index 69f70a39f..de30d79ac 100644 --- a/service/java/com/android/server/wifi/aware/WifiAwareNativeApi.java +++ b/service/java/com/android/server/wifi/aware/WifiAwareNativeApi.java @@ -383,8 +383,7 @@ public class WifiAwareNativeApi implements WifiAwareShellCommand.DelegatedShellC req.baseConfigs.discoveryWindowPeriod = 1; req.baseConfigs.discoveryCount = 0; convertNativeByteArrayToArrayList(publishConfig.mServiceName, req.baseConfigs.serviceName); - // TODO: what's the right value on publish? - req.baseConfigs.discoveryMatchIndicator = NanMatchAlg.MATCH_ONCE; + req.baseConfigs.discoveryMatchIndicator = NanMatchAlg.MATCH_NEVER; convertNativeByteArrayToArrayList(publishConfig.mServiceSpecificInfo, req.baseConfigs.serviceSpecificInfo); convertNativeByteArrayToArrayList(publishConfig.mMatchFilter, |