Commit graph

444 commits

Author SHA1 Message Date
TreeHugger Robot
b09f65c4b1 Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev 2017-04-25 03:08:52 +00:00
Roshan Pius
08d1df4d99 wifi(implementation): Turn on DFS flag for STA
DFS flag needs to be turned on in the legacy HAL for STA operations. So,
initialize this flag on creation of STA iface.
PS: Not adding an explicit HIDL API for this since there is no need to
toggle this from framework and since the HIDL API's are frozen now.

Bug: 36169790
Test: Verified the fix with regression tests: b/37528903.
Change-Id: I214097fcb399cef7fc0cbd2c278622fac259a3e3
2017-04-25 01:53:47 +00:00
Ningyuan Wang
c5b26eecdd Add missing document for supplicant hal, current.txt. am: 94a07c4cdc
am: c0631f313a

Change-Id: Ib27f2a13cf6f73c0e2c525d077be7cdce61f7ee3
2017-04-21 00:23:40 +00:00
Ningyuan Wang
c0631f313a Add missing document for supplicant hal, current.txt.
am: 94a07c4cdc

Change-Id: I557a9b9af06785c30878af75cc35965ad3fc9a30
2017-04-21 00:15:52 +00:00
Etan Cohen
b0557b4783 [AWARE] Configure the subscribe information in beacons
HAL (HIDL) contained configuration of subscriber ID in
discovery beacons (useful for higher probability of
discovery, better cluster selection & merging).

This CL modifies the implementation of the HAL to set
the (new) legacy HAL hooks from the HIDL values.

Bug: 35195516
Test: integration (sl4a) tests pass
Change-Id: I6dc84723a534aa9fd80ca93907f896af710e1e23
2017-04-20 12:48:31 -07:00
Ningyuan Wang
94a07c4cdc Add missing document for supplicant hal, current.txt.
**Note, hashes are being modified in place ONLY
because this interface has not yet been released
in a release of Android.

This adds additional information for setEapPhase2Method().
This also adds the missing error type for find(), stopFind(), and
reject().

Bug: 37254796
Test: compile
Change-Id: I35735a7ec6ca5d490219bb176f1d6c727432113f
2017-04-20 11:16:22 -07:00
Randy Pan
dbb3102bdd Improve logger feature set handling
Some devices don't support querying logger feature set. In that
case set the logger feature set value to 0 instead of failing
the query for regular WiFi feature set.

Bug: 37105075
Bug: 37483427
Test: get battery stats on Fugu.
Change-Id: I3e162f8ddeaaa1965b41518592a253c6c90ddfa7
2017-04-20 10:03:41 -07:00
Randy Pan
1addbeaa46 Add capabilities for wifi_hal_legacy
Bug: 37105075
Bug: 37483427
Test: Fugu Wifi VendorHal initializes successfully
Change-Id: If30aa641e42a9a4be435db97f36af4d172eb8ebe
2017-04-20 09:55:03 -07:00
Ningyuan Wang
0e99756761 Fix RssiMonitoring VTS tests
RssiMonitoring only succeeds if device is connected.

Bug: 36562856
Test: compile, run vts test
Change-Id: I5942c6fb487276751281c0ecf624f52a4ad872a5
2017-04-17 14:09:36 -07:00
Sohani Rao
1c8a118b30 Merge "Add Error callback from Offload HAL" 2017-04-14 16:58:54 +00:00
Andreas Huber
a04af1cf05 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev
am: 8afd952d48

Change-Id: If26dc4c5bb23ea23ed48d35aa8618e0b7f2825a3
2017-04-14 04:18:00 +00:00
Treehugger Robot
f37bea87e8 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" 2017-04-14 03:24:07 +00:00
TreeHugger Robot
8afd952d48 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev 2017-04-14 02:13:28 +00:00
Ningyuan Wang
4d719a3cec Merge changes I52c156ed,I9fb9a924 into oc-dev am: e3c0b02d33
am: 4cf0bfe0b7

Change-Id: Ia997632e063c132f5acc7c0548181979b125ad21
2017-04-14 00:48:08 +00:00
Ningyuan Wang
4cf0bfe0b7 Merge changes I52c156ed,I9fb9a924 into oc-dev
am: e3c0b02d33

Change-Id: I8dd4fb4a04d116ca0d20c8bb69cb36e6a97636eb
2017-04-14 00:24:33 +00:00
TreeHugger Robot
e3c0b02d33 Merge changes I52c156ed,I9fb9a924 into oc-dev
* changes:
  Add VTS tests for Wfd
  Add VTS tests for Bonjour and Upnp service
2017-04-14 00:13:17 +00:00
Andreas Huber
cff97f83a2 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" 2017-04-13 23:27:33 +00:00
Ningyuan Wang
c7951f7cf6 Merge "wifi(interface): Add links to APF docs" into oc-dev am: eb88c40014
am: dbc93868eb

Change-Id: I42d06c1b17765eead4e2960e3cac4cfea7f95255
2017-04-13 22:42:43 +00:00
Ningyuan Wang
b0bb01d808 wifi(interface): Add links to APF docs
Bug: 32119512
Test: Compiles
Merged-In: Iadb68a2a649b120b607735e4d88617b11740832f
Change-Id: I32ec491983d1d9e987a19a00b4fd8e60503c9e7f
2017-04-13 15:28:44 -07:00
Andreas Huber
6fa374ad30 Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:23:46 -07:00
Ningyuan Wang
dbc93868eb Merge "wifi(interface): Add links to APF docs" into oc-dev
am: eb88c40014

