History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
799e25461ac99b02acd864cce867b72f9d4f04b9 29-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Record NDP channel info if provided

Record the NDP channel information if provided in either:
- Creation (onConfirm notification)
- Update (onScheduleUpdate notification)

Information is recorded - no other usage (except logging is done
for now).

Bug: 37007030
Test: unit test + integration tests
Change-Id: If424765efecb5824d8576ac2e5d591bef860fd3b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
1dedb2394999cf504664e125d4b821658b8bd3e1 29-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Add hooks to configure power parameters

Standardize the power setting hooks to remove name duplication. Now
have 3 power modes, each of which has a set of parameters and values.

Add new power mode configurations (still set to default until
optimized).

Note: this CL should not cause any behavior changes.

Bug: 67745737
Test: unit tests + integration tests
Change-Id: I941c12fa55c8c8023314a62ab4f727ff8cd161a6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
c2d924a70f1e5167fe8aae729f79425661c31572 26-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Add HAL 1.2 support for NDP channel info

Update to support HAL 1.2 adding NDP channel information to the
confirmation message and an additional indication called whenever
the NDP channel is updated.

Bug: 37007030
Test: integration and unit tests
Change-Id: If29849c9d2d916355d437df9a6f794d2026a1fa7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
9340e8f34b979b06bb90f92852353957120abf41 14-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Configure DBG vs. VDBG

Move some messages to normal DBG vs. VDBG to allow verbose run-time
debugging.

Bug: 69432628
Test: build, enable verbose & verify log
Change-Id: I7162dca0daf728657fb946b36299bede35fa8a3b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
d187886254382d86f6884f593d851594575acd0c 14-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Restructure debugging flags to enable dynamic updates

Restructure the debugging flags to allow dynamic updates of the debug
flag. Each class has a static VDBG and a dynamically updated mDbg.

Note: there are no (or minimal changes) to the actual debugging - all
of which is gated by VDBG. A subsequent CL will move some messages to
the lower-level mDbg.

Bug: 69432628
Test: builds, runs, toggle debug flag
Change-Id: I61df2a0bb790832c7136aa1ad67a745eb388b1da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
3709e0d8752b945e19f4c7c9f75b929ee261dfe4 13-Nov-2017 Etan Cohen <etancohen@google.com> [AWARE] Aware ranging (RTT) to Aware discovery

Add configuration of ranging information (enabling, specifying
geofence) to the Aware discovery process:
- Pipe information to HAL
- Call location-specific discovery callback

Bug: 33821639
Test: unit tests and (non-functioning) integration tests
Change-Id: I66c674b5c97f286311ff3c0e35d23c6e89305043
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
a25953fc4fd640cebf57f1e33490a507af3c1db5 15-Aug-2017 Etan Cohen <etancohen@google.com> [AWARE] Support multiple NAN data interfaces (NDI)

Support all the NAN data-interfaces which the firmware supports -
based on the returned capability.

- Create the data-interfaces
- Assign data-paths to data-interfaces based on constraints of
unique [(src mac, dst mac), security config] tuples. I.e. a
single data-interface can only have a single security configuration
to a specific destination interface.

Bug: 63635857
Test: unit tests + integrated test suite
Change-Id: I4a21f3b025e8164673366e22da062d536d588148
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
86ce666f62db6b464536d68944780b46996af04b 20-Jul-2017 Etan Cohen <etancohen@google.com> [AWARE] Support multiple NDPs on an NDI

Support multiple NAN data-paths (NDPs) on a single NAN data-interface
(NDI). Interface bring-up and bring-down should be tied to first NDP
and last NDP.

Bug: 63635780
Test: unit tests and integrated (sl4a) tests pass (or bugs filed)
Change-Id: I05ac824e551d33897eba7b7e0d5ab45b56492558
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
859f9739d760dc66fea3966d2c004b21c0f326cd 18-Jul-2017 Etan Cohen <etancohen@google.com> [AWARE] Allow a previously enabled Aware

Current behavior assumes that the firmware is always in sync with
the host - thus the host knows when Aware is disabled on the firmware
and does not expect an 'aware already enabled' error code when trying
to enable Aware.

However, this may not always be the case (e.g. firmware may not disable
aware on wifi getting disabled). Change:

- Considers 'aware already enabled' to be a success
- But prints out a WTF to track (need to make sure that firmware does
disable Aware when expected)

Bug: 63773428
Test: integrated (acts/sl4a) AttachTest:test_attach_disable_wifi_attach_again
Test: unit tests pass
Change-Id: I940a2ff3e5c24434a1bb2bdf21263b2f8e9769a0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
3dd02f1e60b930f59d33c462aa2daefb4baf65e5 13-Jul-2017 Etan Cohen <etancohen@google.com> [AWARE] Restrict number of data interfaces and paths

