• Home
  • History
  • Annotate
  • only in /frameworks/opt/net/wifi/service/jni/
History log of /frameworks/opt/net/wifi/service/jni/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9907358e1374c55440d8fcf5175633315678dbe5 17-Jul-2017 Steven Moreland <smoreland@google.com> Reference nativehelper/jni.h as jni.h

nativehelper will no longer export nativehelper/jni.h so that everywhere
can reference this file with the same name.

Bug: 63762847
Change-Id: I888460930169e18c1f89f025b5477f24b812bb5b
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
b8b3fb8228a1f90106bad8c59ce006b81ef7921c 09-Mar-2017 Roshan Pius <rpius@google.com> Remove all legacy HAL usage from framework

WifiNative now just becomes a module to route calls into the appropriate
native module: WifiVendorHal, WificondControl, SupplicantStaIfaceHal,
SupplicantP2pIfaceHal.

Changes in the CL:
1. Cleanup WifiNative to remove the legacy HAL usage.
2. Remove the |HIDL*| flags in WifiNative.
3. Remove static instance of WifiNative/WifiMonitor.
4. Remove WifiMonitor code parsing the string events from
wpa_supplicant.
5. Remove all unused jni code used for legacy HAL interactions.
6. Remove dependency of libwifi-hal & libwifi-system from framework.

Notes:
a) We can now potentially split up WifiNative into separate chunks:
WifiStaNative, WifiP2pNative, WifiRttNative, etc instead of having a
monolithic WifiNative instance.
b) We may have to add back the local log in WifiNative (b/36059665).

Bug: 35702893
Bug: 34457880
Bug: 34884202
Bug: 35421721
Test: Compiles, existing unit tests pass.
Test: Device boots up and connects to wifi networks.
Test: Verified with wifi regression (b/36068282)

Change-Id: I3e13522c912242af8023471e029edb1ce47fd3e9
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
a5f8344f933370758812afedaa52976d88b55174 10-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Clean-up remnant file from legacy HAL interface

Remove framework interface to legacy HAL (JNI file). Superseded
by HIDL interface.

Bug: 32315992
Test: unit tests + integration (sl4a) tests passing
Change-Id: I3135e807610380a782a9ea671cad13bff3131423
om_android_server_wifi_aware_WifiAwareNative.cpp
db8cfda2047da37ac3b4c4fc9d6d966db1f7be24 26-Jan-2017 Etan Cohen <etancohen@google.com> [AWARE] Updated discovery period semantics

Discovery period semantics modified from ms (or ignored) to a DW period
(to trade-off latency vs. power). Change hard-coded 500 value to 1 which
is the equivalent new semantic.

Bug: 33552536
Test: sl4a integration tests passing
Change-Id: Ica918ea53b5f3f43ab0071068eac31d328deaf90
om_android_server_wifi_aware_WifiAwareNative.cpp
0e2304ddb2f516d999d63d3ec6b08a1972c978b3 05-Jan-2017 Etan Cohen <etancohen@google.com> [AWARE] Clean-up HAL API

Bug: 32207606
Test: integration (sl4a) tests passing - no regressions
Change-Id: Ie0962671c094b85aeefc0c20d72d8f713d5c6fee
om_android_server_wifi_aware_WifiAwareNative.cpp
0582f33392a7c37853d57bd636f2b3f37b44ce7b 14-Dec-2016 Colin Cross <ccross@android.com> Remove unused AndroidRuntime.h include

AndroidRuntime.h is not used, remove it. AndroidRuntime.h will not
be available without a dependency on libandroid_runtime.

Bug: 33630870
Test: m -j native
Change-Id: If53dacaa4efcfa65ae5e6240159409b8b0453f67
ni_helper.cpp
a140809e4a8eeb21b257caa7faaac0b96a3608f9 17-Nov-2016 Randy Pan <zpan@google.com> Remove obsoleted HAL API set_bssid_blacklist

Bug: 32907214
Test: Bulid
Change-Id: Ibeedb6f95349ce8f225228ba02cdd4eedc599074
Merged-In: Ibeedb6f95349ce8f225228ba02cdd4eedc599074
om_android_server_wifi_WifiNative.cpp
b98623f8491bc0690f8f7ea723b8df78e50dc499 15-Nov-2016 Etan Cohen <etancohen@google.com> Merge "[AWARE] Update framework code for simplified HAL error codes"
am: 6b25452574

Change-Id: I13049886fc3137986df87241a8c7b2b342a5f602
69689c0657d0b6c7a2616ff9a55ecae15d1f084d 10-Nov-2016 Etan Cohen <etancohen@google.com> [AWARE] Update framework code for simplified HAL error codes

HAL error codes have been simplified (fewer) and a description
string (vendor-specific) added. Update framework code to use the
new error codes and log the description string.

(cherry-pick of commit 53007ea43c28fb700e37ba1fa74dc51953d5be71)

Bug: 27914592
Test: unit tests + integration tests passing
Change-Id: Ifb8d1c694e4ca72ecc0c4fe60c180b8a189f43d7
om_android_server_wifi_aware_WifiAwareNative.cpp
a59f7d1ab2b9e912a9918eef96a29676c1725824 06-Nov-2016 Etan Cohen <etancohen@google.com> [NAN-AWARE] Rename NAN to Aware
am: c29acea6ce

Change-Id: I83892bc745ae27e0b9d5dcee5799d4aa0baab968
c29acea6ceda3aa4ee537c05ce7d05dac2655cf9 26-Oct-2016 Etan Cohen <etancohen@google.com> [NAN-AWARE] Rename NAN to Aware

Rename only (and any reformatting needed to pass lint) - no
functional changes!

(cherry-pick of commit a61b9fb569153917a650f1d48efa20ba8846a9f3)

Bug: 32263750
Test: All unit tests and integration (sl4a) tests pass.
Merged-In: Idd8d0ad8d1fa1058c1bcd0de169a02e1fad9d070
Change-Id: I761b8f5b588d74eea66d7150a2f9a1e1ac5c1dfd
om_android_server_wifi_WifiNative.cpp
om_android_server_wifi_aware_WifiAwareNative.cpp
om_android_server_wifi_nan_WifiNanNative.cpp
5775f4a93435c479c5f8a2bf40ebb0ee0079f76a 11-Oct-2016 Ningyuan Wang <nywang@google.com> resolve merge conflicts of 849c5c7 to mnc-dev am: 29a2baf319 am: 583dc0e86d am: e61906f92c am: 8851f93e19
am: 2a9a3a9304

Change-Id: I79f6b8681416d90dc9f7246e4a4108a09848d100
2a9a3a9304640c7000d0ce1c1659ae9fade08b36 11-Oct-2016 Ningyuan Wang <nywang@google.com> resolve merge conflicts of 849c5c7 to mnc-dev am: 29a2baf319 am: 583dc0e86d am: e61906f92c
am: 8851f93e19

Change-Id: I9ff8deb5f9eda801c10e1ec5d4a777db4390aae6
583dc0e86d4702474b26cd8382b817fedd2cf333 11-Oct-2016 Ningyuan Wang <nywang@google.com> resolve merge conflicts of 849c5c7 to mnc-dev
am: 29a2baf319

Change-Id: I7da23548ca14ff44ac8e5f66c3cfc04763637bdf
29a2baf3195256bab6a0a4a2d07b7f2efa46b614 11-Oct-2016 Ningyuan Wang <nywang@google.com> resolve merge conflicts of 849c5c7 to mnc-dev

This resovles the merge conflict for ag/1514448/
After Android M, this function uses num_bssid instead of num_ap.
Both are prone to stack overflow attacks.

Bug: 31856351
Test: compile, unit tests, manual test

Change-Id: I194850a4c79ddf478d98e750f65b24e82d99ebc0
a5a18239096f6faee80f15f3fff39c3311898484 06-Oct-2016 Ningyuan Wang <nywang@google.com> wifinative jni: check array length to prevent stack overflow

params.ap is an array with length MAX_HOTLIST_APS == 128
We should check that params.num_bssid does not exceed this value,
otherwise this could be a stack overflow security vulnerability.

CTS will be added in another CL.

Bug: 31856351
Change-Id: I807f349ceef5c2f5a46eec87515d3550f8288739
Test: compile, unit tests, manual test
Test: SafetyNet log not triggered under non-exploit conditions
Test: POC executable does not crash wifi anymore.
om_android_server_wifi_WifiNative.cpp
c7266ce57118ebc5e639175543f0151106f85903 14-Sep-2016 Ningyuan Wang <nywang@google.com> Remove unused SetInterfaceUp()

BUG=None
TEST=compile, wifi still works

Change-Id: I9060f67fc9848bba8de82f7dc17e59fcdebc8d2f
om_android_server_wifi_WifiNative.cpp
480554af1be404fe3920605e3c5634497995ff95 29-Aug-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings in wifi/service.

* Add explicit keyword to conversion constructors or
NOLINT for implicit converters.

Bug: 28341362
Test: build with WITH_TIDY=1
Change-Id: I86858b03f38ea92fae94d10070eb66c708348c80
ni_helper.h
6975c33e8abbeedcb1b5f64a94f008b3c35b9d88 20-Aug-2016 Etan Cohen <etancohen@google.com> [NAN] Simplify publish/subscribe configuration - merge match filters
am: 65e89d2063

Change-Id: I18018e236686cfd87fb8d9ebda420cfcd0cd1c07
65e89d2063f6ee50d00a2579b809deb0a98b5d8b 19-Aug-2016 Etan Cohen <etancohen@google.com> [NAN] Simplify publish/subscribe configuration - merge match filters

Merge Tx/Rx match filters into single Match filter configuration. Only
a single filter can be used at a time (either Tx or Rx).

Bug: 30948496
Change-Id: I863b642ca1f1d4790fcedcea07eaa91b7ff8ea17
om_android_server_wifi_nan_WifiNanNative.cpp
8249dec7f00e21218bcff6e16cf584ef37d87686 10-Aug-2016 Christopher Wiley <wiley@google.com> Rely on wificond to start/stop supplicant

Bug: 30666540
Test: Still able to connect via WiFi

Change-Id: Ia8a706db70be18b2d4b4687400d9a06d0819690e
om_android_server_wifi_WifiNative.cpp
8812ab2ce5def57a6abe55719ee69892d27c70d7 12-Aug-2016 Christopher Wiley <wiley@google.com> Always start/stop wpa_supplicant service on request

For a given product, P2P is either supported or not supported,
depending on the product configuration and hardware support.
Because of this, on a given product, we do not need to determine
which wpa_supplicant configuration to run, we can just use "whatever
the given product supports."

We've changed init files to define a single service "wpa_supplicant".
In places where there were both p2p_supplicant and wpa_supplicant
services defined, we have removed the wpa_supplicant service, and
replaced it with the definition of p2p_supplicant.

Above the supplicant we choose for a given platform, we still keep
the hooks that allow optional P2P support in the framework, since
the framework needs to support hardware with P2P support, and hardware
without.

Bug: 30816535
Test: unit tests pass on bullhead
Test: cts-tradefed run cts-dev \
--module=CtsNetTestCases \
--test=android.net.wifi.cts.ConcurrencyTest passes

Change-Id: I6ea65fde1707f65e70b41c94ca823bb2318d81f0
om_android_server_wifi_WifiNative.cpp
0f0cd745dce43b211bf1ea52cf6096c5ffea9b5b 05-Aug-2016 Wei Wang <weiwa@google.com> Merge "Remove spam logs for Wifi RTT"
07412d5e025b85de146399081db4851088d86dae 05-Aug-2016 Wei Wang <weiwa@google.com> Remove spam logs for Wifi RTT

Removed debug logs for RTT params and adjusted log levels.

Bug: 30115441
Change-Id: I89d6757c8ebb59851eff67f91abe71b095ade327
om_android_server_wifi_WifiNative.cpp
bc582fdbca0d2099139f9790c7d0e1f9b55b0214 02-Aug-2016 Christopher Wiley <wiley@google.com> Remove unused driver management JNI calls

wificond does this work for us now.

Bug: 30041062
Change-Id: Ie4c8e6d8b55b9495102f92db6772d382cc3e7c07
om_android_server_wifi_WifiNative.cpp
6d02f49e05363e96776062d6979240472d0e6701 22-Jul-2016 Etan Cohen <etancohen@google.com> [NAN] Modify arguments from \"array, length\" to \"array\"
am: 80a6988b53

Change-Id: Ife00dd5e7f2e10ceb849ac52740081147b529793
80a6988b532a1a63a164a6ff7f63ac88762bd633 16-Jul-2016 Etan Cohen <etancohen@google.com> [NAN] Modify arguments from "array, length" to "array"

Arrays carry their own lengths. There's no need to provide mechanism
to 'shave' the array - could be done explicitly by caller if needed.

Bug: 29617160
Change-Id: I98ca3298b104c9ad4bc9933694d0aea55b7d633d
om_android_server_wifi_nan_WifiNanNative.cpp
ni_helper.cpp
a2008c5029ef1099794d72dac8a2382dd1b28c47 13-Jul-2016 Etan Cohen <etancohen@google.com> [NAN] Service name usage: add validity check call & use byte[]
am: 91a3f00bea

Change-Id: I6c4416ea3cef39d7ff7b739d38d4f4ba3cc1c1f4
91a3f00bea170ed5a37566c12608b66755ddfa99 07-Jul-2016 Etan Cohen <etancohen@google.com> [NAN] Service name usage: add validity check call & use byte[]

Validates service name per spec (see bug for details). Propagate
through to HAL as a byte[] rather than a string.

Bug: 30000106
Change-Id: I5af8dd10c65edac1aa5e742ca9fd152989e322e0
om_android_server_wifi_nan_WifiNanNative.cpp
ni_helper.cpp
ni_helper.h
ddf9ccd8144d8d381d1f5b5a625d17113229febf 24-Jun-2016 Christopher Wiley <wiley@google.com> Allow libwifi-system to be mocked

Bug: 29634806
Test: Compiles, unittests pass on bullhead

Change-Id: Ic3baf86961be077231d40ae1732b127d668e9589
om_android_server_wifi_WifiNative.cpp
ad1367edfa4bc735c46fa8919753cbd05575c4ef 21-Jun-2016 Christopher Wiley <wiley@google.com> Move basic HAL init code to libwifi_system

While here, fix a bug where the conditional for "do we
support getting valid channels" was reversed in the implementation.

Bug: 29417819
Test: Compiles, Wifi continues to associate on angler

Change-Id: Ife3eee3aa25dfaf62589b395c74c4f8473238758
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
eb2afa500742cabd033d0a2f8dd145809ee11ad9 20-Jun-2016 Christopher Wiley <wiley@google.com> Move set_iface_flags to libwifi-system

Rename to the more accurate set_iface_up().
Expose an alias to encode assumptions about global iface names.
Return an error when buffer overflow is averted.
Handle EINTR from ioctls.
Wrap socket fd in a scoped closer.
Minor refactors to clean up logic and remove dead logging.

Bug: 29417819
Change-Id: Ib1fde6dae5e3068643950d0905f5761d0c9b6daf
Test: Compiles, WiFi still associates on bullhead.
om_android_server_wifi_WifiNative.cpp
cf0de78d88fcd8bbc69792f29592fbb5fe744e16 21-Jun-2016 Christopher Wiley <wiley@google.com> Merge "Make wifi.c code a little more C++"
59f36e92c8f694c1215dd6e4ddcf95782a8783b9 17-Jun-2016 Christopher Wiley <wiley@google.com> Make wifi.c code a little more C++

Compile functionality as C++.
Put everything in namespaces.
Remove string #defines from the header.
Reorder public function definitions to match the header.

Bug: 29418225
Test: Compiles

Change-Id: I5461f5cfe0db24e338c24489df511eea2257dc39
om_android_server_wifi_WifiNative.cpp
f8a283f4fc2f103fdf68062a50e516141d1e881d 20-Jun-2016 Christopher Wiley <wiley@google.com> Refactor header includes in jni code

References to headers from libnativehelper have now been
prefixed with nativehelper/.
Use double quotes to include local headers, and <> for
everything else.
Sort includes and separate system libraries from C standard
library headers.