Change-Id: Ie7fc9fecf894aaa00537f12956567c82673f43fb
2017-04-13 22:23:24 +00:00
Andreas Huber
6733baff6c Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:16:27 -07:00
Ningyuan Wang
eb88c40014 Merge "wifi(interface): Add links to APF docs" into oc-dev 2017-04-13 22:15:44 +00:00
Andreas Huber
e6e54801c1 Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 14:28:05 -07:00
Ningyuan Wang
38dda5b3ea Merge "Add VTS tests for wps related APIs in ISupplicantIface" into oc-dev am: e70bffdf3c
am: 87b019933a

Change-Id: I386791b040e40a45f0c75fa4958508af6f843297
2017-04-13 20:55:33 +00:00
Ningyuan Wang
2972c5f57e Add VTS tests for Wfd
This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::enableWfd(),
ISupplicantP2pIface::setWfdDeviceInfo()

Bug: 33457575
Test: VTS tests pass

Change-Id: I52c156edf32c58b6fb6248d1b396d0437feebbfe
2017-04-13 13:24:54 -07:00
Ningyuan Wang
6dc07818bc Add VTS tests for Bonjour and Upnp service
This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::addBonjourService(),
ISupplicantP2pIface::removeBonjourService(),
ISupplicantP2pIface::addUpnpService(),
ISupplicantP2pIface::removeUpnpService()

Bug: 33457575
Test: VTS tests pass

Change-Id: I9fb9a9243a40c2309e549775acabbf90ac9b31da
2017-04-13 13:22:00 -07:00
Ningyuan Wang
87b019933a Merge "Add VTS tests for wps related APIs in ISupplicantIface" into oc-dev
am: e70bffdf3c

Change-Id: Iac54dddd4d85e4b831d4b39b92a6f329b5c10203
2017-04-13 20:18:39 +00:00
Ningyuan Wang
bc3533d0dd Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev am: 61d3d5ee85
am: 844e8de19d

Change-Id: I39479cbc8e086ddfbd6d9cab68871534ba69ed29
2017-04-13 19:01:35 +00:00
Ningyuan Wang
862a82d774 Merge "Add more VTS tests for SupplicantStaIface" into oc-dev am: ce01460a15
am: 8e07b9dbc9

Change-Id: I230fb2beb9a0a1847bb153365174c2b5ef9e9c15
2017-04-13 19:01:24 +00:00
Ningyuan Wang
844e8de19d Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev
am: 61d3d5ee85

Change-Id: I7af8e8c6a63bf04cded9e1710462e0a2138094d1
2017-04-13 18:48:10 +00:00
Ningyuan Wang
8e07b9dbc9 Merge "Add more VTS tests for SupplicantStaIface" into oc-dev
am: ce01460a15

Change-Id: I3964b85ec1ad1d2797d1e8ca66b3951351e570ab
2017-04-13 18:47:59 +00:00
Ningyuan Wang
37e8742966 Add VTS tests for wps related APIs in ISupplicantIface
This covers the following APIs by adding tests to
ISupplicantStaIface and ISupplicantP2pIface:
ISupplicantIface::setWpsDeviceName(),
ISupplicantIface::setWpsDeviceType(),
ISupplicantIface::setWpsManufacturer(),
ISupplicantIface::setWpsModelName(),
ISupplicantIface::setWpsModelNumber(),
ISupplicantIface::setWpsSerialNumber(),
ISupplicantIface::setWpsConfigMethods()

Bug: 33457575
Test: VTS tests pass

Change-Id: I0adf6b81ed6da8b1dead9dfa09c778acf4f03a8c
2017-04-13 11:20:10 -07:00
TreeHugger Robot
61d3d5ee85 Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev 2017-04-13 18:17:05 +00:00
TreeHugger Robot
ce01460a15 Merge "Add more VTS tests for SupplicantStaIface" into oc-dev 2017-04-13 18:16:28 +00:00
Roshan Pius
c788891d5b wifi(interface): Add links to APF docs
Bug: 32119512
Test: Compiles
Change-Id: Iadb68a2a649b120b607735e4d88617b11740832f
2017-04-13 10:28:50 -07:00
Ningyuan Wang
680018ba5b Add VTS test for ISupplicantP2pIface::removeGroup()
Bug: 33457575
Test: VTS tests pass
Change-Id: Ibb752d92ba1ba35475e1aec9d82c27c6b4b0c84e
2017-04-12 19:48:30 -07:00
Sohani Rao
69d5025e27 Add Error callback from Offload HAL
Error callback to report errors in Offload HAL service. Included VTS
tests to verify these callbacks are invoked.

Bug: 32842314
Test: Unit tests
Change-Id: I389b28b6ed5db7782ce6425beae67f5bdc2cf4aa
2017-04-12 18:52:25 -07:00
Steven Moreland
17f0c0dde7 Merge changes from topic 'hidl-vendor-available' into oc-dev
* changes:
  Update makefiles (2/2).
  Update makefiles.
2017-04-12 22:13:58 +00:00
Ningyuan Wang
0184852f9d Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev am: 2d76d8670a
am: 2cb8be5b54

Change-Id: I3f26999e891ec572743b7311e9edcfea44e160d5
2017-04-12 19:05:59 +00:00
Ningyuan Wang
2cb8be5b54 Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev
am: 2d76d8670a

Change-Id: I2b846253ef012589b32895921cd09e19692e3f8c
2017-04-12 19:01:04 +00:00
TreeHugger Robot
2d76d8670a Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev 2017-04-12 18:52:18 +00:00
Ningyuan Wang
1735bfbb26 Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev am: 7147f8f57f
am: 563ceeeafa

Change-Id: Ic5a5ec8c3a2e749d33da498253da407176a735b7
2017-04-12 18:03:44 +00:00
Steven Moreland
7e5b96c07f Merge "Update makefiles." am: bbf39eb0b9 am: 3334081377 am: 5306d88cad
am: 8cc75b051e