Restrict the number of supported data-interfaces (NDIs) to 1 and
the number of data-paths (NDPs) per NDI to 1. Limit will be
removed (in steps) once framework support is added.

Bug: 63633579
Bug: 31940045
Test: TBD - fails, bug outstanding to partner
Change-Id: I3934b68b121f0d72b2ff4595653129c689183e64
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
9572e8b6de6cb7912df530ae2376452bf1469b33 22-Jun-2017 Etan Cohen <etancohen@google.com> [AWARE] Add debug hooks to obtain count of event callbacks

Count Aware event callbacks and provide a shell command to
retrieve and reset data.

While callbacks may be percolated up through the framework and
detected - that is not always the case. Some of the callbacks are
masked by the framework. It is still interesting to know when
callbacks occur - to detect invalid wakeups of the host.

Bug: 31940045
Test: manual shell cmd execution validates data
Change-Id: I35d96419342c330f2d64a422b9b39369311aa09e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
8f49ede47036020fa10e40f2b507aa90735ff420 19-May-2017 Etan Cohen <etancohen@google.com> [AWARE] Adds logs for debugging

Bug: 31940045
Test: unit tests, integration (sl4a) tests
Change-Id: Ibd3fe7a66f3b5c5a8d8638efe19c5363e9443d57
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
72d03f1feaec8829be3b9a8c1286dbcd79910b37 10-May-2017 Etan Cohen <etancohen@google.com> [AWARE] Wait for disable

The NAN disable command now waits for a response from the HAL. This
introduces a slight ordering in disable/enable sequences - which can
prevent some driver/firmware race conditions. Though it is not perfect
in that we are not waiting for the down indication (the state machine
isn't set up for that).

Intended to work-around a system crash regression observed by running
Cts SingleDeviceTest#testAttachDiscoveryAddressChanges which executes
rapid enable/disable cycles. Does not solve issue - but a good safety.

Bug: 38195097
Test: unit tests and integration (sl4a) pass
Change-Id: Idc4622ca69e7e1c1591a8bb1f6872f2d071c6e84
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
2bce4620efc197b7423b842dbb8884ccecf76a1f 14-Mar-2017 Etan Cohen <etancohen@google.com> [AWARE] Data-path Passphrase security: connect to HAL

Connect the framework data-path passphrase security to the
(newly added) HAL APIs.

Bug: 35866810
Test: unit tests and integration (sl4a) tests
Change-Id: I5e6aeef1ff6abcaf414b50ba13aa1d7fa9a49908
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
69eb934f563ac0099113bf24587c729df25b15bf 21-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Add data-path security configuration (PMK)

Modify the data-path configuration to use the (optional)
PMK to configure security on the data-path.

Remove the old 'token' usage. While that information is
available from the HAL it doesn't provide any security
functionality.

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: I0d0aedc7f00405d7325d7af016666c51669653d4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
86e4c343394565f8e59e02d25334589f96de38f0 25-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Data-path negotiation update

Complete the data-path negotiation cycle. Add
responder-side code to respond to initiator
and check for errors in data-path negotiation.

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: I06f17658e244617cc7fb4cb3788f45fbe3542609
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
75bb2a1c3f5c513cde140a8cec417c67423465d2 10-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Update capabilities

Add extended service specific info and remove vendor-specific
attributes.

Bug: 35193235
Bug: 35193423
Test: unit tests and integration (sl4a) tests
Change-Id: I905c0bf4d06162fb55ff33a314634f9a2f1f8c59
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
1e7386343d09cb5b63661d52732999f8626ba140 09-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Update framework to match HIDL changes

Name changes to match spec more closely.

Bug: 35040192
Test: unit tests and integration (sl4a) tests
Change-Id: Ide8d19a6a61de1c606b2bff57ff6b5966513e4e3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
26ac163a1f95188ea00314e07ba52574aadfb726 09-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Modify the discovery session handle to uint8_t

Match the NAN protocol.

Bug: 35040192
Test: unit tests + integration (sl4a) tests
Change-Id: Iefed58874f4be606c7d7d4cfa9b24bf2138b390c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
53f9d554a19eb192796253bdefbe86009ff7be7c 09-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Remove event callback for vendor-specific attributes.

Match change to HIDL to remove this feature.

Bug: 35193235
Test: unit tests + integration (sl4a) tests
Change-Id: I3c7877dc1773b01c2922030623209d2229223cd6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java
db3c9d35a7f08de03beec81e801d917a5375f63e 30-Jan-2017 Etan Cohen <etancohen@google.com> [AWARE] Wi-Fi Aware HAL: move to HIDL

Transition from JNI-based HAL to HIDL-based HAL.

Bug: 32315992
Test: unit tests + integration (sl4a) tests passing
Change-Id: I8deeaa501b90b1b2a92c3f57a7e0251f21cc40ff
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java