Change-Id: I55b60b208e015fe054730f4051fb47e7c3be9b21
om_android_server_wifi_WifiNative.cpp
om_android_server_wifi_nan_WifiNanNative.cpp
ni_helper.cpp
a591506fbf1445877fc2f97bca1e00b51ccc3a85 17-Jun-2016 Christopher Wiley <wiley@google.com> Move device dependent functionality to libwifi-hal

Bug: 29418968
Change-Id: I0fa3047972c57af7128ce6384b62960f6f017d93
Test: wifi works/unittests pass on bullhead
om_android_server_wifi_WifiNative.cpp
189a1eff9eef200cab7a61e5bf6e9865bfa46ce4 15-Jun-2016 Christopher Wiley <wiley@google.com> Wrap vendor provided HAL in libwifi-hal

While here, fix the include paths so that we explicitly refer to the
headers in hardware_legacy.

Bug: 29396611
Test: Compiles, can associate to an AP on angler/bullhead
Test: runtest frameworks-wifi continues to pass

Change-Id: Ic76ce613b80eb9b3200699c5e1dd083a43e2b1c5
om_android_server_wifi_WifiNative.cpp
om_android_server_wifi_nan_WifiNanNative.cpp
ni_helper.cpp
ifi_hal_stub.h
94a1844242a3725d9314f2e2dbcdf0ab58b0f1c1 15-Jun-2016 Christopher Wiley <wiley@google.com> Move wifi.c to libwifi-system

This library will eventually contain only device independent wifi
related code. For now, it still takes a few parameters from the build
system to control #defines in a device specific way.

Bug: 29321445
Change-Id: I6d0054a15b0e448019bb51728763d961132c5464
Test: Compiles, can associate to APs on bullhead, angler
om_android_server_wifi_WifiNative.cpp
om_android_server_wifi_nan_WifiNanNative.cpp
ni_helper.cpp
5764d181419458d0946b4ed98a061a5b1d1587d5 14-Jun-2016 Wei Wang <weiwa@google.com> Merge \\\"Fix collection timestamp unit in RttResult\\\" into nyc-dev am: 6a6fddc42c am: 797fccd2bc
am: 96e677b5e6

Change-Id: I2b4ede65883f9b22592cd965540edfa1d72d9e86
96e677b5e692ecd31d6d07335b3e403e65475bd5 14-Jun-2016 Wei Wang <weiwa@google.com> Merge \\"Fix collection timestamp unit in RttResult\\" into nyc-dev am: 6a6fddc42c
am: 797fccd2bc

Change-Id: I4eb478f86603276d0ef5b48a3610194c5c395d67
6a6fddc42c5a0792bae2d09b8e89937aa2ccc771 14-Jun-2016 Wei Wang <weiwa@google.com> Merge "Fix collection timestamp unit in RttResult" into nyc-dev
ad34e89a3f383d785f84242037b460de81576827 14-Jun-2016 Wei Wang <weiwa@google.com> Fix collection timestamp unit in RttResult

Bug:29360310
Change-Id: I00f83d9413d4673c3419b8dd6444db1efbf8ff1b
om_android_server_wifi_WifiNative.cpp
301dbcf1b3229ec5c3d0e7dffbf9318268927539 13-Jun-2016 Etan Cohen <etancohen@google.com> resolve merge conflicts of f5a9cc0 to master

Change-Id: Ib30c045a31108d095635e7ff4c093ef0ccf9431c
c7c2741335d43cdc9af92e8a2e415f07ad78a4a2 08-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings am: 1921acbf2c am: 49fefde164 am: 444e06c469 am: 0f37e416a4 am: 04fdb2ce41 am: 05e029710c am: 8e0899faab am: 15a72380b1 am: a9c9a971cf am: ad0d0a4895
am: 848c1f089f

Change-Id: I4101a56b1765437364cc68a48deff2d32a9949a4
848c1f089f91ee82cb829f038a74b6df8850d937 08-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings am: 1921acbf2c am: 49fefde164 am: 444e06c469 am: 0f37e416a4 am: 04fdb2ce41 am: 05e029710c am: 8e0899faab am: 15a72380b1 am: a9c9a971cf
am: ad0d0a4895

Change-Id: I5e6dcdf2bd4945c694e94e2e381cadf4a440aeab
a9c9a971cf1a68113541a7bb5e6b6ce9c85799f3 08-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings am: 1921acbf2c am: 49fefde164 am: 444e06c469 am: 0f37e416a4 am: 04fdb2ce41 am: 05e029710c am: 8e0899faab
am: 15a72380b1

Change-Id: If1f7862c71755f10eca68bfbcedcda431e39c0ff
05e029710ca4d6d59d0ff82565a0c02346d66382 08-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings am: 1921acbf2c am: 49fefde164 am: 444e06c469 am: 0f37e416a4
am: 04fdb2ce41

Change-Id: I4232ea7bec8566cd35aee630863c432373fbcb1f
04fdb2ce414b6175aad402fa459b3988a3238e97 08-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings am: 1921acbf2c am: 49fefde164 am: 444e06c469
am: 0f37e416a4

Change-Id: I4794005c53ae7d99627de25722c846c2a45b856c
0f37e416a42451deeaf0bbe7bfca8232d050f39e 08-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings am: 1921acbf2c am: 49fefde164
am: 444e06c469

Change-Id: Ied4ebd36b8e373b830d61869723caa3e8eeb32c3
f5a9cc0ca383ea1763f9d3014fd68d5455fab8f6 31-May-2016 Etan Cohen <etancohen@google.com> [NAN] NAN data-path HAL wrapper

Add wrappers to the NAN data-path APIs. Covers:
- JNI
- WifiNanNative calls
- WifiNanStateManager commands, responses, notifications

Effectively all the code which pipes information through - none of
the code which actually does something with the information.

Includes unit tests for above code.

Bug: 26562610
Change-Id: I69a47ae84b92bd69ddc9f70bed69c0b06bacde7d
om_android_server_wifi_nan_WifiNanNative.cpp
ifi_hal_stub.h
1921acbf2c82dd0813b3734f2609fe6f971c9c2f 01-Jun-2016 Paul Stewart <pstew@google.com> Deal correctly with short strings

The parseMacAddress function anticipates only properly formed
MAC addresses (6 hexadecimal octets separated by ":"). This
change properly deals with situations where the string is
shorter than expected, making sure that the passed in char*
reference in parseHexByte never exceeds the end of the string.

BUG: 28164077
TEST: Added a main function:

int main(int argc, char **argv) {
unsigned char addr[6];
if (argc > 1) {
memset(addr, 0, sizeof(addr));
parseMacAddress(argv[1], addr);
printf("Result: %02x:%02x:%02x:%02x:%02x:%02x\n",
addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
}
}

Tested with "", "a" "ab" "ab:c" "abxc".

Change-Id: I0db8d0037e48b62333d475296a45b22ab0efe386
om_android_server_wifi_WifiNative.cpp
10bb143b1a40b39fe66c51d153375a4531966a68 27-May-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings. am: c3385bb331 am: 625f6c743c am: 85ff322aed
am: 5d9933999c

* commit '5d9933999ca37b2eaf3461230dd4ead87ed212fc':
Fix misc-macro-parentheses warnings.

Change-Id: I1dc4182a5a62beefa815e2eeace2c97f087bba1c
85ff322aed5b335b98ef8e03e6ec77a79b6f6861 27-May-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings. am: c3385bb331
am: 625f6c743c

* commit '625f6c743cfa99d682b5cf8bb21c171daf1370d4':
Fix misc-macro-parentheses warnings.

Change-Id: Ib90ff75afe1469446883e54256ddfb429d0b78e1
736131b9352086c8d7a6dae53b6d2e9ca5956a20 24-May-2016 Adam Buchbinder <abuchbinder@google.com> Merge "Add missing va_end() calls in some variadic functions."
33bb803038be043f8853159bf7381d3b4854b318 24-May-2016 Etan Cohen <etancohen@google.com> [NAN] Update send message flow to be (more) asynchronous
am: 1bf97ad103

* commit '1bf97ad103217a2e18370c382fe30abd88716d53':
[NAN] Update send message flow to be (more) asynchronous

Change-Id: I8babf1b70e2046a914235da06d470cf4a91e993c
3d29c7f6ea68aa2c799be7089cb279874af0f96d 23-May-2016 Adam Buchbinder <abuchbinder@google.com> Add missing va_end() calls in some variadic functions.

This addresses the following cppcheck reports:
[frameworks/opt/net/wifi/service/jni/jni_helper.cpp:517]: (error)
va_list 'params' was opened but not closed by va_end().
[frameworks/opt/net/wifi/service/jni/jni_helper.cpp:538]: (error)
va_list 'params' was opened but not closed by va_end().
[frameworks/opt/net/wifi/service/jni/jni_helper.cpp:558]: (error)
va_list 'params' was opened but not closed by va_end().
[frameworks/opt/net/wifi/service/jni/jni_helper.cpp:585]: (error)
va_list 'params' was opened but not closed by va_end().

Change-Id: Ifdd26ba56cd2115884dcf903dc6f2d128ebd739c
ni_helper.cpp
1bf97ad103217a2e18370c382fe30abd88716d53 04-May-2016 Etan Cohen <etancohen@google.com> [NAN] Update send message flow to be (more) asynchronous

Bug: 27916698
Change-Id: Ie9741b73190e733e42dae63386557e6feb01eb54
om_android_server_wifi_nan_WifiNanNative.cpp
6fd144668eeffdf91aa299852e4e849856d7e862 23-May-2016 Ravi Joshi <ravij@codeaurora.org> Merge "[NAN] Fix memory access violation during transmit followup" into mm-wireless-dev
am: 62f63a972a

* commit '62f63a972ac410750d5de10424ebc9030118365d':
[NAN] Fix memory access violation during transmit followup

Change-Id: Iaf7ad1f2623b6af47dbec0edf12788c4759298a6
62f63a972ac410750d5de10424ebc9030118365d 23-May-2016 Etan Cohen <etancohen@google.com> Merge "[NAN] Fix memory access violation during transmit followup" into mm-wireless-dev
0815c278ebf1e350e5dff161c04949344e852fb0 23-May-2016 Ravi Joshi <ravij@codeaurora.org> [NAN] Fix memory access violation during transmit followup

Fix the memory access violation during handling of NAN
transmit followup indication due to stale/invalid callback
pointer.

Change-Id: I086ea0406ba70e7e903f36af87ff5e5355b8a149
Signed-off-by: Ravi Joshi <ravij@codeaurora.org>
om_android_server_wifi_nan_WifiNanNative.cpp
26d622799dcb4e20f05c0f297c898eb24156070c 18-May-2016 Etan Cohen <etancohen@google.com> Merge "[NAN] Add send message queue depth to capabilities" into mm-wireless-dev
am: b46f7f1944

* commit 'b46f7f1944bd92404f3e874aafc08cd99d0d1dbe':
[NAN] Add send message queue depth to capabilities

Change-Id: Idae0ee20d23c8ec5ab1fecbaed988242699f8ec7
7c04e256944b1841502637d8f0b42b575a1a543b 16-May-2016 Etan Cohen <etancohen@google.com> [NAN] Add send message queue depth to capabilities

Bug: 27916698
Change-Id: I2b97bd81d861b1b4009d5f82e70d86a5dc861864
om_android_server_wifi_nan_WifiNanNative.cpp
c3385bb331965d4adacae39338bfe9bd6046e740 12-May-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings.

Bug: 28705665
Change-Id: If2c150fa7eec9550600e3470daf215f23b2a070d
om_android_server_wifi_WifiNative.cpp
e5b95ad6e2ba3eee8141f21a118b20d4a81dfcda 03-May-2016 mukesh agrawal <quiche@google.com> Merge "WifiNative.cpp: reduce logspam" into nyc-dev am: 3d0be5a317 am: 9d7c5e10ce
am: 1592d07d43

* commit '1592d07d43623fa47dfc35ce93b816dac08975fe':
WifiNative.cpp: reduce logspam

Change-Id: Ib967dc43ac7bd0e1a9fee616936c45ee7342cb20
1592d07d43623fa47dfc35ce93b816dac08975fe 03-May-2016 mukesh agrawal <quiche@google.com> Merge "WifiNative.cpp: reduce logspam" into nyc-dev am: 3d0be5a317
am: 9d7c5e10ce

* commit '9d7c5e10cef86706850f8b8458bf337c44a012c5':
WifiNative.cpp: reduce logspam

Change-Id: Ia1956e8d536e2c6d983cc3271c1a52c097602c7a
d68ffeb7b8dae64d20e76783c8ce5a5bcafebc01 03-May-2016 mukesh agrawal <quiche@google.com> Merge "WifiNative.cpp: reduce logspam" into nyc-dev
am: 3d0be5a317

* commit '3d0be5a31795cb4cd74a2793bcd1c8c52aa8bfca':
WifiNative.cpp: reduce logspam

Change-Id: I4e9724805489f651735f1c93c5b7172facffdb11
3161c10e00c2c8198809fc514cada0a43c5e66f1 03-May-2016 mukesh agrawal <quiche@google.com> WifiNative.cpp: reduce logspam

We sometimes fetch the channel list often (every 20 seconds),
so logging the message on every attempt to fetch the list is
spammy.

Demote the message to verbose level, to reduce spam.

BUG=28425940
TEST=manual

Manual test:
- install new code
- reboot device
- after reboot, sleep 60
$ adb logcat -d \
| egrep 'getting valid|ScannerImpl: Starting wifi scan for freqs'
-> match for "ScannerImpl...", but not "getting valid"

Change-Id: I56a8f941ced0f291f0c37e9279e5dda635351cb2
om_android_server_wifi_WifiNative.cpp
e3cb83f0fe21e7ed6b412399a4f36090a2437e6a 14-Apr-2016 Mukesh Agrawal <quiche@google.com> Merge changes I8da6c1a4,I619b9c81,I22a753d7,If818bc37 into nyc-dev am: 2b7a4da
am: 0c754f9

* commit '0c754f9f825e84ca5f88721b3d09072b20b71084':
wifi service: nuke verbose logs on no-verbose
wifi service: add support for driver dump HAL API
WifiLogger: make firmware dump conditional on verbose
wifi service: add utility to check printability

Change-Id: I94a1e7ed243f4d1c7062d7326ca3682ff9ab81c7
0c754f9f825e84ca5f88721b3d09072b20b71084 14-Apr-2016 mukesh agrawal <quiche@google.com> Merge changes I8da6c1a4,I619b9c81,I22a753d7,If818bc37 into nyc-dev
am: 2b7a4da

* commit '2b7a4daa21df85f6a8ca2c4992ba53634071cac6':
wifi service: nuke verbose logs on no-verbose
wifi service: add support for driver dump HAL API
WifiLogger: make firmware dump conditional on verbose
wifi service: add utility to check printability

Change-Id: I923607af9ad326d5adee1a5fd83116f046212f96
2b7a4daa21df85f6a8ca2c4992ba53634071cac6 14-Apr-2016 Mukesh Agrawal <quiche@google.com> Merge changes I8da6c1a4,I619b9c81,I22a753d7,If818bc37 into nyc-dev

* changes:
wifi service: nuke verbose logs on no-verbose
wifi service: add support for driver dump HAL API
WifiLogger: make firmware dump conditional on verbose
wifi service: add utility to check printability
d0cb2fae195ebb9f658095667f3c7b7b8d69a204 07-Apr-2016 mukesh agrawal <quiche@google.com> wifi service: add support for driver dump HAL API

Implement the framework side of the driver dump HAL API:
- When a bugreport is generated, ask the HAL to provide
a driver memory dump.
- When dumping a bugreport, include the driver memory
dump (if available).

Along the way: add a stub implementation of the driver
dump HAL API, in case a particular vendor HAL does not
implement the API.

While there: declare the (existing) callback for
firmware memory dumps as static. There's no need for
on_firmware_memory_dump() to be visible outside of
com_android_server_wifi_WifiNative.cpp. (Modules
that need access to on_firmware_memory_dump() will be
provided with a pointer; they don't need to reference
the function by name.)

BUG=27554392
TEST=unit tests
TEST=bullhead: dumpsys + verify that driver dump is present
TEST=angler: dumpsys + verify we properly handle unimplemented API

Change-Id: I619b9c819a41a795c1119a8c2fa22447f0c44b56
om_android_server_wifi_WifiNative.cpp
b2577fd4eb5e7763e8d9ad2ade53ea429976b40c 11-Apr-2016 Wei Wang <weiwa@google.com> Merge "Read preamble from HAL for responder." into nyc-dev am: 21d1b46
am: 1fb5e71

* commit '1fb5e713d22ec533d740cc016a36e521d8c133a5':
Read preamble from HAL for responder.

Change-Id: I5533dcfeccee9ccefb68f4be485be5330280d95a
1fb5e713d22ec533d740cc016a36e521d8c133a5 11-Apr-2016 Wei Wang <weiwa@google.com> Merge "Read preamble from HAL for responder." into nyc-dev
am: 21d1b46

* commit '21d1b4662506ca07135fc7a1f1230d3cfda78a18':
Read preamble from HAL for responder.

Change-Id: Ic78491df67f42206ee6cfe5bc422baccee525243
21d1b4662506ca07135fc7a1f1230d3cfda78a18 11-Apr-2016 Wei Wang <weiwa@google.com> Merge "Read preamble from HAL for responder." into nyc-dev
8af9613d942cec54b516e47f600e9467bcd99d21 08-Apr-2016 Etan Cohen <etancohen@google.com> [NAN] Re-factor connect/config flow
am: 9864521

* commit '9864521b92325bad1d20510d99d4e967b6f3d4eb':
[NAN] Re-factor connect/config flow

Change-Id: I492fee202b76e033579be8805bf34fdbb0273c07
9864521b92325bad1d20510d99d4e967b6f3d4eb 18-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Re-factor connect/config flow

Simplify flow: configure and connect in a single call.
Prevent info leak: no longer provide configuration back to caller.

Bug: 27617910
Bug: 27553226
Bug: 27579450
Change-Id: I8ed378a28a0794940583b868c8d7ac05967c77d0
om_android_server_wifi_nan_WifiNanNative.cpp
895cdc96a57c78108695fe32614f2bf7afa871c7 07-Apr-2016 Wei Wang <weiwa@google.com> Read preamble from HAL for responder.

Integrate HAL API changes.

Bug: 28071418
Change-Id: Ice7d30101b4c052f5b6ae01de88978b025f6611e
om_android_server_wifi_WifiNative.cpp
cb8ab3d0a7ba84b54624cd37e59960c8e2f2990a 06-Apr-2016 Mukesh Agrawal <quiche@google.com> Merge changes from topic \'packet-fate\' into nyc-dev am: d1bd533
am: 1244678

* commit '124467850d7cd146f212f6c99e86f58bddd32f76':
WifiStateMachine: report failures to WifiLogger
WifiLogger: add support for packet fate
WifiNative: flesh out packet fate implementation
WifiNative C++: add support for packet fate
WifiNative: add infrastructure for packet fates
jni_helper: add createObjectWithArgs

Change-Id: Ic6a1d29001b5e832056fe71d3c80d59ecc5c2c81
1257a990e07aba680ca812a467fbf942d13047d8 06-Apr-2016 Roshan Pius <rpius@google.com> Merge "WifiNative: Ignore tx level stats on unsupported devices" into nyc-dev am: c1be285
am: 11e7895

* commit '11e7895e35e0b87bd24d32e301f0149b99411bf1':
WifiNative: Ignore tx level stats on unsupported devices

Change-Id: I548b94a20843b976adc99d810a3b471dd08180ce
124467850d7cd146f212f6c99e86f58bddd32f76 06-Apr-2016 mukesh agrawal <quiche@google.com> Merge changes from topic \'packet-fate\' into nyc-dev
am: d1bd533

* commit 'd1bd53369b88d91968c19dd0cc288d1d2db8b3c6':
WifiStateMachine: report failures to WifiLogger
WifiLogger: add support for packet fate
WifiNative: flesh out packet fate implementation
WifiNative C++: add support for packet fate
WifiNative: add infrastructure for packet fates
jni_helper: add createObjectWithArgs

Change-Id: Ib2ec56c309dcdeaf392cd02b397957ae40a10875
11e7895e35e0b87bd24d32e301f0149b99411bf1 06-Apr-2016 Roshan Pius <rpius@google.com> Merge "WifiNative: Ignore tx level stats on unsupported devices" into nyc-dev
am: c1be285

* commit 'c1be2851f1c54e6e047ac62d71c9feb7e8df1561':
WifiNative: Ignore tx level stats on unsupported devices

Change-Id: I8fd784e053d3fed8f44103920be746d510847946
d1bd53369b88d91968c19dd0cc288d1d2db8b3c6 06-Apr-2016 Mukesh Agrawal <quiche@google.com> Merge changes from topic 'packet-fate' into nyc-dev

* changes:
WifiStateMachine: report failures to WifiLogger
WifiLogger: add support for packet fate
WifiNative: flesh out packet fate implementation
WifiNative C++: add support for packet fate
WifiNative: add infrastructure for packet fates
jni_helper: add createObjectWithArgs
aaa79f0ef5b0f91e0525408a4a45f6c4cd5dfd94 01-Apr-2016 mukesh agrawal <quiche@google.com> WifiNative C++: add support for packet fate

Add the C++ side of packet fate reporting. This code does
two things: a) converts data between Java and native
representations, and b) forwards HAL calls on to the
vendor HAL implementation.