Change-Id: I249729c9b76c8433eaea0daa0090f8de09c9f46d
2017-04-12 18:03:06 +00:00
Ningyuan Wang
563ceeeafa Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev
am: 7147f8f57f

Change-Id: Id075f6cfdcae31a450fa1d098530fd7b007add42
2017-04-12 17:33:04 +00:00
Steven Moreland
8cc75b051e Merge "Update makefiles." am: bbf39eb0b9 am: 3334081377
am: 5306d88cad

Change-Id: Ie1ed999a4a11ea9767d09fca591c80db91102daf
2017-04-12 17:26:03 +00:00
TreeHugger Robot
7147f8f57f Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev 2017-04-12 17:04:25 +00:00
Ningyuan Wang
2b871f07bc Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev am: 3d56bdfb2e
am: b3782bab33

Change-Id: Idfddc917bbcb62c4f40513d018fb18f2e6aed618
2017-04-12 09:33:31 +00:00
Ningyuan Wang
2d1e38e754 Merge "Add VTS tests for ISupplicantIface" into oc-dev am: 4629846e68
am: 6efb54fc25

Change-Id: I95013972cc30dbcca8132343a2a01cbbe6cae60c
2017-04-12 09:33:20 +00:00
Ningyuan Wang
b3782bab33 Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev
am: 3d56bdfb2e

Change-Id: I3248190aaf9c394e5279b975e882bbb9e8f70810
2017-04-12 09:22:30 +00:00
Ningyuan Wang
6efb54fc25 Merge "Add VTS tests for ISupplicantIface" into oc-dev
am: 4629846e68

Change-Id: I943342d624af77c266ac36562c8f252f76b0adf5
2017-04-12 09:22:19 +00:00
TreeHugger Robot
3d56bdfb2e Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev 2017-04-12 09:17:08 +00:00
TreeHugger Robot
4629846e68 Merge "Add VTS tests for ISupplicantIface" into oc-dev 2017-04-12 09:14:29 +00:00
Ningyuan Wang
f2310dc93e Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev am: f2c858ba94
am: ba374d543d

Change-Id: Ic9ac6e722a6c71729933e0cc9d583daa1182fe84
2017-04-12 05:12:32 +00:00
Ningyuan Wang
ba374d543d Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev
am: f2c858ba94

Change-Id: Iaceed63e1bb4c1a2f9d6a41e5ed4b799e95ccc3e
2017-04-12 04:57:16 +00:00
TreeHugger Robot
f2c858ba94 Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev 2017-04-12 04:45:48 +00:00
Ningyuan Wang
aa9b37d26b Add more VTS tests for ISupplicantNetwork
This covers the following APIs by adding tests to
ISupplicantStaNetwork:
ISupplicantStaNetwork::setPsk(),
ISupplicantStaNetwork::getPsk(),
ISupplicantStaNetwork::setEapSubjectMatch(),
ISupplicantStaNetwork::getEapSubjectMatch(),
ISupplicantStaNetwork::setUpdateIdentifier,
ISupplicantStaNetwork::SetProactiveKeyCaching
ISupplicantStaNetwork::SendNetworkEapSimUmtsAutsResponse,
ISupplicantStaNetwork::SendNetworkEapSimGsmAuthFailure,
ISupplicantStaNetwork::SendNetworkEapSimUmtsAuthFailure,
ISupplicantStaNetwork::GetWpsNfcConfigurationToken

Bug: 33457575
Test: VTS tests pass

Change-Id: I7d990471aadc46e7d553f2179d6d234530cb1df6
2017-04-11 16:50:40 -07:00
Steven Moreland
0dd5ba23fb Update makefiles.
Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e
2017-04-11 16:41:07 -07:00
Ningyuan Wang
7a5a185dc6 Add more VTS tests for SupplicantStaIface
This covers the following APIs by adding tests to
ISupplicantStaIface:
ISupplicantStaIface::setExternalSim(),
ISupplicantStaIface::addExtRadioWork(),
ISupplicantStaIface::removeExtRadioWork()

Bug: 33457575
Test: VTS tests pass
Change-Id: Ie252ecf8e6e0cdc9d669a5fec18e076dc2d03eba
2017-04-11 16:39:38 -07:00
Ningyuan Wang
cd587bb6e4 Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev am: aa3e01f871
am: b6a44a50d9

Change-Id: I9a4a1ce3f2971bed12e6a7af3d4949553741863a
2017-04-11 23:37:59 +00:00
Ningyuan Wang
b6a44a50d9 Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev
am: aa3e01f871

Change-Id: I33161dba384d3dec981f9ef65a53fa18adb3f55a
2017-04-11 23:28:11 +00:00
TreeHugger Robot
aa3e01f871 Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev 2017-04-11 23:16:55 +00:00
Ningyuan Wang
e52e8804a8 Add more VTS tests for ISupplicantP2pIface
This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::SetGroupIdle(),
ISupplicantP2pIface::SetPowerSave()

Bug: 33457575
Test: VTS tests pass
Change-Id: I8291735e74cf88c0e1ee4b5297b39aa37c33d17c
2017-04-11 16:01:15 -07:00
Ningyuan Wang
40453ea85c Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev am: 4ebd10a29a
am: ecf5fdc03f

Change-Id: Idea4e77431430635743af0ad538356593245595e
2017-04-11 21:33:03 +00:00
Ningyuan Wang
ecf5fdc03f Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev
am: 4ebd10a29a

Change-Id: I1eac40f7e73ff6c9ea97f64c70ac89a162cd32fe
2017-04-11 21:28:33 +00:00
Ningyuan Wang
4ebd10a29a Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev 2017-04-11 21:20:15 +00:00
Ningyuan Wang
e97b2be0da Add more VTS tests for ISupplicantNetwork
This covers the following APIs by adding tests to
ISupplicantStaNetwork:
ISupplicantNetwork::getInterfaceName(),
ISupplicantNetwork::getType()

Bug: 33457575
Test: VTS tests pass
Change-Id: I9a24195cefefcc23b7603ff33b66a497eba07148
2017-04-11 13:39:02 -07:00
Ningyuan Wang
4833b06f8b Add VTS tests for ISupplicantIface
This covers the following APIs by adding tests to both
ISupplicantStaIface and ISupplicantP2pIface:
ISupplicantIface::getName(),
ISupplicantIface::getType()

Bug: 33457575
Test: VTS tests pass

Change-Id: Ibbc4be2e367fc6f179005696724cccbcca58d10f
2017-04-11 13:20:46 -07:00
Ningyuan Wang
dd05603f0f Copy wifi_hidl_call_util.h for supplicant VTS test
This copies wifi_hidl_call_util.h to supplicant cts directory
so supplicant vts tests can use this to simplify code.

Bug: 33457575
Test: compile, manual test
Change-Id: I696475062d04d54fafae5c3323818ce1d1ff7d9d
2017-04-11 12:56:23 -07:00
Steven Moreland
b2799c370f Update makefiles.
Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e
2017-04-11 09:57:40 -07:00
Ningyuan Wang
271f16e6f7 Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()
EAP method needs to be set to construct the eap phase 2 method string.

Bug: 37220169
Test: vts tests pass
Change-Id: Ie69aaac0826d4bde784f864631a718242dd5af2a
2017-04-10 20:44:18 -07:00
Ningyuan Wang
6504cb2eb9 Fix VTS test for SupplicantP2pIface::stopFind()
stopFind() returns SUCCESS even when there is no ongoing
find() operation.

Bug: 37220169
Test: vts tests pass
Change-Id: Ia3f3b4e0c4e7fb7263c1bcbfda1a40b6e5f1cba2
2017-04-10 20:15:31 -07:00
Peter Qiu
b137fc8ce0 wifi: add VTS tests for IWifiApIface am: 2c5d412af2
am: df3973dccb

Change-Id: Iebbc189fdae3d7ac55d556b54ceed5ef968ad0c3
2017-04-11 01:29:21 +00:00
Peter Qiu
df3973dccb wifi: add VTS tests for IWifiApIface
am: 2c5d412af2

Change-Id: Ib00281f3408facb6bfac7e71b0ab0160ad10551f
2017-04-11 01:11:17 +00:00
Peter Qiu
2c5d412af2 wifi: add VTS tests for IWifiApIface
Bug: 32022435
Bug: 36813739
Test: run VtsHalWifiV1_0Target test
Change-Id: I31db3b1bfe5deed5691e0d342762298b4b0d3620
2017-04-10 15:45:31 -07:00
Peter Qiu
bf29d5c8f0 Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev am: eeee2b1d50
am: 98d95834ba

Change-Id: I336114c6c7063756cf96abdf5d63561bc9171b06
2017-04-10 21:04:41 +00:00
Peter Qiu
98d95834ba Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev
am: eeee2b1d50

Change-Id: I57efb271423cf57e7bb1976ebc976e067bc8df25
2017-04-10 20:41:16 +00:00
TreeHugger Robot
eeee2b1d50 Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev 2017-04-10 20:20:34 +00:00
Peter Qiu
32a736f8c8 wifi: add VTS tests for IWifiStaIface
This will cover all APIs except:
- startBackgroundScan
- stopBackgroundScan
- startSendingKeepAlivePackets
- stopSendingKeepAlivePackets

Bug: 32022435
Bug: 36813739
Test: run VtsHalWifiV1_0Target test
Change-Id: I71a1a97e4b0f1145657b249f3eb20305f810962b
2017-04-10 18:22:00 +00:00
Etan Cohen
67c0c0045a Merge "[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported" into oc-dev am: e13455b32a
am: a130c0d3f2

Change-Id: I8d275f785bf986850363ffbe5dbcf9a3793f7275
2017-04-08 04:25:45 +00:00
Etan Cohen
fe38d361a9 Merge "[AWARE][VTS] Update WifiChipHidlTest NAN tests" into oc-dev am: 24e1601315
am: 490ea3f105

Change-Id: I99d7e734070217f324f7bf1377a33d0af34bf19a
2017-04-08 04:25:35 +00:00
Etan Cohen
a130c0d3f2 Merge "[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported" into oc-dev
am: e13455b32a

Change-Id: Id6f15287394bb2531316add0a4111f70d0e736d6
2017-04-08 04:22:08 +00:00
Etan Cohen
490ea3f105 Merge "[AWARE][VTS] Update WifiChipHidlTest NAN tests" into oc-dev
am: 24e1601315

Change-Id: I5c763c6d5c894f9c1ff2e637859ea24fd1f0835f
2017-04-08 04:21:57 +00:00
Etan Cohen
7f326f9f96 [WIFI][VTS] Don't call RequestDriverDebugDump API if not supported
The RequestDriverDebugDump API has a capability bit indicating if
supported on device. Calling if not supported should additionally
return ERROR_NOT_SUPPORTED - but does not today. This is arguably
not a valid issue - should not call API if already known not to be
supported.

Remove test for this (questionable) condition until decide on proper
semantics.

Bug: 36562856
Test: test passes
Change-Id: Ic8a1c8b5f77a1b1767c0efc9735731084dfde7cc
2017-04-07 13:17:06 -07:00
Etan Cohen
4b132a9d97 [AWARE][VTS] Update WifiChipHidlTest NAN tests
NAN is not enabled on O - update all WifiChip NAN tests to expect
failure.