BUG=27528124
TEST=compile

Change-Id: Ifb5810fdab3da2cfb2c75bd05eb7a33f3b6e3c63
om_android_server_wifi_WifiNative.cpp
3592af2adb0c30244a46db03164ca0f7e6d3b613 01-Apr-2016 mukesh agrawal <quiche@google.com> jni_helper: add createObjectWithArgs

For the packet fate feature, we'd like to be able
to call a constructor that requires arguments.
Add createObjectWithArgs, to meet that need.

While there: update the prototypes for
set<Type>ArrayRegion(), to make it clear that the
source values are not modified.

BUG=27528124
TEST=compile

Change-Id: If29939c9310c4b72098533efb9a785b325f9b2cf
ni_helper.cpp
ni_helper.h
ff866c96ff5456bb0741aecbc26a4b097e798ece 04-Apr-2016 Roshan Pius <rpius@google.com> WifiNative: Ignore tx level stats on unsupported devices

Use the new feature flag to ignore the tx level stats on unsupported
devcies.

BUG: 27969673
Change-Id: Ifd9bad579c44b088dfc26a0c3bdc9461e8a23d48
om_android_server_wifi_WifiNative.cpp
07cb876d807dd97a0dfba8f0d23c48a5cf1c51ad 29-Mar-2016 Roshan Pius <rpius@google.com> Merge changes from topic \'wifi_tx_power_levels\' into nyc-dev am: bf4982c
am: b62b1d5

* commit 'b62b1d5569e4d1e2fdd8221862810039c9c8075f':
Read new HAL tx_time_per_level structure element
Send wifi tx power levels to BatteryStats

Change-Id: I423b3baeb564ddbadfbb8e891c8a4943af35e67f
b62b1d5569e4d1e2fdd8221862810039c9c8075f 29-Mar-2016 Roshan Pius <rpius@google.com> Merge changes from topic \'wifi_tx_power_levels\' into nyc-dev
am: bf4982c

* commit 'bf4982c6b1e230a3659e30eb47290e49c7034b14':
Read new HAL tx_time_per_level structure element
Send wifi tx power levels to BatteryStats

Change-Id: I16e80621eca1327627d64e82c7023b3e443c49a1
bf4982c6b1e230a3659e30eb47290e49c7034b14 29-Mar-2016 Roshan Pius <rpius@google.com> Merge changes from topic 'wifi_tx_power_levels' into nyc-dev

* changes:
Read new HAL tx_time_per_level structure element
Send wifi tx power levels to BatteryStats
d9f185e759f0040686630958796fa6c41a8e51a8 25-Mar-2016 Mitchell Wills <mwills@google.com> Merge "Pass buckets scanned from HAL to framework" into nyc-dev am: aa575d8
am: cd112c7

* commit 'cd112c733f574ee94d6007f57614f928dc8bd811':
Pass buckets scanned from HAL to framework
cd112c733f574ee94d6007f57614f928dc8bd811 25-Mar-2016 Mitchell Wills <mwills@google.com> Merge "Pass buckets scanned from HAL to framework" into nyc-dev
am: aa575d8

* commit 'aa575d82dcc01cb213402923796c870ecdd45b28':
Pass buckets scanned from HAL to framework
aa575d82dcc01cb213402923796c870ecdd45b28 25-Mar-2016 Mitchell Wills <mwills@google.com> Merge "Pass buckets scanned from HAL to framework" into nyc-dev
f9a1021e7176df86fa93d56acd64b0e4aa3c335b 25-Mar-2016 Paul Jensen <pauljensen@google.com> Merge "Move ApfFilter from ConnectivityService to IpManager" into nyc-dev am: 20047f1
am: 5762d63

* commit '5762d6364c64379172dc2bdaddd4f3f11e189965':
Move ApfFilter from ConnectivityService to IpManager
5762d6364c64379172dc2bdaddd4f3f11e189965 25-Mar-2016 Paul Jensen <pauljensen@google.com> Merge "Move ApfFilter from ConnectivityService to IpManager" into nyc-dev
am: 20047f1

* commit '20047f18a7cccdc279d480916308f612c5cbb63e':
Move ApfFilter from ConnectivityService to IpManager
20047f18a7cccdc279d480916308f612c5cbb63e 25-Mar-2016 Paul Jensen <pauljensen@google.com> Merge "Move ApfFilter from ConnectivityService to IpManager" into nyc-dev
e1dab7a2e3ab5911f812a302b4beed1f6eb5aba7 18-Mar-2016 Paul Jensen <pauljensen@google.com> Move ApfFilter from ConnectivityService to IpManager

There's a few advantages to having ApfFilter in IpManager:
1. If things go wrong, crashing a particular transport is less bad then
crashing ConnectivityService. We also don't want to use
ConnectivityService as a dumping ground for transport-specific logic.
2. This makes implementing WifiManager.MulticastLock a lot simpler and
safer because enabling/disabling it doesn't have to go through the
NetworkAgent, which could risk various races (e.g. installing a filter
into the wrong WiFi network).
3. IpManager is the ultimate source for LinkProperties for a particular
transport and since ApfFilter uses the LinkProperties it's better to
have it closely paired with the IpManager. Likewise, ApfFilter needs
to know the APF capabilities of the transport, so having it in
the transport avoids having to parcel this information through the
NetworkAgent.

Bug: 26238573
Change-Id: I99b85f2b64972f0e7572170ec5d1926081aa3429
om_android_server_wifi_WifiNative.cpp
edd5965fe720b148315744fc0694352fb0a2265d 24-Mar-2016 Ningyuan Wang <nywang@google.com> Merge "Revert "Remove hardcoded \'wlan0\' from native WiFi code"" into nyc-dev am: 8e66cfa
am: 2487845

* commit '248784527cdfd339e8ee1088a5be32e977b0cb6c':
Revert "Remove hardcoded 'wlan0' from native WiFi code"
248784527cdfd339e8ee1088a5be32e977b0cb6c 24-Mar-2016 Ningyuan Wang <nywang@google.com> Merge "Revert "Remove hardcoded \'wlan0\' from native WiFi code"" into nyc-dev
am: 8e66cfa

* commit '8e66cfa1668921d9ef0f385879a7cffa54a3f5a8':
Revert "Remove hardcoded 'wlan0' from native WiFi code"
3b51fd1bb8356b284822f4f677ad941524e616eb 24-Mar-2016 Ningyuan Wang <nywang@google.com> Revert "Remove hardcoded 'wlan0' from native WiFi code"

This reverts commit da10b1588be241c59434d5f464463e7f8c7bcc5e.

BUG=27814126

Change-Id: I04be0b5b991fdb8a1d3a8467d622c07a185f3900
om_android_server_wifi_WifiNative.cpp
c9e6069eb941d282af213dc20b171877db6b567b 23-Mar-2016 Mitchell Wills <mwills@google.com> Pass buckets scanned from HAL to framework

Bug: 27506257
Change-Id: Ia57327e265317fd0d1ce09d238d9c1e9c55bf2b1
om_android_server_wifi_WifiNative.cpp
75302157532714bd33de8e93c4d6bd47c7f4d57b 22-Mar-2016 Ningyuan Wang <nywang@google.com> Merge "Remove hardcoded \'wlan0\' from native WiFi code" into nyc-dev am: 1b14e76
am: 1ca27e4

* commit '1ca27e43318485659d68d6f6f267555354540ba2':
Remove hardcoded 'wlan0' from native WiFi code
1ca27e43318485659d68d6f6f267555354540ba2 22-Mar-2016 Ningyuan Wang <nywang@google.com> Merge "Remove hardcoded \'wlan0\' from native WiFi code" into nyc-dev
am: 1b14e76

* commit '1b14e7606da9c3a1a0636279875018ece7f4aa74':
Remove hardcoded 'wlan0' from native WiFi code
da10b1588be241c59434d5f464463e7f8c7bcc5e 18-Mar-2016 Ningyuan Wang <nywang@google.com> Remove hardcoded 'wlan0' from native WiFi code

This CL changes the setInterfaceUpNative() API, adding an
interfaceName parameter.
This also moves the code for 'bringing up wlan0' out of
startHalNative().
The reason is that startHalNative() should not be in charge of
bringing up a specific interface.
For the similar reason this moves the code for 'bringing down
wlan0' out of waitForHalEventsNative().

BUG=22457263
TEST= cts & unit tests & manual test

Change-Id: Ia9cd7a6b4d75e5582561ffa53084932a3c177f05
om_android_server_wifi_WifiNative.cpp
84e6c0c94f692c9327e1c5ee708cafad640cfa18 16-Mar-2016 Roshan Pius <rpius@google.com> Read new HAL tx_time_per_level structure element

Read the new |tx_time_per_level| element added to wifi_radio_stat in the
jni code.
Create a separate local buffer for this array element and update
this array on every callback.

BUG: 27227497
Change-Id: If630614cff46b6d68d6306f25a639813c1a47632
om_android_server_wifi_WifiNative.cpp
a01e1060ca977ab68d74ca41cfb192574f0c0f56 18-Mar-2016 Ningyuan Wang <nywang@google.com> Merge "Use boolean instead of int parameter for toggleInterface()" into nyc-dev am: 1b662db
am: a90ed4a

* commit 'a90ed4a9c4526656f5a8a772392144fde0105b79':
Use boolean instead of int parameter for toggleInterface()
a90ed4a9c4526656f5a8a772392144fde0105b79 18-Mar-2016 Ningyuan Wang <nywang@google.com> Merge "Use boolean instead of int parameter for toggleInterface()" into nyc-dev
am: 1b662db

* commit '1b662dbe559e74179ddcb86a02baa74a0a85b3ce':
Use boolean instead of int parameter for toggleInterface()
64e816ff5483030636e1815f69a6cbaf8cef289e 17-Mar-2016 Ningyuan Wang <nywang@google.com> Use boolean instead of int parameter for toggleInterface()

WifiNative::toggleInterface() is using an int parameter for setting
interface up/down. It should be boolean instead.
This CL also renames toggleInterface() to setInterfaceUp().

BUG=27704936
TEST=compile, manually tested on bullhead

Change-Id: I88a98d3e4e53c95921d519db685886a3535dab9e
om_android_server_wifi_WifiNative.cpp
dabd5d5a3459292eb9d47c5909b1c415a24cfb44 16-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Fix build error (with extra warning) - uninitialized variable

Build error only - structure containing variable is reset to 0.

(cherry-pick of 5033f81bfa174a8ae14c34da04a791155e0b99fa)

Bug: 27607613
Change-Id: I13056b1505e7b96736b823692c18b4a6e820b926
om_android_server_wifi_nan_WifiNanNative.cpp
5033f81bfa174a8ae14c34da04a791155e0b99fa 16-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Fix build error (with extra warning) - uninitialized variable [DO NOT MERGE]

Build error only - structure containing variable is reset to 0.

Bug: 27607613
Change-Id: I13056b1505e7b96736b823692c18b4a6e820b926
om_android_server_wifi_nan_WifiNanNative.cpp
445d7d4361edb66a0bf065342b07f84605881bb9 11-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Replace session callback configuration control