These tests will start failing again on any platforms/code where
NAN is enabled. Will fix more comprehensively at that point.

Bug: 36562856
Test: build + run vts
Change-Id: I0eaf7934d327fb91bff59dd33bd4a8069888c967
2017-04-07 10:41:52 -07:00
Etan Cohen
6fe38e9a72 Merge "[AWARE] Legacy HAL update: reduce host wakeup" am: 6ae199efa4 am: c6e4705e9d am: 7f4335b30a
am: 92c0d5140c

Change-Id: I6a9de5d52a7e3af4721593bad8b285b845ad700a
2017-04-05 22:35:07 +00:00
Etan Cohen
92c0d5140c Merge "[AWARE] Legacy HAL update: reduce host wakeup" am: 6ae199efa4 am: c6e4705e9d
am: 7f4335b30a

Change-Id: I90570e1f80662d0557eb1f30623e609c5bed8716
2017-04-05 22:22:35 +00:00
Roshan Pius
8a2ce1382c Merge "wifi(implementation): Print out the cb object on failure" into oc-dev am: 75e2bf0469
am: ef8521d6a0

Change-Id: Iba99894164a6b5ff4c8d7a6813e20b280b85e835
2017-04-05 20:07:51 +00:00
Roshan Pius
3797e188f8 wifi(implementation): Print out the cb object on failure
This should help us figure out if there are multiple callback objects in
wifi_chip when we see the IPC storm from
onDebugRingBufferDataAvailable().

Bug: 36599054
Test:  ACTS wifi tests.
Change-Id: I8c67032c59ecdd45824e131b59d890ce6c94fe25
2017-04-05 11:11:19 -07:00
Roshan Pius
82af4e193d wifi(implementation): Ignore IE parsing error am: 4094107835
am: 14965f9566

Change-Id: Ib12736be647fe38390a09e9e1c11f27d77d24eaa
2017-04-05 17:52:16 +00:00
Roshan Pius
208d65c87f wifi(implementation): Return const-ref for callback set am: cab37be578
am: 397f0eabd3

Change-Id: I86b1e265a9604faf110d439b4c5e666ca157349f
2017-04-05 17:52:04 +00:00
Roshan Pius
4094107835 wifi(implementation): Ignore IE parsing error
The IE blob may not always be fully formed in gscan full scan results.
So, log errors when we hit a parsing error and return the IE elements we
could parse so far.

Bug: 36455164
Test: ACTS wifi gscan tests.
Change-Id: I804937ea5e69f51696aaabf3fe3f53850c145ad3
2017-04-05 17:41:57 +00:00
Roshan Pius
cab37be578 wifi(implementation): Return const-ref for callback set
Bug: 36792787
Test: Compiles
Change-Id: Ibd19c6f41801d0fa1ea7dc9c3334213865d649ec
2017-04-05 17:41:39 +00:00
Etan Cohen
20925b0f56 [AWARE] Legacy HAL update: reduce host wakeup
Legacy HAL update to add indications when a solicited publisher
receives a match. Not used in current HAL. However, also added a
control bit to turn off host notification which is now enabled.

Bug: 35195773
Test: integration (sl4a) tests
Change-Id: I8ff378abaae11d4feaa42a9901abb1b48069dc4f
2017-04-04 22:13:36 +00:00
Sohani Rao
55adb1b68c VTS for Wifi Offload HAL
Basic VTS test suite for Wifi Offload HAL
Cherry pick from 00dd5147c4f9a4cdff941b2eed12e1d5844bef86
Bug: 32842314
Bug: 36865676
Change-Id: I702b9d90164f21104a915003b9496fbf4dd969c0
Test: adb shell /data/VtsHalWifiOffloadV1_0TargetTest
2017-04-04 14:26:24 -07:00
Sohani Rao
b3c3f8c1df Offload HAL update makefiles
Update make files to build Offload HAL binary

Bug: 32842314
Test: Unit tests, check if Wifi Offload HAL service is running
Change-Id: I5da649247fc234fc2555453cf1eac83a14ae496e
2017-04-04 14:26:10 -07:00
Sohani Rao
63f17c0449 Define Wifi Offload HAL HIDL interface
This interface defines the interaction of the Wifi framework with the
new HAL module that will offload disconnected PNO scans when screen is
off. For details of the overall design, refer to this document:
https://docs.google.com/a/google.com/document/d/13OmqquTnRXTRnyWbtfpc1Ib7YY411EwjNW3njzJ5KyM/edit?usp=sharing
Cherry pick from 7ac4a32e6eca71fcf1a86991654af747d38928ad
Bug: 32842314
Change-Id: I01e1952458d58b9233f18fc0450491fc7c48e6e1
Test: Unit tests, Mannual Wifi turn on
2017-04-04 14:25:58 -07:00
Etan Cohen
ee1394f642 Merge "[AWARE] Create true translations between legacy and hidl enums" am: 24ff2036ce am: 945fbf8434
am: e78000cffa

Change-Id: I17e82ff6f2951a2709a63cdfd3f62d23b9f24d13
2017-04-04 17:57:22 +00:00
Etan Cohen
67d378d69e [AWARE] Create true translations between legacy and hidl enums
Replace implicits translations between legacy and hidl enums (using
casts) with explicit translations.

(cherry-pick of commit 284511779c)

Bug: 35767620
Test: integration (sl4a) tests
Merged-In: I4ae4cd691226ce29bc0e92f9890fbb343a064505
Change-Id: I4ae4cd691226ce29bc0e92f9890fbb343a064505
2017-04-04 09:21:25 -07:00
Etan Cohen
284511779c [AWARE] Create true translations between legacy and hidl enums
Replace implicits translations between legacy and hidl enums (using
casts) with explicit translations.

Bug: 35767620
Test: integration (sl4a) tests
Change-Id: I4ae4cd691226ce29bc0e92f9890fbb343a064505
2017-04-03 16:12:46 -07:00
Roshan Pius
e3509d455b supplicant(vts): Compilation fixes
Fixed couple of compilation failures from .hal changes and made change
to stop/start framework during tests.

Bug: 33457575
Test: mmma -j32 hardware/interfaces/wifi/supplicant/1.0/vts/functional
Change-Id: I1bac68bd71e92b025acdebd0fef8834b826bcfcb
2017-03-30 14:59:18 -07:00
Andreas Huber
675ae49ab1 Convert all comments into "doxygen-ready" comments.
Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40
2017-03-28 16:14:43 -07:00
Andreas Huber
3e4acb8b3a Convert all comments into "doxygen-ready" comments.
Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40
2017-03-28 16:10:42 -07:00
Roshan Pius
34e4bc4dd2 wifi(implementation): Stop loading vendor library statically
libwifi-hal statically imports the vendor implementation of the legacy
HAL. Since the HIDL daemon is dynamically linking against libwif-hal,
there is no need for it to statically import the vendor implementation
library (one pointed to by: $LIBWIFI-HAL variable).

Bug: 36169790
Test: Compiles & device is able to connect to wifi networks with the
change.

Change-Id: Ie44b58328f9bdde011ba6d4a4d26f786c2d097e7
2017-03-27 22:14:04 +00:00
Steven Moreland
e90c31f125 Update makefiles.
Test: pass
Change-Id: I925baccbe51a32b7b7f3f66cf2918d017ee6b039
2017-03-24 21:50:45 -07:00
Etan Cohen
2d523c012e [WIFI] Restore initialization code
Restore the usage of WIFI-specific main function. The main
function was inadvertantly disabled by moving it into a static
library - which caused the default main to be used.

Need a custom main since need to stop WIFI before tests start
to enforce a clean starting point.

Bug: 35276551
Test: confirms custom main routine is called
Change-Id: I978827bc0f0f16d9ca4f159fbf42d0bc53f5df99
2017-03-23 17:37:42 -07:00
Etan Cohen
9e71d7d44f Merge "[AWARE] Add Passphrase data-path security" 2017-03-23 00:10:34 +00:00
Etan Cohen
c58619e8d9 [AWARE] Add Passphrase data-path security
Add mechanism to configure data-path security using Passphrase
(as an alternative to PMK).

Bug: 35866810
Test: integration (sl4a) tests passing.
Change-Id: If7094a44af1996d3caf5b776d492797f14a7be11
2017-03-21 16:49:40 -07:00
Roshan Pius
c314841614 supplicant(interface): Add an event for bssid changes
This is useful in debugging (& collecting metrics) when the active bssid changes.

Bug: 36451639
Test: Compiles & manual tests using the framework changes.
Change-Id: I5676dfb9ec9c13ae900c315eb8dfacb857e70fc1
2017-03-21 10:53:56 -07:00
Roshan Pius
a1c76e4d53 wifi(implementation): Return proper status code on initialize
The fallback HAL will return |WIFI_ERROR_NOT_SUPPORTED| when
|init_wifi_vendor_hal_func_table| is invoked.  This should be sent as is
to the HIDL interface instead of sending |WIFI_ERROR_UNKNOWN|.

Bug: 34859006
Test: Compiles
Change-Id: I5fd132368715bd158e617ad3cf2e6f88d147cef7
2017-03-20 19:20:32 -07:00
Roshan Pius
d65be16cfd supplicant(interface): Correct the WFD info length
Error logs from test:
03-17 18:34:34.303  1781  1781 E wpa_supplicant: Unexpected WFD device
info len: 6

Bug: 36401779
Test: Compiles
Change-Id: I65805599f8f3242a5c1f6ba8c0a1b9da05df79b4
2017-03-20 08:01:43 -07:00
Roshan Pius
94b4bdca75 supplicant(interface): Support for P2P client list and save config
Bug: 36042785
Test: Compiles
Change-Id: Ib47b47762c05e6252f692c1456e9b8d5dd8c051a
2017-03-20 08:01:43 -07:00
Roshan Pius
39c2609065 supplicant(interface): Add support for disabling auto connect
Adding a new API to prevent wpa_supplicant from initiating auto
reconnects.

Bug: 36282386
Test: Compiles & manual tests.
Change-Id: I81d7b1a3677cb26c6e9dc35b7302cc6b00d9a6a2
2017-03-16 16:48:57 -07:00
Roshan Pius
d23068fac6 supplicant(interface): List out all status/reason codes
List out all the association/disconnect reason codes exposed in the
IEEE80211 spec.

Bug:36363830
Test: Compiles
Change-Id: I27168bfb67fbc658339bc5fc9310ffdc9aec5ec6
2017-03-16 20:43:36 +00:00
Roshan Pius
864cae3795 Merge "supplicant(vts): More tests" 2017-03-15 20:34:19 +00:00
Etan Cohen
16ae0c8f86 Merge "[AWARE] Separate Aware (NAN) VTS tests into a separate test binary." 2017-03-15 14:42:46 +00:00
Etan Cohen
a49579b43a [AWARE] Separate Aware (NAN) VTS tests into a separate test binary.
Aware (NAN) VTS need to be in a separate test binary since whether
they run depends on the feature being supported by the device.