Controlling session callback invocation:
- Remove event registration
- Add configurations to the subset (actually just termination) which
can be configured through the HAL

(cherry-pick of 951fbeb8c17867bcc748d7334d2f4f4c1a7fd97d)

Bug: 27607613
Change-Id: I040ab7902156605c3244515c81fa9435f1adaedc
om_android_server_wifi_nan_WifiNanNative.cpp
1c1461957fdfcf496f68dbf19d6f5490227f25a2 09-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Export match style configuration to API.

Enables configuration of match notification: either single (only first
notification in a string of identical matches) or all (get every single
match).

(cherry-pick of f769489d5ce91599c619d2433438f7e36965d231)

Bug: 27568256
Change-Id: Iab1c85df51fb63f540216d653882f1e0ece0262c
om_android_server_wifi_nan_WifiNanNative.cpp
5c8009222755072153214b39f0da82c814b56c04 15-Mar-2016 Wei Wang <weiwa@google.com> Merge "Fix native crash caused by null rtt params." into nyc-dev am: 7462584f8a
am: 45c2360aa1

* commit '45c2360aa1f1bee969160341d3447b4f0a95ee1a':
Fix native crash caused by null rtt params.
45c2360aa1f1bee969160341d3447b4f0a95ee1a 15-Mar-2016 Wei Wang <weiwa@google.com> Merge "Fix native crash caused by null rtt params." into nyc-dev
am: 7462584f8a

* commit '7462584f8a30f6dba5dc979b3dfbe3821b739d9c':
Fix native crash caused by null rtt params.
7462584f8a30f6dba5dc979b3dfbe3821b739d9c 15-Mar-2016 Wei Wang <weiwa@google.com> Merge "Fix native crash caused by null rtt params." into nyc-dev
951fbeb8c17867bcc748d7334d2f4f4c1a7fd97d 11-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Replace session callback configuration control [DO NOT MERGE]

Controlling session callback invocation:
- Remove event registration
- Add configurations to the subset (actually just termination) which
can be configured through the HAL

Bug: 27607613
Change-Id: I040ab7902156605c3244515c81fa9435f1adaedc
om_android_server_wifi_nan_WifiNanNative.cpp
f769489d5ce91599c619d2433438f7e36965d231 09-Mar-2016 Etan Cohen <etancohen@google.com> [NAN] Export match style configuration to API. [DO NOT MERGE]

Enables configuration of match notification: either single (only first
notification in a string of identical matches) or all (get every single
match).

Bug: 27568256
Change-Id: Iab1c85df51fb63f540216d653882f1e0ece0262c
om_android_server_wifi_nan_WifiNanNative.cpp
6a7cee3ac61f79b2c8c82635ea2ce4e62c7293e5 15-Mar-2016 Mitchell Wills <mwills@google.com> Add some more jni compiler errors am: 208f92c4d8
am: d5303040a4

* commit 'd5303040a4ba95f5946fb0b3e5369098657fbc91':
Add some more jni compiler errors
d5303040a4ba95f5946fb0b3e5369098657fbc91 15-Mar-2016 Mitchell Wills <mwills@google.com> Add some more jni compiler errors
am: 208f92c4d8

* commit '208f92c4d8457374ff507996d58ffa5586d1ecd5':
Add some more jni compiler errors
208f92c4d8457374ff507996d58ffa5586d1ecd5 25-Feb-2016 Mitchell Wills <mwills@google.com> Add some more jni compiler errors

Bug: 27360209
Change-Id: I01575f17a37e34aae9f158133bff9baed8fd8ab1
om_android_server_wifi_WifiNative.cpp
om_android_server_wifi_nan_WifiNanNative.cpp
202fdf96e1e0191be37a916d97116df35fe3cbfc 22-Feb-2016 Wei Wang <weiwa@google.com> Fix native crash caused by null rtt params.

Bug:27227320

Change-Id: I822045f2dd35aeb824cea0d0c0791480e0d1b80a
om_android_server_wifi_WifiNative.cpp
213bc1bd553456a24b3a71c16c81bf54fa475934 12-Mar-2016 Roshan Pius <rpius@google.com> Merge "Update ScanCapabilities in WifiNative" into mm-wireless-dev am: 9b34eab696 am: 25211a6fab
am: fd60ed6e5b

* commit 'fd60ed6e5b8537eb84b6dc4eed9b1c9b69c0026b':
Update ScanCapabilities in WifiNative
fd60ed6e5b8537eb84b6dc4eed9b1c9b69c0026b 12-Mar-2016 Roshan Pius <rpius@google.com> Merge "Update ScanCapabilities in WifiNative" into mm-wireless-dev am: 9b34eab696
am: 25211a6fab

* commit '25211a6fab0c8c623a0b9d39ac1bebac3d496176':
Update ScanCapabilities in WifiNative
25211a6fab0c8c623a0b9d39ac1bebac3d496176 12-Mar-2016 Roshan Pius <rpius@google.com> Merge "Update ScanCapabilities in WifiNative" into mm-wireless-dev
am: 9b34eab696

* commit '9b34eab6963479d468e6ab7859c3721b2d1e17f8':
Update ScanCapabilities in WifiNative
d34e3a7b98d51f684100483151fceb233fd95215 11-Mar-2016 Roshan Pius <rpius@google.com> Update ScanCapabilities in WifiNative

BUG: 27607839
Change-Id: I8edb1b7637fa69b3ba1ee59e52d2e1c5a6e79c9e
TEST:Compiles & unit-test passes
om_android_server_wifi_WifiNative.cpp
e9ef62ff2a0525cb7643caadb8dc890de056721f 10-Mar-2016 Wei Wang <weiwa@google.com> Merge "Add responder_supported into RTT capabilities." into mm-wireless-dev am: c537c0358d am: af47ce5aae
am: dc7ce5bdfc

* commit 'dc7ce5bdfcfd4641474afd22d8e522ef897829d8':
Add responder_supported into RTT capabilities.
dc7ce5bdfcfd4641474afd22d8e522ef897829d8 10-Mar-2016 Wei Wang <weiwa@google.com> Merge "Add responder_supported into RTT capabilities." into mm-wireless-dev am: c537c0358d
am: af47ce5aae

* commit 'af47ce5aae7c39508970af19b2322bff31977a37':
Add responder_supported into RTT capabilities.
af47ce5aae7c39508970af19b2322bff31977a37 10-Mar-2016 Wei Wang <weiwa@google.com> Merge "Add responder_supported into RTT capabilities." into mm-wireless-dev
am: c537c0358d

* commit 'c537c0358dd6a5ca140a5a250e50e92c980fafda':
Add responder_supported into RTT capabilities.
53e88b21052b5d953e157109b67dff6ea55fb9b5 09-Mar-2016 Wei Wang <weiwa@google.com> Add responder_supported into RTT capabilities.

Change-Id: Id4f87c8a236dc1e3b5aa206c4dd53bd366bf2fd4
om_android_server_wifi_WifiNative.cpp
6b1f1d2bb30eec5ef6c3fb93330b48049aa50384 08-Mar-2016 George Burgess IV <gbiv@google.com> Cleanup uses of sprintf so we can deprecate it. am: fec60cd6af am: 601874e97f
am: ecb9f43943

* commit 'ecb9f43943720f21bc839531db09a4bfebbe9bfb':
Cleanup uses of sprintf so we can deprecate it.
ecb9f43943720f21bc839531db09a4bfebbe9bfb 08-Mar-2016 George Burgess IV <gbiv@google.com> Cleanup uses of sprintf so we can deprecate it. am: fec60cd6af
am: 601874e97f

* commit '601874e97f5e6c0cc63e4960faf0b24997b61b6d':
Cleanup uses of sprintf so we can deprecate it.
83d323b44e11b8517ac9ce12a63fff659480ba59 07-Mar-2016 Roshan Pius <rpius@google.com> Merge "PNO: Bugfixes in WifiNative" into mm-wireless-dev am: 9a7223a7a5 am: df14c4522d
am: 0ee8319123

* commit '0ee8319123cb753c5f225482cfe3b7553b02415d':
PNO: Bugfixes in WifiNative
df14c4522d4e948a2ae21a27de2ee926c32b9b5e 07-Mar-2016 Roshan Pius <rpius@google.com> Merge "PNO: Bugfixes in WifiNative" into mm-wireless-dev
am: 9a7223a7a5

* commit '9a7223a7a51be6e8f700b9240493859e667f2017':
PNO: Bugfixes in WifiNative
568c786954cd395f5d413edb7beeec5c5128897d 07-Mar-2016 Roshan Pius <rpius@google.com> Merge "PNO: Changes in Native for new interface" into mm-wireless-dev am: ffe70f78d0 am: f38ce9684d
am: 20c355e0df

* commit '20c355e0df441475f7d932312758a01bd51a6ca5':
PNO: Changes in Native for new interface
f38ce9684dc1e5eeae48ef45a75d10c6d738046f 07-Mar-2016 Roshan Pius <rpius@google.com> Merge "PNO: Changes in Native for new interface" into mm-wireless-dev
am: ffe70f78d0

* commit 'ffe70f78d0aca71e9c5af82f11472d422f14b301':
PNO: Changes in Native for new interface
ef3ea1092bc17673c0a85a845b053151b7c10e07 04-Mar-2016 Roshan Pius <rpius@google.com> PNO: Bugfixes in WifiNative

Fix coupke of bugs in the |setPnoListNative| API found in manual testing
of startPnoScan/stopPnoScan testing.

BUG: 27167559
Change-Id: I1e2f8167fbee6db2401fdc918cd46f7d9d594bff
TEST: Compiles & unit-test passes & manual testing of Scanner API
om_android_server_wifi_WifiNative.cpp
9bd01d6cb65ea96d6729d35a1fc43bb2bb40e3bd 02-Mar-2016 Roshan Pius <rpius@google.com> PNO: Changes in Native for new interface

Changes in WifiNative to accomodate the new Scanner based PNO interface.
Currently, we're just setting the |wifi_epno_network| list member in
|wifi_epno_params| structure. All the other values are being ignored.

1. Change the native |android_net_wifi_setPnoListNative| to accept the
PNO settings parameter instead of directly accepting the list of
networks.
2. Changes in WifiNative to send down the new |PnoSettings| structure
down to the native code instead of directly sending the list.
a. Keep the existing interface from |WifiStateMachine| which accepts a
|PnoNetwork| list and converts it into |PnoSettings| structure.
This interface will be removed once all the new Scanner based
interface plumbing is complete.
3. Add a separate native API to reset PNO list.

While there,
Remove redundant "Wifi" prefix from Pno class names.

BUG: 27167559
Change-Id: I78d35c20b4bb7a12c51d0c2cc609fb7bcb5ae516
TEST: Compiles & unit-test passes
om_android_server_wifi_WifiNative.cpp
307ffdb5b85843a50b78ab5ecf48a9f913307da6 03-Mar-2016 Paul Jensen <pauljensen@google.com> Merge "Plumb WiFi packet filtering HAL APIs to Network Agent." into mm-wireless-dev am: c121fe3f27 am: 547c7b692e
am: 1b9e6b8418

* commit '1b9e6b8418c4e00e29f7b1689a76c4d13b89871f':
Plumb WiFi packet filtering HAL APIs to Network Agent.
547c7b692ebd03dc108ef1397be5c15a19f0dab0 03-Mar-2016 Paul Jensen <pauljensen@google.com> Merge "Plumb WiFi packet filtering HAL APIs to Network Agent." into mm-wireless-dev
am: c121fe3f27

* commit 'c121fe3f2733b3d1d091f2f87fb53b2e3581ca82':
Plumb WiFi packet filtering HAL APIs to Network Agent.
6609df5a9c14e4440c085567a27437a8cfc50f88 14-Jan-2016 Paul Jensen <pauljensen@google.com> Plumb WiFi packet filtering HAL APIs to Network Agent.

Bug: 26238573
Change-Id: I67e08f4771007a2ea2cbc7a93eaaa55cddd017a2
om_android_server_wifi_WifiNative.cpp
fec60cd6af487190d9a34979a62ef417b688f1c8 02-Mar-2016 George Burgess IV <gbiv@google.com> Cleanup uses of sprintf so we can deprecate it.

Change-Id: Id11f372587664727af637b9c051dcabcfaa81632
om_android_server_wifi_WifiNative.cpp
3fabf249174763184b6974207ebd78ca355dd31c 02-Mar-2016 Erik Kline <ek@google.com> Merge changes from topic \'ndoe\' into mm-wireless-dev am: 4123d08364 am: 9506574387
am: 293595951f

* commit '293595951f03578a9e14c5fee13e8206d793c1bb':
Disable/enable ND offload whenever 464xlat is enabled/disabled
Add NDOE calls to WifiNative
9506574387c00033ad7b0e95a4c43d0753e42b56 02-Mar-2016 Erik Kline <ek@google.com> Merge changes from topic \'ndoe\' into mm-wireless-dev
am: 4123d08364

* commit '4123d0836446e8979a4e012a0de51f73bdfcafb8':
Disable/enable ND offload whenever 464xlat is enabled/disabled
Add NDOE calls to WifiNative
4123d0836446e8979a4e012a0de51f73bdfcafb8 02-Mar-2016 Erik Kline <ek@google.com> Merge changes from topic 'ndoe' into mm-wireless-dev

* changes:
Disable/enable ND offload whenever 464xlat is enabled/disabled
Add NDOE calls to WifiNative
11968c241615c85436bd88d656fe78874bccc8cc 01-Mar-2016 Wei Wang <weiwa@google.com> Merge "Fix a typo in get_available_channel API." into mm-wireless-dev am: 46c6c5c30e am: b51284ea87
am: b8739342db

* commit 'b8739342db9d5d356a0c2eca8244a99ecba9717d':
Fix a typo in get_available_channel API.
b51284ea87bdbb9abf1bb34d9328d44233fbd565 01-Mar-2016 Wei Wang <weiwa@google.com> Merge "Fix a typo in get_available_channel API." into mm-wireless-dev
am: 46c6c5c30e

* commit '46c6c5c30e8b87834763070f60b977038838b6da':
Fix a typo in get_available_channel API.
3dd6f75ff2ab823bd0c14581f2e047c74916f16f 29-Feb-2016 Erik Kline <ek@google.com> Add NDOE calls to WifiNative

Bug: 26238390
Change-Id: I23109a6c3692dc49c4c931151c3c5ed735aa23a7
om_android_server_wifi_WifiNative.cpp
342457d535beadd74d140128f5563139704e642a 01-Mar-2016 Wei Wang <weiwa@google.com> Fix a typo in get_available_channel API.

Change-Id: I7112d077a109a6ddb31e6c5e3eb3afc82a79ca24
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
b0f0a0bd62cc89009d0b860f50f77cfa424011d9 25-Feb-2016 Stephen Hines <srhines@google.com> Fix build breakage.
am: e2605f2df9

* commit 'e2605f2df94a3696b468d6c7c86e3112e341c2f8':
Fix build breakage.
e2605f2df94a3696b468d6c7c86e3112e341c2f8 25-Feb-2016 Stephen Hines <srhines@google.com> Fix build breakage.

Suppress warnings for unused variables/functions. Also convert an
incorrect use of %u to %zu for a size_t.

Change-Id: Ifd91568b04c54f7c11be4f76a7068e83ce09c1b4
om_android_server_wifi_WifiNative.cpp
23463be46908cc7d4a8201397886485007ae16ac 25-Feb-2016 Stephen Hines <srhines@google.com> Fix build breakage.

Suppress warnings for unused variables/functions. Also convert an
incorrect use of %u to %zu for a size_t.

Change-Id: Ifd91568b04c54f7c11be4f76a7068e83ce09c1b4
om_android_server_wifi_WifiNative.cpp
0201526e6e013038bc74d47b9af22dae288e2790 24-Feb-2016 Etan Cohen <etancohen@google.com> Merge changes from topic 'api_clean'

* changes:
[NAN] API cleanup - rename FLAGS.
[NAN] Renamed listeners to callback per API guidelines
[NAN]: API update - consolidate Puslish|Subscribe Data+Subscribe -> Config
NAN: Add client ID to support multiple NAN clients per UID.
f52eef6003a1cf6020796ffcb040e9d8926e8e92 23-Feb-2016 Roshan Pius <rpius@google.com> Merge "Fix previous git merge of f3e16ca77e." into nyc-dev
df74ec5c0f8a60e8e05d1f3ecebdcfe82b4e2b9c 23-Feb-2016 Roshan Pius <rpius@google.com> Fix previous git merge of f3e16ca77e.

Change-Id: I0ec8798f4602ed6028d3a2d27c8061c5cccecc0d
om_android_server_wifi_WifiNative.cpp
7adf8b7f44736576860e45007dc2eb1a36c188a9 23-Feb-2016 Mitchell Wills <mwills@google.com> Merge "Improve logging in WifiNative jni code" into mm-wireless-dev
am: 86a1158ee3

* commit '86a1158ee3beacab52069a4c5c8687d72a791c6c':
Improve logging in WifiNative jni code
02e62bfb297d14643e71f65ded7d08fab3ccbfb5 23-Feb-2016 Roshan Pius <rpius@google.com> resolve merge conflicts of f3e16ca77e to nyc-dev

Change-Id: I083eec242286cb631e0655621ad4fa7abcc239ba
f3b4c9fa3ca6bec23790f8419cd36383a62a78c5 17-Feb-2016 Etan Cohen <etancohen@google.com> [NAN]: API update - consolidate Puslish|Subscribe Data+Subscribe -> Config

Simplify configuration and consolidate structures whose difference
wasn't very clear.

(cherry-pick of 8f06198cafd0e52aebe2f050af0c1a3533270888,
Change-Id: Ib24f6217e2124c2184506f2ce1407575f5d9baaa)

Bug: 27122760
Change-Id: I1748ff77b9ddc556767b6081122d58033773e89a
om_android_server_wifi_nan_WifiNanNative.cpp
86a1158ee3beacab52069a4c5c8687d72a791c6c 23-Feb-2016 Mitchell Wills <mwills@google.com> Merge "Improve logging in WifiNative jni code" into mm-wireless-dev
f3e16ca77eb3fce92ef9040de577d64103cb8b7d 23-Feb-2016 Roshan Pius <rpius@google.com> Merge "Modify the wake reasons data structure(1/2)" into mm-wireless-dev
259210ed359a2bd34ef1d1c41b01d57c6b377e64 22-Feb-2016 Mitchell Wills <mwills@google.com> Improve logging in WifiNative jni code

This includes both clarifying log messages that are unclear of may come
from multiple locations. Also add some more information, like array
lengths when array allocations fail.

Change-Id: Ice05d2170cd41a105539722e6d221372cc0cecbb
om_android_server_wifi_WifiNative.cpp
6bf6986d359556010638dfae332b585162f06520 18-Feb-2016 Roshan Pius <rpius@google.com> Modify the wake reasons data structure(1/2)

Changes in the android framework to use the modifed HAL API to
fetch the host wakeup reasons from the driver.

BUG: 26902794

Change-Id: Id14f8fa695ba3406392663b5d792309464a4b5bf
om_android_server_wifi_WifiNative.cpp
8f06198cafd0e52aebe2f050af0c1a3533270888 17-Feb-2016 Etan Cohen <etancohen@google.com> [NAN]: API update - consolidate Puslish|Subscribe Data+Subscribe -> Config [DO NOT MERGE]

Simplify configuration and consolidate structures whose difference
wasn't very clear.

Bug: 27122760
Change-Id: Ib24f6217e2124c2184506f2ce1407575f5d9baaa
om_android_server_wifi_nan_WifiNanNative.cpp
5d1a27b0c7e7d9314519371966dec54b29a7def3 17-Feb-2016 Randy Pan <zpan@google.com> Merge "Fix PNO ScanResult creation" into mm-wireless-dev
am: 2fc7240522

* commit '2fc7240522039f542e4870baea7553613a3b8f39':
Fix PNO ScanResult creation
1ab129e587d334a144a0bca5323c27985397a403 17-Feb-2016 Randy Pan <zpan@google.com> Fix PNO ScanResult creation

Fixed a couple of issues with PNO scan result creation. Moved
information element field population into createScanResult(),
which simplifies data passing between JNI and JAVA. This
also helps fix the issue that IE was not populated in PNO
scan result.

Bug: 26666366
Change-Id: I5c6b060713ac9597bac8b1ec64c7c3231c8d0d51
om_android_server_wifi_WifiNative.cpp
7538f4c7a132a5015dee8b4563bb5ea5cd3f0a13 09-Feb-2016 Randy Pan <zpan@google.com> Merge "Build \'capabilities\' string for gscan results" into mm-wireless-dev
am: aab5468666

* commit 'aab54686664ce47f2c41614a8460f454743d157d':
Build 'capabilities' string for gscan results
aab54686664ce47f2c41614a8460f454743d157d 09-Feb-2016 Randy Pan <zpan@google.com> Merge "Build 'capabilities' string for gscan results" into mm-wireless-dev
3571366ac36c70746b9f013ec2b54482861c9292 03-Feb-2016 Randy Pan <zpan@google.com> Build 'capabilities' string for gscan results

Populate the WiFi beacon capability information from gscan to
WifiNative. Build ScanResult 'capabilities' string based on this
value and the information elements.

Add unit tests.

Bug: 26908033
Bug: 26908558
Change-Id: I661bb501a09d3e79ee0b0a8e141e7e47c72687f7
om_android_server_wifi_WifiNative.cpp
a08566d83c94ad608dd25f86fa7cc82d78734508 09-Feb-2016 Wei Wang <weiwa@google.com> Enable Rtt Responder Role(2/4).
am: 68cb8c02b4

* commit '68cb8c02b4ad079c54a2ffd4407da921d18c7af9':
Enable Rtt Responder Role(2/4).
68cb8c02b4ad079c54a2ffd4407da921d18c7af9 25-Jan-2016 Wei Wang <weiwa@google.com> Enable Rtt Responder Role(2/4).

Change-Id: Ib18af94fbba21c833c47336f7a92afe918dc9a89
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
1b9c2436f0a03d8b5725cf521b0cf8248e85d228 05-Feb-2016 Etan Cohen <etancohen@google.com> NAN: Add NAN HAL capability
am: e36f5903f5

* commit 'e36f5903f5d236a29dc94c8bdb215807ae75f5a1':
NAN: Add NAN HAL capability
e36f5903f5d236a29dc94c8bdb215807ae75f5a1 03-Feb-2016 Etan Cohen <etancohen@google.com> NAN: Add NAN HAL capability

Query NAN HAL for its capabilities and propagate to WifiNanStateManager for
storage (usage is TBD).

BUG=26564631
Change-Id: Icb4223c5a03cb65fba1781d0ebe78d70110d3a86
om_android_server_wifi_nan_WifiNanNative.cpp
ifi_hal_stub.h
d44914c2539688087fcfd6de548566f8f3a77e0e 04-Feb-2016 Etan Cohen <etancohen@google.com> Move stub initialization to stub library.
am: be62c03864

* commit 'be62c038644a39d9441b70cfafb95f9518878541':
Move stub initialization to stub library.
be62c038644a39d9441b70cfafb95f9518878541 03-Feb-2016 Etan Cohen <etancohen@google.com> Move stub initialization to stub library.

Decouples stub library from JNI library (allowing use elsewhere).

Bug: 26979983
Change-Id: I4cb01e497b5964d9c9c34bf7b6a3d7e3350bd16c
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
9bc31fe37579a1a921e78f89e9ff934f83589469 01-Feb-2016 Erik Kline <ek@google.com> Merge commit '82d71934e5bc69902254faef16eb565d7dc9c488' into manual_merge_82d71934e5

Change-Id: I743347065eee63c20ce67a91a5037d8aed15f78c
82d71934e5bc69902254faef16eb565d7dc9c488 01-Feb-2016 Erik Kline <ek@google.com> Merge "Add stub support for wifi_configure_nd_offload()" into mm-wireless-dev
5ca7af58f6453c2e3463db37bc70a54c9099b079 27-Jan-2016 Etan Cohen <etancohen@google.com> Merge changes I45f5c455,Ia36743cb into mm-wireless-dev
am: ce6a03e7bd

* commit 'ce6a03e7bd137e9f49cb8cb3267d587c7403de0b':
Update JNI per RTT HAL API changes for 11mc responder role.
NAN: Update NAN API per new HAL - rename Unmatch -> MatchExpired
ce6a03e7bd137e9f49cb8cb3267d587c7403de0b 27-Jan-2016 Etan Cohen <etancohen@google.com> Merge changes I45f5c455,Ia36743cb into mm-wireless-dev

* changes:
Update JNI per RTT HAL API changes for 11mc responder role.
NAN: Update NAN API per new HAL - rename Unmatch -> MatchExpired
b554c51bb77bd2ca6c7b11b16885f4f846cf1fdf 27-Jan-2016 Paul Jensen <pauljensen@google.com> resolve merge conflicts of c0d77321e4 to master.

Change-Id: I55d580e558d34aceb38dbd28aaebab2653ae0d6a
c0d77321e4fe6058017125606fa7da558cfe3c33 26-Jan-2016 Paul Jensen <pauljensen@google.com> Add stub support for WiFi packet filtering

Bug: 26238573
Change-Id: Iaa1ae8482325a63784468eaa560d402434641375
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
00c3a8c9dbb0e84f59375ac27054fbcb95a724fd 25-Jan-2016 Etan Cohen <etancohen@google.com> Update JNI per RTT HAL API changes for 11mc responder role.

Per pag/511872

Change-Id: I45f5c45508f51a50e2e227b63208880b90e558d2
om_android_server_wifi_WifiNative.cpp
b16a8c7cd6213f2e11fa83b5d9a7ffd6ba53f067 25-Jan-2016 Etan Cohen <etancohen@google.com> NAN: Update NAN API per new HAL - rename Unmatch -> MatchExpired

Naming change: no functional change.

Change-Id: Ia36743cb493079a5b5292d80dacf40575eb59d56
om_android_server_wifi_nan_WifiNanNative.cpp
e8401edf5e7bdb63261407b0df67cc763463c84c 25-Jan-2016 Mitchell Wills <mwills@google.com> Merge "Updates for gscan HAL updates in N" into mm-wireless-dev
am: 5b6b6d00d8

* commit '5b6b6d00d817acd25b55badf226c42b8d9811399':
Updates for gscan HAL updates in N
2a6d76f0899289cd3b96e3428f02076fdbc0363e 17-Dec-2015 Mitchell Wills <mwills@google.com> Updates for gscan HAL updates in N

This will compile, but all new functionality may not work

Change-Id: Ia87dbc753e146cd47adb814063ac217508d6caa2
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
b6e8d98d1af299afe8ee0cb2e00563fdf54f7339 20-Jan-2016 Erik Kline <ek@google.com> Add stub support for wifi_configure_nd_offload()

Bug: 18085352
Bug: 26238390
Change-Id: I608e42a0c6f1be3626087c1bf7a4f5c69a66ae86
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
b48fdddedf38698f6230c07bd921e2f544abce8a 19-Jan-2016 Etan Cohen <etancohen@google.com> Merge changes from topic 'wake_cherry_pick'

* changes:
JNI interface to obtain wlan wake reasons.
Declaration of native JNI call in WiFiNative.java
5e5aa7059e474895c6719738d9def61eecc15973 15-Dec-2015 Prerepa Viswanadham <dham@google.com> JNI interface to obtain wlan wake reasons.

Cherry picked from bf3fe9cc00c04f1438ceee8dbb7f8c5568c1f804

Bug: 26572953
Change-Id: I25bed1acd66b68a6552b634caf68a22e0d916b9e
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
238adf4989ed067815adcc3c454db477c7f648fd 15-Jan-2016 Etan Cohen <etancohen@google.com> Merge "Initialize JniConstants library in WiFi HAL if not already init." into mm-wireless-dev
am: e560ccfd7e

* commit 'e560ccfd7e73389715f4027fef447ff3ce9c12fb':
Initialize JniConstants library in WiFi HAL if not already init.
87a33d221f8f8dea7782023da2ee5d66453e37cb 15-Jan-2016 Etan Cohen <etancohen@google.com> Initialize JniConstants library in WiFi HAL if not already init.

Fix crash when accessing byte array from JNI - was due to the class
not being initialized in the test APK.

Bug: 26583827
Change-Id: I6b0959e6db9afc67a9efa8b3921310914dbda0ad
om_android_server_wifi_WifiNative.cpp
89c1bd779fcf2e4631a5da21333ef7775b397050 15-Jan-2016 Vinit Deshpande <vinitd@google.com> resolve merge conflicts of 7e03151407 to master.

Change-Id: I7ab6a5e2fa7fd3a6502ddf5e02e2fa64b4493a63
5aa63dd6c8a00c9dea40a2105c5a774c19c58cb3 15-Jan-2016 Etan Cohen <etancohen@google.com> resolve merge conflicts of 17b7a79520 to master.

Change-Id: I779f8bbf80a3d08b119078d31960fda0951723f4
7e0315140767e6f12200f7dbbe7aff43b4f75089 13-Nov-2015 Vinit Deshpande <vinitd@google.com> Capture kernel logs with bugreport

This change captures kernel logs along with Wifi firmware
dump; since lost kernel logs have been a big reason for
unresolved bugs.

It also ensures that we dump version information regardless
of whether or not firmware debugging is ON.

Change-Id: I3e44e4b34af3d5d878de242aa344d2950d9b3b1e
om_android_server_wifi_WifiNative.cpp
956f54b391677d78379729dd14518edddf3c7660 29-Sep-2015 Etan Cohen <etancohen@google.com> NAN: initial service implementation for discovery

Initial NAN service implementation. Supports:
- Configuration
- Publish/Subscribe = Discovery
- Message passing
- Notifications

Bug: 26216681
Change-Id: I1f84a6006cec3c3ed9a4566a79b1b4f8dcecde08
om_android_server_wifi_WifiNative.cpp
om_android_server_wifi_nan_WifiNanNative.cpp
ni_helper.cpp
ni_helper.h
ifi_hal_stub.h
0e74b4843a66ca64e50dca44fe8e4dd812cdc347 08-Jan-2016 Mitchell Wills <mwills@google.com> Remove libwifi-service dependancy on libandroid_runtime
am: 0d83625c25

* commit '0d83625c25353c92c123f552939eea4b33074b60':
Remove libwifi-service dependancy on libandroid_runtime
0d83625c25353c92c123f552939eea4b33074b60 08-Jan-2016 Mitchell Wills <mwills@google.com> Remove libwifi-service dependancy on libandroid_runtime

Rewrite call to AndroidRuntime::registerNativeMethods to call
jniRegisterNativeMethods directly. This reduces the number of dependant
libraries that must be included for testing.
Also package libwifi-service's dependancies that are not noramlly
available from applications in the wifi test APK.

Change-Id: Ifdb6692646362c51661ea91f02bfd7f04ac02464
om_android_server_wifi_WifiNative.cpp
8f7a6f619af3c5edd2add7eb399c724ae067077f 29-Dec-2015 Randy Pan <zpan@google.com> Wifi binary exponential back off scan support
am: 062e3f39e3

* commit '062e3f39e37874fedc01f267de5f4cf7dbebe2b4':
Wifi binary exponential back off scan support
062e3f39e37874fedc01f267de5f4cf7dbebe2b4 17-Dec-2015 Randy Pan <zpan@google.com> Wifi binary exponential back off scan support

Hook up the WiFi service and HAL to support binary exponential
back off scan.

Bug: 26236392
Change-Id: Ia176a0351a8a755f8f2b0237aab0122225094baf
om_android_server_wifi_WifiNative.cpp
bf3fe9cc00c04f1438ceee8dbb7f8c5568c1f804 15-Dec-2015 Prerepa Viswanadham <dham@google.com> JNI interface to obtain wlan wake reasons.

Change-Id: I25bed1acd66b68a6552b634caf68a22e0d916b9e
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
0c068a61dcc7883f97925094fc9ff77f4737fdb6 11-Dec-2015 Elliott Hughes <enh@google.com> Merge "Fix potential memory leak" am: 9e381327ad
am: 9dd19b55dd

* commit '9dd19b55ddeb2cce890e45e4f0012c94fba8d281':
Fix potential memory leak
18786eca942042388748b0d98979f21c9dff4a89 20-Nov-2015 Mitchell Wills <mwills@google.com> Turn WifiNative into a singleton for each interface