Bug: 36003265
Test: confirms separate binary built
Change-Id: If237e21e72a7c65f5587e40d98acb3146eae45a1
2017-03-15 01:14:13 +00:00
Roshan Pius
036da68261 supplicant(vts): More tests
These tests just invoke the HIDL interface API's and ensure
that they succeed or not. Some of these API's (especially P2P) need
multi device testing (AP, Peer) to ensure that they work.

Bug: 33457575
Test: adb shell /data/supplicant_hidl_test
Change-Id: Ibf547b5ed95895c429c8bcb59e4c43b3b436338f
2017-03-14 10:10:12 -07:00
Roshan Pius
d32a43f464 wifi(implementation): Make a boolean flag atomic
The flag |awaiting_event_loop_termination_| is accessed by multiple
threads, so make it atomic.

Bug: 33552618
Test: Compiles
Change-Id: I5ebe27fe88672565aae0daf34a89616d36f35f90
2017-03-14 08:30:45 -07:00
Roshan Pius
e42ace2404 wifi: Add support for multiple radio stats
Previously, we've always assumed that we have only one instance of
radio stats fetched in link layer stats. This is no longer true for the
newer devices which support multiple radios.

Also,
Changed the timestamp member from uint32_t to uint64_t.

Bug: 36148086
Test: The error logs no longer seen on newer devices.
Change-Id: I048a1db7cc0bfb0dc0dacafff2156f42a8ae1e63
2017-03-13 17:12:32 -07:00
Subhani Shaik
48df739a4d wifi: Link the new libcld80211 library
Bug: 32775496
Change-Id: I700dec21bfc3a36b8a3b09251b3004449fd49de7
2017-03-13 20:34:29 +00:00
Etan Cohen
48b4ce2e99 Merge "[WIFI][HIDL] Add device-based feature flag support" 2017-03-11 18:57:41 +00:00
Roshan Pius
78cfef9f0c wifi(implementation): Add null checks for RTT result
According to the legacy HAL header file, the LCI & LCR fields may not
always be populated. So, add null checks for them.

Bug: 36141536
Test: Compiles
Change-Id: Id2a5f5fd0eaf21b3a4d5cfcd26124c9fb6c90869
2017-03-11 05:41:59 +00:00
Etan Cohen
c57004008a [WIFI][HIDL] Add device-based feature flag support
Add mechanism to define feature support flags to
configure set of Wi-Fi features supported on a particular
device.

Bug: 32997844
Test: integration tests
Change-Id: Iffbf3ba237013f1030b24c0173641234a9c27e5c
2017-03-10 10:07:16 -08:00
Yuexi Ma
6b8720110b Change vts target base test class name
Test: make vts succeed, vts kernel tests and nfc hal tests passed
Change-Id: I38ae6cc940d0f17bb3352f360efdf9c70697c76b
2017-03-10 00:42:13 -08:00
Roshan Pius
cdca05557d Merge changes If83c1cbe,I12ad2665
* changes:
  wifi(implementation): Move out clearing on stop complete
  wifi(vts): Some IWifiChip/IWifiStaIface tests
2017-03-10 01:16:48 +00:00
Roshan Pius
46b6454d2f wifi(implementation): Move out clearing on stop complete
Currently, we invoke WifiLegacyHal.invalidate() inside the
|on_stop_complete_internal_callback| std::function. |invalidate|
nulls out |on_stop_complete_internal_callback| inside it which might be
considered a violation since we're deleting the std::function object
as we're executing it.

Bug: 36095153
Test: Compiles, start/stop wifi multiple times.
Test: Verified that a crash is not seen in asan build.
Change-Id: If83c1cbee78a1b6eca12686fcc1ec1de67134f13
2017-03-09 23:22:09 +00:00
Etan Cohen
255cdb29a0 Merge "[AWARE] Relocate ranging field in legacy HAL - match in HIDL impl" 2017-03-09 23:13:29 +00:00
Roshan Pius
3819e4193e wifi(vts): Some IWifiChip/IWifiStaIface tests
These tests basically just ensure that we can call the corresponding
API's successfully. More tests will be added in further CL's.

Bug: 33459306
Test: mmm -j32 hardware/interfaces/wifi/1.0/vts/functional/
&& adb push out/target/product/angler/data/nativetest64/
VtsHalWifiV1_0TargetTest/VtsHalWifiV1_0TargetTest /data/ &&
adb shell /data/VtsHalWifiV1_0TargetTest

Change-Id: I12ad26653993ce7167d007a887e7aff07fd0a5ce
2017-03-09 09:33:55 -08:00
Steven Moreland
691a455b9f Add hidl_default and make modules use hidl_default.
find hardware/interfaces -type f -not -path "*/.git/*" \
-exec sed -i -e '/cc_[A-Za-z_]\+/ { N; s/$/\n    defaults:
\["hidl_defaults"\],/ }' {} \;
./hardware/interfaces/update-makefiles.sh

Test: no warnings
Bug: 35840847
Change-Id: I468b76893bf3f4b62ad610d1d9603bcb8797a702
2017-03-08 16:22:00 -08:00
Steven Moreland
853a9b5feb update-makefiles.sh: wifi
Test: pass
Change-Id: If43aa789381ed43120e0a075587a89c0076c8433
2017-03-08 15:33:31 -08:00
Etan Cohen
5b804210ae [AWARE] Relocate ranging field in legacy HAL - match in HIDL impl
Relocate ranging report config in the legacy HAL. Match the correspoding
setting in the HIDL implementation (field itself not exposed).