Change-Id: Ida8225c1c8434f5cffbdfd2ebbc4a7b240976a15
om_android_server_wifi_WifiNative.cpp
e36fc349c67c02819804ecad6a7c6502718aaffb 01-Dec-2015 Shun Iio <shun.xa.iio@sonymobile.com> Fix potential memory leak

Variable "buffer" falls out of scope leaking memory.

Change-Id: Ia9ca5b1652507e64a6a53c3c7d668684c1ed327e
om_android_server_wifi_WifiNative.cpp
386acac84b22423d36796838adca2060fea81149 18-Nov-2015 Mitchell Wills <mwills@google.com> Fix jni quoted SSID check and cleanup log levels

Change-Id: If3716d188e762ff8a3cdd155f3bfc13c499f5245
om_android_server_wifi_WifiNative.cpp
347c51565a7259413ff5d1f781af144e2c6082d4 07-Oct-2015 Vinit Deshpande <vinitd@google.com> am 60c3052f: am 03e4ac9f: am cacdd4fc: Merge "Fix mismatched buffer size in supplicant and WifiNative" into mnc-dr-dev

* commit '60c3052f42a0872a86fa3e57849f8e62c41a8db6':
Fix mismatched buffer size in supplicant and WifiNative
bbbafda1be6182f25fb3e5b43a4e7e2cc9830d6a 02-Oct-2015 Vinit Deshpande <vinitd@google.com> Fix mismatched buffer size in supplicant and WifiNative

The WifiNative response buffer is one byte smaller than the
amount of data that supplicant can throw at it. This can lead
to a problem where WifiNative gets mismatched answers for
its commands.

Bug: 24380015
Change-Id: Iadc0afa9390ca5c002022fc951951cb109eac22a
om_android_server_wifi_WifiNative.cpp
2683e3e00bca453027c1824119e7c302679c8ec3 11-Aug-2015 Andrew Hsieh <andrewhsieh@google.com> Merge "Fix build" into mnc-dr-dev-plus-aosp
bb377e447c30f5cccd606a8d05a4159ca86d0a45 07-Aug-2015 Vinit Deshpande <vinitd@google.com> Fix build breaks caused by merge conflicts et al

Change-Id: I0704043034dcddbc141a7acd943781ecbe653a2e
om_android_server_wifi_WifiNative.cpp
21e2d99bcd577eccd2cf3c0f99688814c213330f 07-Aug-2015 Andrew Hsieh <andrewhsieh@google.com> Fix build

Change to use ScopedBytesRW because JNI function ReleaseByteArrayElements
2nd arg doesn't accept "const", (ie. no guarentee to keep content jbyte
points to intact)

BUG=22511234

Change-Id: I48eac3c228fc9157711b137b88217481c39b3218
om_android_server_wifi_WifiNative.cpp
f8b556525a4125c8b20dcdc613a94a3f51b4bf1a 06-Aug-2015 Vinit Deshpande <vinitd@google.com> am dcc4413e: am da515a82: Fix RSSI monitoring code to the no-leaking standards

* commit 'dcc4413eefb77cb4f15f73ed67e410f09426fe72':
Fix RSSI monitoring code to the no-leaking standards
ffcbe4e6b231d1ba03325904ef517f48c2db795b 06-Aug-2015 Vinit Deshpande <vinitd@google.com> resolved conflicts for merge of 715cdbd0 to mnc-dr-dev-plus-aosp

Change-Id: I7c189ac9aeb336039fbcbda72e008d3e58f93386
da515a82e79abdf603b290c9fed4d4198ca75519 06-Aug-2015 Vinit Deshpande <vinitd@google.com> Fix RSSI monitoring code to the no-leaking standards

Change-Id: I4a0cb1eefb74a9775c10397a8abad15e594385f3
om_android_server_wifi_WifiNative.cpp
0d76e12ac1520a3ee420bef9023e4d5b1f4d290b 06-Aug-2015 Vinit Deshpande <vinitd@google.com> am 9152c500: Merge "Fix refcounting of objects and data in WifiNative" into mnc-dev

* commit '9152c50087c0293bdfd2526fd88a967ea7a1763c':
Fix refcounting of objects and data in WifiNative
9152c50087c0293bdfd2526fd88a967ea7a1763c 06-Aug-2015 Vinit Deshpande <vinitd@google.com> Merge "Fix refcounting of objects and data in WifiNative" into mnc-dev
66c09a523324b80b9497a73b081ae6b7fe11ebad 06-Aug-2015 xinhe <xinhe@google.com> am b97abedb: am 9dc6bda4: resolved conflicts for merge of ee0a0132 to mnc-dr-dev

* commit 'b97abedbc3399762d8c563c38aea953e6b008403':
WiFi tethering AP says I can't use 5g in this country while in the US
9dc6bda43f0767a1ecb3f901d9be0f523e9463f1 06-Aug-2015 xinhe <xinhe@google.com> resolved conflicts for merge of ee0a0132 to mnc-dr-dev

Change-Id: I61046edb56b9b54a759e4964762fa7b01d4eaba1
ee0a0132ebb0d7e9baf42e778ea9c094966ffb14 04-Aug-2015 xinhe <xinhe@google.com> WiFi tethering AP says I can't use 5g in this country while in the US

b/22871989

Change-Id: I63c458c7353ecf84aa716118924364bb8f0f2844
om_android_server_wifi_WifiNative.cpp
7d519b6686ece717fd3890c0656b46155c22a377 05-Aug-2015 Vinit Deshpande <vinitd@google.com> Fix refcounting of objects and data in WifiNative

Bug: 22857896

Change-Id: I552495f1b8561eb7917f6a94284f1716870491da
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
a8a2332141962f42e41fe9fec6461ac12dff4287 05-Aug-2015 xin He <xinhe@google.com> am f6b387dd: am 0cc09187: am 69a99c03: Merge "Boot loop when SSID has non UTF-8 character in the name" into mnc-dev

* commit 'f6b387dd7b5d8be3620b171401c778cb535a49a2':
Boot loop when SSID has non UTF-8 character in the name
0cc09187b578a328f945cd58f0c030c4b713d37e 05-Aug-2015 xin He <xinhe@google.com> am 69a99c03: Merge "Boot loop when SSID has non UTF-8 character in the name" into mnc-dev

* commit '69a99c03a9c78a507266c18443dc044a7b3e7869':
Boot loop when SSID has non UTF-8 character in the name
5cfd8d8b9f241dcad874125a1b5538ee0d6860fe 29-Jul-2015 xinhe <xinhe@google.com> Boot loop when SSID has non UTF-8 character in the name

b/22773761

Change-Id: I24e1579ff1aafde703d2090f93399fd5f299a75a
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
400be6641e79d90452077f1412a85b9c26761810 24-Jul-2015 xin He <xinhe@google.com> am 8c640956: am fbd35be2: Merge "Restart loop on MRA16G: Abort message:" into mnc-dev

* commit '8c640956f308202f9cdcc3c2a313f1d69e9e118d':
Restart loop on MRA16G: Abort message:
8c640956f308202f9cdcc3c2a313f1d69e9e118d 23-Jul-2015 xin He <xinhe@google.com> am fbd35be2: Merge "Restart loop on MRA16G: Abort message:" into mnc-dev

* commit 'fbd35be2ee76cb2f8090f563c8f2666ce0dee607':
Restart loop on MRA16G: Abort message:
127f7244183786e6ccae09e81eeccdac31973e69 23-Jul-2015 xinhe <xinhe@google.com> Restart loop on MRA16G: Abort message:

'art/runtime/thread.cc:1320] No pending exception
expected: java.lang.ArrayIndexOutOfBoundsException

b/22591534

Change-Id: Ib8380b38fae8c3b0cb1e8980d397c9bfc98c9b81
ni_helper.cpp
5d1dda7ee8845bfddea2b591b9685e2bda07fa3d 21-Jul-2015 Prerepa Viswanadham <dham@google.com> am aea1299e: Fix typo in method name

* commit 'aea1299e72516fa37f53db849ecb2619eea2be4b':
Fix typo in method name
aea1299e72516fa37f53db849ecb2619eea2be4b 21-Jul-2015 Prerepa Viswanadham <dham@google.com> Fix typo in method name

Bug: 22634960
Change-Id: I3ebc3fb998f387a4eb4521cfc60409b64b2a2f64
om_android_server_wifi_WifiNative.cpp
76a571f31d77fcf41d305e56d64ed8564380427e 18-Jul-2015 Prerepa Viswanadham <dham@google.com> am c2b197d7: RSSI hal api hookup

* commit 'c2b197d7475ccfbcc84cab83c57ba4f678e67db8':
RSSI hal api hookup
ce9ef32854b10f38c73b311a1e6362e625aba5aa 18-Jul-2015 Prerepa Viswanadham <dham@google.com> am c55e8816: WiFi keep alive offloading service implementation

* commit 'c55e88163b223db0ca6a99ed6ffe91845c30a576':
WiFi keep alive offloading service implementation
c2b197d7475ccfbcc84cab83c57ba4f678e67db8 14-Jul-2015 Prerepa Viswanadham <dham@google.com> RSSI hal api hookup

Bug: 21405941
Change-Id: I6740267046e997d27945346e036b40a198bbb105
om_android_server_wifi_WifiNative.cpp
c55e88163b223db0ca6a99ed6ffe91845c30a576 02-Jul-2015 Prerepa Viswanadham <dham@google.com> WiFi keep alive offloading service implementation

Bug: 21405946
Change-Id: If7fe4b25bf294f808b99b1e1f25e8a7a62817ef7
om_android_server_wifi_WifiNative.cpp
777615c033c788f83619e6494a13c8cb55fa6648 16-Jul-2015 xin He <xinhe@google.com> am 438638d6: Merge "Clean up bad command implementation" into mnc-dev

* commit '438638d680ebc79b3efafde12fc66f47e625d22e':
Clean up bad command implementation
370ad50a5f1dd907de8f4d201f73eb7139f79dd4 13-Jul-2015 Jerry Lee <jerrylee@broadcom.com> Clean up bad command implementation

b/22349265

Change-Id: I3d5e0e3c6d06a86f9c59b00754bfc9e5677fe9e7
Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
31870873a9b2cdd4c71791d745a5f41cd59c3684 09-Jul-2015 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 86b0aaf7 to mnc-dr-dev-plus-aosp

Change-Id: I0606797982d48fb5a7c09828761bc7e97a8375ed
86b0aaf71b504d7b28563b7a28e626edfb81b1b9 03-Jul-2015 Henrik Baard <henrik.baard@sonymobile.com> Fix memory leak in WifiNative

String created with GetStringUTFChars is not
released causing a memory leak.

Use ScopedUtfChars instead to ensure that memory is released.

GetByteArrayElements does not free allocated memory, call
ReleaseByteArrayElements to free up memory.

Change-Id: Ifd5330fa4cf190818319a7899de0cc5e2ccb2a53
om_android_server_wifi_WifiNative.cpp
9c86caa1a83f9d9c42faacc151341a09c5e538a4 08-Jul-2015 xinhe <xinhe@google.com> AUPT: NCs in system_server caused runtime restart

b/22322272

Change-Id: If4eb9dd3fcefeef2ab26f991e8ee5dd8947a2837
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
b797893fc1966803d0c013faac42e6396a37a384 26-Jun-2015 xinhe <xinhe@google.com> Use wifi_reset_log_handler to stop logging

b/22098062

Change-Id: I6bc701ba81a9dad323403a39e3cb385153d2ed88
om_android_server_wifi_WifiNative.cpp
b334e6ca020be2b0dedf0ff2ad6cd4e698aa2900 27-Jun-2015 Vinit Deshpande <vinitd@google.com> Merge "Add wifi offload feature: mkeep_alive" into mnc-dev
2723d997840a21379ac1c1224bf07e5026559603 19-Jun-2015 Ecco Park <eccopark@broadcom.com> Add wifi offload feature: mkeep_alive

b/21405946

Change-Id: I0bbe294d52e97d9609d35d788410fd0bb4c6d5f7
Signed-off-by: JerryLee <jerrylee@broadcom.com>
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
6414301b7b685307e8ae8cea6976ed05cc49b254 25-Jun-2015 Vinit Deshpande <vinitd@google.com> Re-enable Driver/Firmware based logs

Change-Id: If2c929a1156d936ac1a17681d1f171ae1f9dd1bf
om_android_server_wifi_WifiNative.cpp
32cbc7acce70697ccf7881324bf8a6861905e899 18-Jun-2015 JerryLee <jerrylee@broadcom.com> Add a debuggability interface: stop logging

bug: 21730601

Change-Id: I4dd4c6bae10b9e8ad7c8cabc887b8d51c07eff01
Signed-off-by: JerryLee <jerrylee@broadcom.com>
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
d745a52dc4f929d4a4030f205ed173bdf60eaf10 12-Jun-2015 Pierre Vandwalle <vandwalle@google.com> call setWifiLinkLayerStats
Bug:21617639

Change-Id: Idf7d066a20b96ed1e39cdd164b7159d5843c2f99
om_android_server_wifi_WifiNative.cpp
3cd3ccdbad2def6f23eeb70b42097e393fbc02fe 09-Jun-2015 Wei Wang <weiwa@google.com> Fix a typo in RTT logs

Change-Id: I41db895dbc470229ef7746e16c404010beec3d9d
om_android_server_wifi_WifiNative.cpp
e0f45adde26bd4d238ff157e6769650a99dc5261 05-Jun-2015 Vinit Deshpande <vinitd@google.com> am 70b75cd..09f267b from mirror-m-wireless-internal-release

09f267b prevent false wifi roaming signal Bug:21617059
0bf150b Enable ring buffer logging and auto-logging of failures
550ae08 Merge "fix overflow bug in WifiManager reportActivityInfo Bug:20232188" into m-wireless-dev
7ab5189 Merge "Make autojoin parameters configurable" into m-wireless-dev
7ff782a Make autojoin parameters configurable
f49a59b Issue start/stop HAL along with load/unload driver
c5cdba4fa88dd5653be476377ad97665fe2d4872 04-Jun-2015 Vinit Deshpande <vinitd@google.com> Remove trivial GScan logs

These helped once; but now this is just noise. Also
given that GMSCore starts/stops scans many times it is
taking too much of log real estate.

Bug: 20416721

Change-Id: I965ed919afbac56e123e8d019be84d7d33abf3f9
om_android_server_wifi_WifiNative.cpp
0bf150b2d69ec62df905bc6f8603437dc4caee1f 01-Jun-2015 Vinit Deshpande <vinitd@google.com> Enable ring buffer logging and auto-logging of failures

This change extracts ring buffer data from firmware; and
automatically logs driver/firmware logs when any failure
is detected.

Change-Id: I20c8cc00e8ac1d1b4f35da6d309e972cd8ea5d19
om_android_server_wifi_WifiNative.cpp
3f6620290d7462f3642c82e535146ce9de5e20b3 03-Jun-2015 Vinit Deshpande <vinitd@google.com> am a40265e..7ab5189 from mirror-m-wireless-internal-release

7ab5189 Merge "Make autojoin parameters configurable" into m-wireless-dev
7ff782a Make autojoin parameters configurable
f49a59b Issue start/stop HAL along with load/unload driver
cbda71c Merge "make WiFi No Network Periodic Scans Interval to 5 minutes Bug:21274132" into m-wireless-dev
c538878 make WiFi No Network Periodic Scans Interval to 5 minutes Bug:21274132
f49a59bda006b13e0118d144e0a4a5f569b2251e 27-May-2015 Vinit Deshpande <vinitd@google.com> Issue start/stop HAL along with load/unload driver

This ensures that HAL is enabled when driver is loaded; and
HAL is torn down when driver is unloaded.

Change-Id: Ia7a3e0a485a37b137750040aaecde7cb92eb59e4
om_android_server_wifi_WifiNative.cpp
f72f48afc909bd4b7371559aa034054da979942d 02-Jun-2015 Vinit Deshpande <vinitd@google.com> am 22fd854..6dd83f1 from mirror-m-wireless-internal-release

6dd83f1 Merge "fix handling of command for bssid hot list" into m-wireless-dev
a63da80 fix handling of command for bssid hot list
b090f62 make sure unblacklist thresholds are initialized Bug:21161557
4c94fc6 Wifi: Disable PNO (if enabled) only when the scan is allowed to trigger
be2981a fix enabling autojoin offload based on tx/rx counters
a3e4c84 Move Halutil to vendor/google_testing/comms

Change-Id: I9663436ad92094b1cde0e00d217b1fd9ca728351
483cef98baaff3d4de18dc29aa5e5cce2ccd9716 02-Jun-2015 Vinit Deshpande <vinitd@google.com> am 9ccffbb..5a091fb from mirror-m-wireless-internal-release

5a091fb Wifi log spam is still a thing The root cause is that inner class WifiScanningStateMachine of WifiScanningServiceImpl use the log from WifiStateMachine rather than from WifiScanningServiceImpl. Reanme log to logLocal
b66b29a turn off WifiNative DBG
98dca33 FW memory dump should be compressed
e5c48b5 wifi: Do not kill the supplicant on a request to stop it
5caa43b add ssid white list for roam offload
be2981ae2e3d7d8325fa7815731e45bc64e17f2f 21-May-2015 Pierre Vandwalle <vandwalle@google.com> fix enabling autojoin offload based on tx/rx counters

Change-Id: I2fa7970d249638b17f06763246af15f5308d4d55
om_android_server_wifi_WifiNative.cpp
5caa43b34e0445ff08bff5931b84ffbc850b2a66 16-May-2015 Pierre Vandwalle <vandwalle@google.com> add ssid white list for roam offload

Change-Id: I9fad659cc6527a271251c7403852dc87ef460207
om_android_server_wifi_WifiNative.cpp
6a95e83c7e411a21cf6f6d912ab8498d2de858c9 18-May-2015 xinhe <xinhe@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into merging

Change-Id: Iec12d73f244bc58e7fcf1154ea8047a03925c241
9ccffbb6c3fe8eaa7d70cc3076d0dc3c6a9073e7 16-May-2015 Pierre Vandwalle <vandwalle@google.com> add BSSID blacklist to autojoin/roam offload

Change-Id: I7eced80f7406de44e96bebc9a3ac3dc648a23eef
om_android_server_wifi_WifiNative.cpp
b0b0cc202b7d7aaad7b3f69d73e9b58ea2968b05 06-May-2015 Pierre Vandwalle <vandwalle@google.com> hal based Pno and lazy roam implementation

Change-Id: Ib814ff6d29c8d7f1b579f7c088cd4eb104e5b637
om_android_server_wifi_WifiNative.cpp
347a9779b10304865e478af01ab95871c7614b29 14-May-2015 Vinit Deshpande <vinitd@google.com> am d7cbebf..6111ff7 from mirror-m-wireless-internal-release

6111ff7 minor fix for warning
e026d53 Added cert path validation for CA cert.
9a64375 Changed SSID consistency check to deal with hidden SSIDs (logging only).
1c03d75 Changed log tag, and fixed a NPE.
7d5357a Disable PDBG in WifiStateMachine

Change-Id: I0100a9e48f383266487c43426a55509cf8868f47
e5bf4b884cbbb435dc9268dff61955bcc2b81471 14-May-2015 Vinit Deshpande <vinitd@google.com> am 03ba4a5..ed3f1dd from mirror-m-wireless-internal-release

ed3f1dd Fix permissions check on WifiScanner APIs
f4b30aa Don't pause/restart scans across network connections
ad99846 Remove old (KK based) batched scan API support
fc42a2c Introduce battery blaming for WifiScanner
87df79e make autojoin more deterministic
d79bb0e Merge "enable background scan as soon as screen is off Bug:20909311" into m-wireless-dev
9ac124e enable background scan as soon as screen is off Bug:20909311
6d0cd10 change wifi Logging header
d4c25fd 5GHz roam configuration

Change-Id: Ib7621b11ca851236f9003947c24c5d84670fac94
6111ff7dddefcdba9453a5a9c0e19ef1dfd75253 12-May-2015 Jerry Lee <jerrylee@broadcom.com> minor fix for warning

warning: comparison between signed and unsigned integer expressions

Change-Id: I6eb54aacf694c68c488a35d1e78cb93226a034b0
Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
om_android_server_wifi_WifiNative.cpp
d7cbebf7fa9081e294ecab38cfe82709f381e1c9 11-May-2015 Vinit Deshpande <vinitd@google.com> Reduce WifiScanner logs

This change saves debug logs in log buffer; and only
dumps error/warning logs.

Bug: 20416721

Change-Id: I2a658194c45092abe490880224ead76f9297961c
om_android_server_wifi_WifiNative.cpp
31ecd2686c8c25987a062b071378f7a78c7bfe98 24-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix more logspam from HAL and WifiStateMachine [DO NOT MERGE]

(cherry-picked from e73629f79c8bd59f0f0857a5101160a4d93b1190)

This change also fixes multiple HAL listening threads
and few more logs from WifiScanner

Bug: 20416721

Change-Id: I58f9940d57b27752287e594ecca394c206eb060f
om_android_server_wifi_WifiNative.cpp
cd689448cdb2ee5bd7852a1811bfefd1fcf9ce19 07-May-2015 Chih-Hung Hsieh <chh@google.com> Fix syntax error found by clang/llvm.

BUG: 20894689
Change-Id: I0b38a5dba146b6869aa9bdce3179ea060e96b899
om_android_server_wifi_WifiNative.cpp
6d0cd10057e479dfcb8c9e290b9d1d433644dc06 05-May-2015 xinhe <xinhe@google.com> change wifi Logging header

Allocate the memory at JNI layer. Thus, instead pass
down ** , pass * down

Bug:20853404
Change-Id: I0827a0b311566df9231c96d6a8f1dc4c982d8ca3
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
d4c25fd76644d5490700ae69fada4669de5193a1 17-Apr-2015 Pierre Vandwalle <vandwalle@google.com> 5GHz roam configuration

Change-Id: I34a59b6de90bda5198e42c3ecf24e978efc73c93
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
6f59b02396561adee402613a45e8314c6e14f538 05-May-2015 Vinit Deshpande <vinitd@google.com> Initialize wifi_set_nodfs_flag with a stub

It is not implmented on some platforms.

Bug: 20841930
Change-Id: Iba167eadb430b532102060603b30297a3b7a98cb
om_android_server_wifi_WifiNative.cpp
03ba4a5b108ab2bbdb5d0e7be46ac45c00a6d9ff 28-Apr-2015 xinhe <xinhe@google.com> Initial bring up for debug framework

Change-Id: I0e78897d1440f0b7c56740ff7890e2f3d6a0d951
om_android_server_wifi_WifiNative.cpp
7ea679c65dd903b1eca6b68019784244a5a369f4 01-May-2015 Prerepa Viswanadham <dham@google.com> Merge commit '624b4e2' into master_merge

Change-Id: Iaf46e8490ccb35519aaa7db6873db6abf93d48a0
21602b3d7fc39a4dfa32b174c93ba77990f9e777 24-Apr-2015 xinhe <xinhe@google.com> Fix halutil build error [DO NOT MERGE]

Change-Id: I0bafc698aab75606ab550b86389f4bd231dc06b0
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
78057ef03352033a9a5fb718f52323e67fcaa1f0 24-Apr-2015 xinhe <xinhe@google.com> Fix halutil build error

Change-Id: I0bafc698aab75606ab550b86389f4bd231dc06b0
ifi_hal_stub.h
cd652fb9f9a304df55a0b98ce5070a584dc3de82 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit '481a417' into merge2
e73629f79c8bd59f0f0857a5101160a4d93b1190 24-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix more logspam from HAL and WifiStateMachine

This change also fixes multiple HAL listening threads
and few more logs from WifiScanner

Bug: 20416721
Change-Id: I58f9940d57b27752287e594ecca394c206eb060f
om_android_server_wifi_WifiNative.cpp
f3bc3c6dcde09a8e39f0a30febf6ae47e882ce90 24-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix more logspam from HAL and WifiStateMachine

Bug: 20416721

Change-Id: I00eef7c9fbbed1403e73e8184de8956677649b8c
om_android_server_wifi_WifiNative.cpp
bb6942c6b6d129fd8904e341c9ce4a4118ed3e0b 11-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix WifiScanner's getChannelsForBand logspam

Change-Id: Ie0e0ce69877200ea5652f8f11df611cfe7890397
om_android_server_wifi_WifiNative.cpp
d57f630f6a7a5fca872d2b96fc4cce1905daee5d 15-Apr-2015 xinhe <xinhe@google.com> TDLS enhancement HAL interface update

Bug:15152152
Change-Id: I6ef4924f8db85244723cdee89166811f058fd675
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
70be7f18b526243679eaaa5f03b7f53417ecf1c7 11-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix WifiScanner's getChannelsForBand logspam

Change-Id: Ie0e0ce69877200ea5652f8f11df611cfe7890397
om_android_server_wifi_WifiNative.cpp
c8b61ce3b41d92a0f17a4b3f39ccdbf819060939 17-Apr-2015 Navtej Singh Mann <navtejsingh@google.com> Fix flush parameter passing to positive when required

Change-Id: I94949ad8c716787f2ebcd32fd39b217a8955be1a
om_android_server_wifi_WifiNative.cpp
965101c0a9af6e9194a04b77c22b0e7fcad481a8 16-Apr-2015 Pierre Vandwalle <vandwalle@google.com> Merge commit '5040e99' into mg

Change-Id: I133038f35817681a74664d0ad66594615d35f6e9
dd490cf1df37b70a8625dc4ec8e712f740dd1e4a 21-Mar-2015 Pierre Vandwalle <vandwalle@google.com> epno initial implementation

Change-Id: I47ede001aa22089bab099072810d648999104091
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
5ee18dc63952ff80f4ea21296a0df4f7b27eafe6 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am f24e3d7..a547460 from mirror-m-wireless-internal-release

a547460 Fix incorrect matching of Passpoint networks
93a1dbd fix RTT crashes runtime This is due to local referencs have been used up Bug:20143987
5faa29d changes to support wifi_logger.h API changes
a7ead3d Corrected and tightened up MO tree and mapping from/to configs.
71cd814 Merge "Use PasspointMatchInfo to select good passpoint network" into m-wireless-dev
0c14982 Merge "Store PasspointMatchInfo in ScanDetailCache" into m-wireless-dev
8eefaf2 Use PasspointMatchInfo to select good passpoint network
4d381bc Store PasspointMatchInfo in ScanDetailCache

Change-Id: If9ce95af4968cee4a458dddf21151eaf015880dc
93a1dbd961f05335635ede08eae6481284690c7d 10-Apr-2015 xinhe <xinhe@google.com> fix RTT crashes runtime
This is due to local referencs have been used up
Bug:20143987

Change-Id: Icb1c4459ef562cacc58e8467c1010f166076634c
om_android_server_wifi_WifiNative.cpp
5faa29da989a82096e1e17c46126604eecfc0780 10-Apr-2015 Pierre Vandwalle <vandwalle@google.com> changes to support wifi_logger.h API changes

Change-Id: I31e7116b47ccb76e8def50516a9532a296a2f557
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
6aef95a3cfa0b825ff93c45e95f89cc8c5c85164 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit '70deeca' into merge_work

Change-Id: I77fdf057818f0bc2742e923e71b248648e152e1a
c96feb800590f43b7be76d1000ab5d949e5c6790 02-Apr-2015 xinhe <xinhe@google.com> RTT framework interface update

Bug:19917983
Change-Id: I3041ca5134dd1cb24f1ceab80cc79bdc5934424a
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
628199920e1d1fa86caabaf13874e7dc601e7b06 03-Apr-2015 xinhe <xinhe@google.com> Wifi HAL should not require stubs for all functions [Do not merge]

Bug:19949178
Change-Id: I7bdef880c3f975370e2c99080b375fb2f245d243
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
6f7fe1cb242de8bec6c3e5c143bf4730aa51f718 02-Apr-2015 xin He <xinhe@google.com> Fix halutil broken

Change-Id: I571d79c43c2013c3d7fd7c821af514ad1655b5c3
om_android_server_wifi_WifiNative.cpp
ba0cacd876c6196fef933ed8ff9929f79c5b68de 02-Apr-2015 xin He <xinhe@google.com> Revert "Fix halutil broken"

This reverts commit 49fcb580a921a0124deab2c4b83daac923c0588f.

Change-Id: I9d2b11f69195cfbc854e46ad79b6192e7478abe0
om_android_server_wifi_WifiNative.cpp
49fcb580a921a0124deab2c4b83daac923c0588f 02-Apr-2015 xinhe <xinhe@google.com> Fix halutil broken

Change-Id: I37039c094fb09a34b191af9c2061a7075e45ce5b
om_android_server_wifi_WifiNative.cpp
44787b543b9365fe0d40ec70fc8fe51e54264ff6 02-Apr-2015 xinhe <xinhe@google.com> Fix master WIFI HAL merge build error

Change-Id: I89a0bc1cb1a1fd797b1024ed3d21c95919c861b1
om_android_server_wifi_WifiNative.cpp
05d04f448d8e2d44f9eae8e54f17a7bdf57ca1f7 02-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'b151395' into merge_yet_again
ec61e7731968be994a23f2bd138f6761c8aea498 31-Mar-2015 xinhe <xinhe@google.com> Add general stubs for wifi hal

Bug:19949178
Change-Id: I51ecdf4fecd3584fa86be9a0c2299dc910e3ca59
om_android_server_wifi_WifiNative.cpp
ifi_hal_stub.h
e9418ca9dd1975f84260e491a041cac87381693c 24-Mar-2015 Prerepa Viswanadham <dham@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge

Change-Id: Id9033b0a7d6bd3c8ecab1648fc8c67feae18c41c
939177ff615062ec826601d536466875d8457375 23-Mar-2015 xinhe <xinhe@google.com> add Framework for set country code through HAL

Bug:19896389
Change-Id: Idc92e11b75db71ab6b9bc7ee54889bd41c68b9ce
om_android_server_wifi_WifiNative.cpp
06a3ebada2343fe3f083339973f143b39d62b3c4 19-Mar-2015 xinhe <xinhe@google.com> Merge Broadcom HAL RTT code

Bug:19829530
Change-Id: Ic0544fa2a4e2988d7417eefca16ede3c7155cfd3
om_android_server_wifi_WifiNative.cpp
7d6301ead19afdf3de37455e9ed133c25b4938cd 19-Mar-2015 Vinit Deshpande <vinitd@google.com> Fix a runtime crash introduced by incorrect JNI mapping

Change-Id: Ie37d8a8788e8bdc3a5f52b2ff58be3506943bf9d
om_android_server_wifi_WifiNative.cpp
c03c14696493a3763948feed7f1e75e77e2a2f9b 19-Mar-2015 Pierre Vandwalle <vandwalle@google.com> rename num_ap into num_bssid

Change-Id: Ie9f5af53c1611f66c81801f4b4776c9959cae85a
om_android_server_wifi_WifiNative.cpp
827bc400bfb327a7c0bb2ed03f17d88c56cf85aa 19-Mar-2015 Navtej Singh Mann <navtejsingh@google.com> Fix event mismatch between wifi FW and framework

Bug: 19535383

Change-Id: Id86813f72b85cd154cf6867650c508c70ab4162b
om_android_server_wifi_WifiNative.cpp
a0d34d3626bd9631039a485d2d428b1b7de390e2 19-Mar-2015 Pierre Vandwalle <vandwalle@google.com> initial logger stuff

Change-Id: Ie08d4184efe40c91969914ce84a1a6f1d255ec21
om_android_server_wifi_WifiNative.cpp
12cf388ecf3b2aa5ba66ed680b931fa356ab75b5 13-Mar-2015 xinhe <xinhe@google.com> Change rtt Framework interface

Bug:19735392
Change-Id: Ie64e4609c9804c904836bb37255d4efe9211f39f
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
7847ab5d1a810e8da3b3c233bc3f01d24bf2a9c5 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "update rtt.h for 11mc double side RTT"

merged from goog/mirror-m-wireless-internal-release
e11c200 update rtt.h for 11mc double side RTT
a4decb57ff612b21dade7c732f0a73dd4081947a 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Unable to see Tethering/portable Hotspot SSID"