Bug: 36065933
Test: integration (sl4a) tests
Change-Id: I651db9e8f63f8382706994d8b3b6cc266b77c73d
2017-03-08 11:44:01 -08:00
Roshan Pius
cbafd53fbc supplicant(interface): Add support for get/set raw psk
Bug: 36013886
Test: Compiles
Change-Id: I2e90e3f6533d2271144404a3de3b19854b001c2f
2017-03-08 08:04:30 -08:00
Treehugger Robot
f297caedd7 Merge "wifi: Fetch the gscan bucket idx from request" 2017-03-08 02:53:31 +00:00
Roshan Pius
7bf6dc8193 supplicant(interface): Add timedOut param in assoc reject
This is needed to indicate if the association failed due to a timeout
instead of AP explicitly rejecting us.

Bug: 34280407
Test: Compiles
Change-Id: Ib287ea8e45c28356bf9e3271962fc015761651fd
2017-03-08 01:22:23 +00:00
Roshan Pius
4cf4059cd9 wifi: Fetch the gscan bucket idx from request
We can't rely on the ordering of these buckets to populate their
indexes. So, send them explicitly from the caller.

Bug: 35989680
Test: Compiles
Change-Id: Ife09440935eb3526636c27bfdd40c37c69c7ade2
2017-03-08 01:21:10 +00:00
Roshan Pius
f12f1ee288 wifi(implementation): Clear the chip immediately on IWifi.stop()
Currently, we wait for the legacy HAL callback to complete to clear and
invalidate the chip objects and it's derivatives. This may cause us to
access the wifi legacy HAL in a indeterminate state (as it's processing stop)
on subsequent HIDL calls.
So, clear up the chip object and derivatives immediately after we
process the stop to prevent any subsequent calls from sneaking in.

Also,
Added a couple of logs when wifi HAL is started/stopped to help debug
such issues later.

Bug: 36026601
Test: Turn on/off wifi and switch to softap mode multiple times.
Change-Id: Id5c2c9a90a335b2de4ae331ac8610b1a4e7875da
2017-03-07 23:24:16 +00:00
Roshan Pius
814b765a09 wifi(implementation): Allow wifi hal to access gps
Wifi Hal uses some gps components (LOWI) for gscans (location scans).
So, grant it gps group permission.

Denials:
03-03 16:56:03.845   623  6924 I QCALOG  : [MessageQ_Client] connecting
to server [/data/misc/location/mq/location-mq-s]
03-03 16:56:03.845   623  6924 E QCALOG  : [MessageQ_Client] connect
error: 13, [Permission denied]

Bug: 35959128
Test: Denials no longer seen.
Change-Id: Iddfddb46a585c7c15a26b1fa01889181e4a3cce1
2017-03-06 17:18:48 -08:00
Etan Cohen
89145d5849 Merge "[AWARE] VTS baseline" 2017-03-06 16:46:59 +00:00
Etan Cohen
80054133dc [AWARE] VTS baseline
Modified Wi-Fi test setup/tear-down to shutdown and start the
Android framework. The framework competes with the VTS to control
the HAL and so must be disabled for the duration of the test.

Added framework to support VTS testing with the Wi-Fi Aware (NAN)
interface.

Added all callback types (notifications, events) with ability to
wait for such callbacks.

Bug: 35276551
Test: gtest pass
Change-Id: I50847fccad457c2b225ba7f2e1760b4dbb4d363f
2017-03-03 15:30:47 -08:00
Roshan Pius
590744b1c1 wifi(implementation): Clear all structs before conversion
Bug: 35445613
Test: Integration tests
Change-Id: I5c32ab580588f4521291ac8cb05ee42ce6e5bf31
2017-03-02 14:21:20 -08:00
Roshan Pius
208e46bbc2 wifi(implementation): Use strlen for size of ssid
Looks like the legacy hal uses a null termination for indicating the
size of ssid.

While there,
Use the helper function to convert wifi band from hidl to legacy.

Bug: 35765841
Test: Integration tests pass now.
Change-Id: Ie480f9d6735a21c5ccedfc68bfde5f0d920dcdc9
2017-03-01 22:48:07 -08:00
Roshan Pius
8c0c8e9aa0 wifi: Few minor interface changes
Changes in the CL:
1. Add the buckets scanned bitmask to bgscan.
2. exposed the legacy HAL constants for Bgscan in the HIDL interface.
3. Add a stop method for ring buffer logging.

Bug: 35752950
Bug: 33194311
Test: Compiles
Change-Id: Idb2031c33c5a237d7447410fb733f8e408a17288
2017-02-28 15:35:40 -08:00
Treehugger Robot
7d32288474 Merge "Add columns to namespace for vts target base test invocation" 2017-02-28 20:59:12 +00:00
Yuexi Ma
93d2541aae Add columns to namespace for vts target base test invocation
Test: make vts
Change-Id: Ia0284fbc11eadef572dd510bb5847160852bd517
2017-02-28 20:49:00 +00:00
Etan Cohen
a4b9cad4a1 Merge "[AWARE] Data-path negotiation update" 2017-02-28 20:35:41 +00:00
Yuexi Ma
5fd2ce668d Merge "change all vts hidl tests to use VtsHalHidlTargetBaseTest" 2017-02-28 18:15:18 +00:00
Etan Cohen
4ba6a7d3dd Merge "[AWARE] Data-path cipher API correction" 2017-02-28 14:08:32 +00:00
Yuexi Ma
178dfd5e29 change all vts hidl tests to use VtsHalHidlTargetBaseTest
Bug: 33385836
Test: mma
Change-Id: I660d6e0fce6422d87d4b227273a77c95d20ed3f2
2017-02-28 07:59:59 +00:00
Etan Cohen
3c5d8aee4d [AWARE] Data-path negotiation update
Data-path has two negotiation modes controlled during a
discovery session configuration as auto-accept or not (in
which case an event to framework is triggered).

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: I129ee48554daddb606bfd2c20ffdd867a6d998e0
2017-02-24 15:25:10 -08:00