merged from goog/mirror-m-wireless-internal-release
b830d76 Unable to see Tethering/portable Hotspot SSID
9b5fbb7be00bbd41d4efdb1ac6c641f4628b0cd9 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "get channel list from driver for SoftAP channel selection"

merged from goog/mirror-m-wireless-internal-release
8262822 get channel list from driver for SoftAP channel selection
d1b5500c999b6fc23c67f63483623fae1e7bdcac 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Set interfaces UP when starting WifiHAL"

merged from goog/mirror-m-wireless-internal-release
be3b27a Set interfaces UP when starting WifiHAL
41eb62d2ad691cad45d6c618c41fde45fda29573 13-Mar-2015 Wei Wang <weiwa@google.com> Remove hardcoded RTT capabilities.

Bug: 19702514
Change-Id: I6398604c45253af16f78ea95afe794b7ec39908a
om_android_server_wifi_WifiNative.cpp
2fdba43e59590003d67d3f4168621eb04a9f3ccf 24-Feb-2015 Greg Hackmann <ghackmann@google.com> am c1867e2f: am d31a40e4: Fix and re-enable important compiler warnings

* commit 'c1867e2f10ca67a466c0559acff2d19238b55842':
Fix and re-enable important compiler warnings
d31a40e4c13481c0e70b0b6392bccf6a0f75c4e7 23-Feb-2015 Greg Hackmann <ghackmann@google.com> Fix and re-enable important compiler warnings

The disabled warnings have a high signal-to-noise ratio and would have
caught two bugs.

linux_set_iface_flags() had an error handling path that returned an
uninitalized ret to the caller. This is fixed by setting ret
appropriately before returning it.

onSignificantWifiChange() made an implicit copy of an object, then tried
to read from a flexible array member in the copy. This is fixed by
turning the implicit copy into a reference.

Change-Id: Ie1335b80a62c349ef766e3e31221ce87f72f6c0d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
om_android_server_wifi_WifiNative.cpp
d4762401ec14be6bdd2d27aff2478ddbf8d6ce2a 12-Aug-2014 Vinit Deshpande <vinitd@google.com> Introduce onLost event on bssid hotlist [DO NOT MERGE]

Change-Id: I84c3174398fea9a1456fb007586c2c559dd3fe4d
om_android_server_wifi_WifiNative.cpp
e11c2008f9d528b97a1a8176f508800729cd4150 12-Feb-2015 xinhe <xinhe@google.com> update rtt.h for 11mc double side RTT

Bug:19364957
Change-Id: I9069d1cf35be4df139be4481df49e728e67a6e35
om_android_server_wifi_WifiNative.cpp
b830d76fbf5fa4077531b516066faa2fdbb92e81 12-Feb-2015 xinhe <xinhe@google.com> Unable to see Tethering/portable Hotspot SSID

Bug:19335638
Change-Id: I4b889841b341d3d9b24faab8bc5dd18b508070cd
om_android_server_wifi_WifiNative.cpp
826282265badbd85c5386573fbced1755696fe83 05-Feb-2015 xinhe <xinhe@google.com> get channel list from driver for SoftAP channel selection

Instead of hard coding the available channel list, we should
get channel list from driver

Bug:19237543
Change-Id: Ibe1fbbdc39a6cf69a0b36cfb9c6b63025d0b914d
om_android_server_wifi_WifiNative.cpp
be3b27a3749af234b5fd7340aefb9f25060fb433 31-Jan-2015 xinhe <xinhe@google.com> Set interfaces UP when starting WifiHAL

When start the wifiHAL, turn up the interface too. If failed,
return error to framework.

Change-Id: I92a9a8959b7a6e0d777a903da0e75e744051096b
BugId:18335333
om_android_server_wifi_WifiNative.cpp
0465ff513cdccf7e883a505e14c5b78758e7e458 13-Oct-2014 Vinit Deshpande <vinitd@google.com> Enable DFS

Change-Id: I4a9bc8d6587063388ee763fe31e669cddcad24d0
om_android_server_wifi_WifiNative.cpp
83a674a18c84ff4f01377bbfd8988699dec93bc2 31-Oct-2014 Vinit Deshpande <vinitd@google.com> New Additions to WifiScanner APIs [DO NOT MERGE]

Added single shot scan, and maxScansToCache. Also fixed getScanResults()
to report scan results to listeners.

Bug: 18087596
Bug: 17694040
Bug: 18059273

Change-Id: Id623ab9ee2ab89c86a35082279331fa609016347
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
c591ab3b5ff4ac8dade1c7eb88ec83f3572f999b 31-Oct-2014 Vinit Deshpande <vinitd@google.com> New Additions to WifiScanner APIs

Added single shot scan, and maxScansToCache. Also fixed getScanResults()
to report scan results to listeners.

Bug: 18087596
Bug: 17694040
Bug: 18059273

Change-Id: I8a6da5426561e22e72d1e99c5537205b893077dd
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
90b902d2b5c02af02edd7e60f385196af8823128 13-Oct-2014 Vinit Deshpande <vinitd@google.com> Enable DFS

This change enables DFS channels on the underlying device
if background scanning features (GScan features) are supported.

Change-Id: I4a9bc8d6587063388ee763fe31e669cddcad24d0
om_android_server_wifi_WifiNative.cpp
e9fa5dcd292f2b8bad2c567773c74a1568c513ad 12-Aug-2014 Vinit Deshpande <vinitd@google.com> Introduce onLost event on bssid hotlist

Change-Id: I84c3174398fea9a1456fb007586c2c559dd3fe4d
om_android_server_wifi_WifiNative.cpp
efa77c1826499b0a3e57998bd6b3073b107e45d7 06-Sep-2014 Vinit Deshpande <vinitd@google.com> Implement getAvailableChannels

This API allows finding channels by band, so scanning services
can find out which channels to use.

Bug: 16652660
Change-Id: I690825333988a336efa3fc8886297e5b8baf8e1d
om_android_server_wifi_WifiNative.cpp
38e412f0266a7b477cabb1751be3a6161a45042e 01-Sep-2014 vandwalle <vandwalle@google.com> Bug:17285109 remove debug message

Change-Id: I78db781e074e6ef6a09e4eb930f9cb8ba191042e
om_android_server_wifi_WifiNative.cpp
fdde6bf4dc075b4f2807a4940edc2be694b326b6 26-Aug-2014 vandwalle <vandwalle@google.com> Merge "add radio stats to link layer" into lmp-dev
200e8ee5097134010a6edee8d031bb02ff7eeb5a 19-Jul-2014 vandwalle <vandwalle@google.com> add radio stats to link layer

This CL is dependent on I3d2a230b0362520b9f1b2bc3792260116971e106

Change-Id: If7e73ae9813ea79a98744d7f0096316d241998fd

halutil updates for link layer statistics

Change-Id: I00ea13b1a932f40891a0d65026a1c87f01f09587
Signed-off-by: Chilam Ng <chilam@broadcom.com>
om_android_server_wifi_WifiNative.cpp
042c54bfd5144ce8e720585b2093796e7e28de5e 21-Aug-2014 Vinit Deshpande <vinitd@google.com> Set scanning mac OUI for mac address rotation

This change enables mac address rotation feature if it is
implemented. The OUI being set is Google's OUI; which should
prevent from scanning mac addresses colliding with infra mac
addresses.

This change also stops from linking to Qualcomm's and Marvell's
WifiHAL implementation - since none of the new features are
expected to work with this HAL

Change-Id: I50979a8b20c59f5d40007eb4e0ff945e529cbb49
om_android_server_wifi_WifiNative.cpp
07ce33c64db470e749f580ef2c83d21e50fbbb27 14-Aug-2014 Vinit Deshpande <vinitd@google.com> Work around qcom hal bug (no interfaces found) for Mako

Qualcomm's wifi-hal is reporting no interfaces on Mako, even after successful
start of HAL. This change allows the device to boot despite that; but
the root problems needs to be fixed later.

Bug: 17021199
Change-Id: I826c4f41d0c02d5fc37b2ee3ab5ebcefcbf272c8
om_android_server_wifi_WifiNative.cpp
4dbfefd99e51ab1cca058026c90f8093b099198b 11-Aug-2014 Vinit Deshpande <vinitd@google.com> Fix unreliable onQuiscence event

Turns out that new bssid settings weren't always applied to the
significant wifi change state machine. Also broadened the RSSI
range to trigger events at larger distance.

Bug: 16660861
Change-Id: I02518833a4f900c380198ef47c42a0622c258fd2
om_android_server_wifi_WifiNative.cpp
c35361d54d4885c3174499e4ad46d3324387a9bb 08-Aug-2014 Vinit Deshpande <vinitd@google.com> Workaround RTT supported bug

Support for Device to AP rtt should be advertised in
wifi_get_supported_feature_set(). It is not there yet, using
a hardcoded value for now.

Bug: 16854821
Change-Id: Ib468939dc03d91d3f2848fd7ad2f6cbf6013684e
om_android_server_wifi_WifiNative.cpp
b7cc309f06da8a18224057c21ba086f8550367d6 31-Jul-2014 Vinit Deshpande <vinitd@google.com> Rename HotspotListener to BssidListener

And other usage of term Hotspot. This is to be technically correct
with the name usage, should the API become public later.

This change also fixes few outstanding requests from GScan API.These
include

a. An event with scan results when REPORT_AFTER_EACH_SCAN is set.
b. ScanSettings now takes in number of APs as an argument.

Bug: 16633917
Bug: 16631524

Change-Id: Id160f9f14193a37cce5f3ab8d6ea528344b788a0
om_android_server_wifi_WifiNative.cpp
02a1f98f2cecb8ae2d466d6f9fab06b473f970dd 26-Jul-2014 Vinit Deshpande <vinitd@google.com> Enable RTT End-to-end

This change includes various fixes to first RTT implementation and
enables RTT APIs end-to-end. Fixes include proper marshalling of
objects across API and service and JNI fixes.

This change also includes fix for another WifiNative bug that causes
crash on startup.

Bug: 15841411


Change-Id: Ie4ba1ffc6c5b42593e931438b3f03e201ff6be71
om_android_server_wifi_WifiNative.cpp
51da80208c650a8271a18b0ca8681279ba060e1f 23-Jul-2014 Vinit Deshpande <vinitd@google.com> Fix HalUtil for RTT test

Added single shot scan functionality to start running RTT like test
quickly (without waiting for buffers to be full), fixed RTT output
to be more legible and also introduced rtt_tries parameter to
allow for enhanced testing.

Also fixed lots of formatting; although more needs to be done.

This change also fixes another, unrelated JNI crash.

Change-Id: I1517329fba4f20e572f24fa6d832ed6383d19635
ni_helper.cpp
143657392bf0702a155fe688171a5abbf4c86570 01-Jul-2014 Vinit Deshpande <vinitd@google.com> Introduce RTT Manager

Change-Id: Ic9a16d587897b272f85cdb2b8c52b51bca060d18
om_android_server_wifi_WifiNative.cpp
a632d8a6edd350c7644b593b18eceaa5b368505b 01-Jul-2014 Vinit Deshpande <vinitd@google.com> Introduce Wifi Adapters

This change extracts all the wifi interfaces on the device; and provides
its supported features.

Change-Id: I7fbdbec684d653a6e4bf851797e3065ce222e873
om_android_server_wifi_WifiNative.cpp
a59fae6bd96ead6d3c8772b3cc5e69cd08444400 24-May-2014 Vinit Deshpande <vinitd@google.com> More GScan API changes

Main changes are -

1. max_bssid_history_entries in wifi_gscan_capabilities
2. A new callback to report extra status of scan
3. Channel hint for hotlist APs
4. More details on significant change event

Change-Id: I665cb28df99cf152e6b95c8050ea246c5fce81e9
om_android_server_wifi_WifiNative.cpp
b0b1d59786de7ff1fc98e31a16a7d710458bf549 30-May-2014 Vinit Deshpande <vinitd@google.com> Fix the stopping of scan after Wifi connection

We have code that stops kitkat batch scan while we get a new IP address
via DHCP; this exists because ARP multicast packets may be lost if the
wifi radio is off channel for scanning.

We need to do something similar for GScan as well - to avoid getting in
the same problem. This change accomplishes that.

This change also makes all HAL methods static, getting WifiNative closer
to the 'SupplicantManager' role.

cherry-picked from klp-wireless-dev
SHA1 8f343d40a55bc638872a3bb3453b95062bf838ef

Change-Id: Id2b500e37b71ea21a6bca162011abecbd41d90ec
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
aabe7a9f2f32915fd1f25416a6d2034a844005d6 10-May-2014 vandwalle <vandwalle@google.com> introducing link layer
cherry-picked from klp-wireless-dev-mirror
SHA1: eb8de645540caa6076c34854d8a4e7c22341783f
Change-Id: I5c736c697d38ec17dcde81bdee638048fd688073
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
f1daf9342b66bf134d13fa0a42e929a008f1ca62 14-May-2014 Vinit Deshapnde <vinitd@google.com> Enable more features on WifiScanner

This change enables full scan results and allows overriding wifichange
configuration. There are also minor API changes take relavent parameters.

Change-Id: I6ebcb49f64bd8bc9e5e0c88c3b56eb634783524e
om_android_server_wifi_WifiNative.cpp
e4e3750390bec0a849a9153348b7c21b2cc8b843 05-May-2014 Vinit Deshapnde <vinitd@google.com> Initial implementation of WifiScanner

This change implements basic functionality of WifiScanner. Following
functionality is enabled

1. Scanning - specify a list of channels to scan
2. Significant change detection
3. AP hotlist

Change-Id: I4fbb2cccbb15df21aae7a81f5d9b17fde2bda8c0
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
766cb4b1fa3b93c146952eacbf6756f67f172ec1 08-May-2014 Vinit Deshapnde <vinitd@google.com> More HAL fixes

This change implements all message interaction with Broadcom's drivers; and
enables three basic features; scan, hotlist and significant wifi change.

There are GSCAN API changes too -
1. The on_scan_results event is changed to on_scan_results_available
This is to make a single path for retrieving scan results - via the
get_cached_scan_results method.
2. Updated set_significant_change_handler method to include params
3. Updated some parameter names
4. Specified sizes on all arrays.

Change-Id: I39936e1cc84c273b86b86c2e2085cb7b924cafb8
om_android_server_wifi_WifiNative.cpp
7f9a15d554f69311a0db43347d6473a7c4c46e2e 08-May-2014 Vinit Deshapnde <vinitd@google.com> More HAL functionality

This change implements JNI plugs for delivering events to
WifiNative in framework. Also introduces a test utility.

Also has updated Gscan.h which is made up-to-date with the
promised functionatliy.

Change-Id: I12dd6d9f171e01e4b23ce4839b4022acd5e599cb

Conflicts:
service/Android.mk
om_android_server_wifi_WifiNative.cpp
ni_helper.cpp
ni_helper.h
7ef73dd1b6e43c72b3841723504cd86dc402a134 28-Feb-2014 Vinit Deshapnde <vinitd@google.com> Wifi HAL initial implementation

This change introduces Wifi HAL. It has basic structure that we can expect
most commands and events to follow. Only one command is implemented for
illustration.

Change-Id: I16e4b50f3034214e41ab5d363e2c3f543345609b
om_android_server_wifi_WifiNative.cpp
155b9d09ef9b8ead3ca617afdd91e74070d3f0cb 09-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Revert "Move Wifi services to a new git project""

This reverts commit 862f81faba40e9af8fb80744a22e968a298e814e.

Change-Id: I7b15e266a5948749026e01a61d8581746cfd0f5f
om_android_server_wifi_WifiNative.cpp
862f81faba40e9af8fb80744a22e968a298e814e 08-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Move Wifi services to a new git project"

This reverts commit a07c419913bfae2a896fbc29e8f269ee08c4d910.

Change-Id: I1cd35cea1594cdbeae800b9130bc6f885f238b28
om_android_server_wifi_WifiNative.cpp
a07c419913bfae2a896fbc29e8f269ee08c4d910 18-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi services to a new git project

Bug: 12175455
Change-Id: I1fa07e29c6a9aae38d9e334d519a9f2445d15613
om_android_server_wifi_WifiNative.cpp