Commit graph

399 commits

Author SHA1 Message Date
Etan Cohen
c4d9f87f66 [AWARE] Actually shut-down functionality when destroying NAN iface
Destroying the interface doesn't actually execute any functions on
the legacy HAL - i.e. on the HAL side. This may leave state around -
a problem when next "re-enabling" the interface as well as possibly
a power issue.

Add code to actually disable Aware and to destroy interfaces. There
is no need to check on current status since calls will simply fail
quietly if there's nothing to disable and nothing to destroy.

Bug: 62632805
Test: integration non-concurrence test cases NonConcurrencyTest
Change-Id: I11e5bd6f3ed47f6d709ff360c9f4adf5f40234a5
2017-06-15 08:59:51 -07:00
Etan Cohen
a7a059ebbf [AWARE] Fix validity check on PMK + export PASSPHRASE lengths
Bug: 62376042
Test: unit tests + integrated (sl4a) tests
Change-Id: I4c0e19a21a268fe7f2d38e82f3743ac5a8e2c6cb
2017-06-07 20:54:31 +00:00
Steven Moreland
f04fdeb83e Update internal makefiles.
These makefiles are not in dev topic branches
or AOSP currently so they were not updated. This
update adds hidl-generated-module defaults.

Test: pass
Change-Id: Ie52c54877d795bf5358aa600e6d1a13a4f166d25
2017-06-05 17:47:36 -07:00
Roshan Pius
6bb0f4d240 Merge "wifi(vts): Add retry for HAL start" into oc-dev am: 4197ba0208
am: 647d7a8aec

Change-Id: I43f2d5f90c8e5bba71753cdb8587f5fd59233e30
2017-05-23 00:54:47 +00:00
Roshan Pius
647d7a8aec Merge "wifi(vts): Add retry for HAL start" into oc-dev
am: 4197ba0208

Change-Id: I6552049f92cafa2544bd5d24e806f5dd45ea9627
2017-05-23 00:45:05 +00:00
Roshan Pius
c802e09390 wifi(vts): Add retry for HAL start
Port of the retry logic added in HalDeviceManager for temporary IWifi.start()
failures when invoked immediately after IWifi.stop().

Bug: 38342536
Test: Run VTS tests
Change-Id: Ie58a08c45979bafa0c61fa1c8536a2c0a0cd8ed9
2017-05-22 15:29:03 -07:00
Steven Moreland
aeef430de6 Merge "Update makefiles." am: 9119d4ccd1 am: 242b2288d7 am: c6da54569f
am: 67b9ae7d9c

Change-Id: I8462abc85f4f87840c4cee13361290e42746ce82
2017-05-20 00:22:03 +00:00
Steven Moreland
67b9ae7d9c Merge "Update makefiles." am: 9119d4ccd1 am: 242b2288d7
am: c6da54569f

Change-Id: Ib7f7a9cdb64985d545443edac5bb8e9c169fc592
2017-05-20 00:19:40 +00:00
Treehugger Robot
9119d4ccd1 Merge "Update makefiles." 2017-05-20 00:05:51 +00:00
Steven Moreland
e4d318948a Update makefiles.
Adds default configuration to all hals.

Test: pass
Merged-In: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
Change-Id: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
2017-05-19 15:53:53 -07:00
Etan Cohen
b45e3db44d Merge "[WIFI] Remove dependency on vendor-specific library" am: 294340e1d4 am: ee9e5b843a
am: 664584f74e

Change-Id: Ie99267431e980e008b3b27b1f93a58377d94e648
2017-05-19 16:07:18 +00:00
Etan Cohen
294340e1d4 Merge "[WIFI] Remove dependency on vendor-specific library" 2017-05-19 15:52:21 +00:00
Steven Moreland
06c85d986a Update makefiles.
Adds default configuration to all hals.

Test: pass
Change-Id: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
2017-05-18 16:14:16 -07:00
Steven Moreland
320b5134b5 Update makefiles.
Note cleanspec required because of b/38205169 (genrule
doesn't delete output files before building, so when
removing some, they get stale).

Test: power vts test compiles
Change-Id: Ie7ef0fc3d943a75fe898238cf861fb7f99f4146b
Fixes: 35813011
2017-05-12 13:09:49 -07:00
Steven Moreland
01329bc539 Update makefiles for c++-sources and c++-headers. am: cb360c60d8 am: 4bd4e7fb3b am: 127b116fe5
am: 8e89a43590

Change-Id: I35950a57e220cdbe7672d5e814230fb73c154fac
2017-05-10 03:13:43 +00:00
Steven Moreland
8716f3063e Update makefiles for c++-sources and c++-headers.
Test: pass
Bug: 38174080
Merged-In: I683455736eed35e6ced24e2763c2bdb5fb6c9601
Change-Id: I683455736eed35e6ced24e2763c2bdb5fb6c9601
2017-05-09 19:58:45 -07:00
Steven Moreland
8e89a43590 Update makefiles for c++-sources and c++-headers. am: cb360c60d8 am: 4bd4e7fb3b
am: 127b116fe5

Change-Id: I3a2aa76acef0f0d1455bfad775e87e8089d357e8
2017-05-10 02:58:00 +00:00
Steven Moreland
cb360c60d8 Update makefiles for c++-sources and c++-headers.
Test: pass
Bug: 38174080
Change-Id: I683455736eed35e6ced24e2763c2bdb5fb6c9601
2017-05-09 14:34:19 -07:00
Etan Cohen
d810874948 [WIFI] Remove dependency on vendor-specific library
The libcld80211 is vendor-specific. Remove from dependecy list.

(cherry-pick of commit aa281aa266)

Bug: 37901207
Test: builds and runs
Merged-In: If251002c2dd7a0e30ca18620edd905a63217f28a
Change-Id: If251002c2dd7a0e30ca18620edd905a63217f28a
2017-05-09 13:55:36 -07:00
TreeHugger Robot
a677e93223 Merge "[AWARE] Passphrase limit check used incorrect limit" 2017-05-09 20:13:46 +00:00
Etan Cohen
fed081c7a5 [AWARE] Passphrase limit check used incorrect limit
Passphrase has a lower and upper limit. The uppper limit check
was using the incorrect (lower) limit value.

Bug: 38164425
Test: builds & CtsVerifier test passes
Change-Id: I8a58f46a9558f828f8ccfda07935fcf62285f8c3
2017-05-09 12:15:08 -07:00
Etan Cohen
6a4b943f25 Merge "[WIFI] Remove dependency on vendor-specific library" 2017-05-08 17:53:41 +00:00
Ningyuan Wang
9dfaf8852a Merge "Expect SUCCESS for tdls vts tests" into oc-dev am: 525e0ecb1a
am: 4149387a43

Change-Id: I7ac432309de61dc72869847b085f3b2b08bf318b
2017-05-05 17:52:02 +00:00
Ningyuan Wang
4149387a43 Merge "Expect SUCCESS for tdls vts tests" into oc-dev
am: 525e0ecb1a

Change-Id: Icdc6c2349baea024f5944d1ba04a914a6871dd7a
2017-05-05 17:43:42 +00:00
Ningyuan Wang
525e0ecb1a Merge "Expect SUCCESS for tdls vts tests" into oc-dev 2017-05-05 17:34:37 +00:00
Etan Cohen
aa281aa266 [WIFI] Remove dependency on vendor-specific library
The libcld80211 is vendor-specific. Remove from dependecy list.

Bug: 37901207
Test: builds and runs
Change-Id: If251002c2dd7a0e30ca18620edd905a63217f28a
2017-05-03 09:12:50 -07:00
Steven Moreland
2cd0d42d72 Remove redundant dependencies
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.

Test: links
Bug: 33276472
Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
2017-05-02 10:17:28 -07:00
Steven Moreland
090d6b15c4 Merge "Remove redundant dependencies" am: 62769b7196 am: 170e2e85a2 am: 5fba1db1d2
am: f90189a79f

Change-Id: I6ccecef314c8cd591108a0c739580eda2178425e
2017-05-01 23:53:56 +00:00
Steven Moreland
f90189a79f Merge "Remove redundant dependencies" am: 62769b7196 am: 170e2e85a2
am: 5fba1db1d2

Change-Id: I661fff75d140b4359af055a0f08f08ef33c889c3
2017-05-01 23:37:04 +00:00
Steven Moreland
ee1d248ae2 Remove redundant dependencies
android.hidl.base@1.0 and android.hidlmanager@1.0 are built into libhidltransport.

Test: links
Bug: 33276472
Change-Id: I424371932af129bba9d58dcf8652c64297f35f05
2017-05-01 09:47:58 -07:00
Ningyuan Wang
8c2fd98dea Merge "Fix RssiMonitoring VTS tests" into oc-dev am: 5c604fc1d4
am: c3191c6c84

Change-Id: I9f41f2db9b511c49f6bcf6d813b59d26e747687c
2017-04-29 20:54:03 +00:00
Ningyuan Wang
c3191c6c84 Merge "Fix RssiMonitoring VTS tests" into oc-dev
am: 5c604fc1d4

Change-Id: I2dd80498e6c3aa3ad05656229acfd04b7f937337
2017-04-29 20:49:34 +00:00
TreeHugger Robot
5c604fc1d4 Merge "Fix RssiMonitoring VTS tests" into oc-dev 2017-04-29 20:44:28 +00:00
Etan Cohen
e041501864 Merge "[HIDL][AWARE] Check for and fix corrupted char[] from legacy HAL" 2017-04-28 00:37:46 +00:00
Ningyuan Wang
3d9b0176dc Expect SUCCESS for tdls vts tests
Bug: 37710535
Test: compile, run tdls tests
Change-Id: I19c1e2b6726839391febce826ac087ccee7e7717
2017-04-27 16:44:49 -07:00
Steven Moreland
b05c3ae71a Merge "Link libwifi-system-iface instead" 2017-04-27 21:58:19 +00:00
Wei Wang
da18591c23 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev am: 1c6cb69c37
am: 59772b92c8

Change-Id: I2dca6891828a3b28bc1ba06787ad3e7d6169650e
2017-04-27 18:56:06 +00:00
Wei Wang
59772b92c8 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev
am: 1c6cb69c37

Change-Id: I9aa375f1950c6749e9c855a9edb50d6314249c07
2017-04-27 18:45:55 +00:00
Wei Wang
1c6cb69c37 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev 2017-04-27 18:36:51 +00:00
Etan Cohen
bbc0f09786 [HIDL][AWARE] Check for and fix corrupted char[] from legacy HAL
Check that char[] from legacy HAL are:
- Null terminated
- ASCII (truncate up-to first non-ASCII)

Bug: 37704662
Test: integration (sl4a) tests passing (up-to other issues)
Change-Id: I84cf09923594b3a5c0dfa5267edd844fb375c595
2017-04-27 08:31:16 -07:00
Randy Pan
4f130f7ce7 Revert "Add capabilities for wifi_hal_legacy" am: b666cdae0f
am: 8b60a757ac

Change-Id: I40e08f5c56c34c85929aaf2404c92d05738ca407
2017-04-27 03:53:48 +00:00
Randy Pan
8b60a757ac Revert "Add capabilities for wifi_hal_legacy"
am: b666cdae0f

Change-Id: I870f99b5c9446f27663dd2ca72396f29667eb690
2017-04-27 03:50:28 +00:00
Wei Wang
8c50b5a38f Clean up after RTT operations finished. (1/2)
Bug: 36185358

Test: Manual with RTT app.

Change-Id: Ic9c9d020acaf384664a9881ec2806f941b7a0c1c
2017-04-26 19:30:25 -07:00
Ningyuan Wang
4f5dba49f4 Merge changes from topic 'fix_configure_chip' into oc-dev am: 5eca115b68
am: 24e03c6303

Change-Id: Ie888172fe36ca78e218b4fdaaebd6c2ae592eddc
2017-04-27 01:24:16 +00:00
Randy Pan
b666cdae0f Revert "Add capabilities for wifi_hal_legacy"
This reverts commit 1addbeaa46.

It breaks WiFi connectivity on Fugu.

Bug: 37713566
Test: Able to connect to GoogleGuest on Fugu.
2017-04-26 18:19:44 -07:00
Ningyuan Wang
24e03c6303 Merge changes from topic 'fix_configure_chip' into oc-dev
am: 5eca115b68

Change-Id: Ice788fc3d3c9226fa47df0b598927ea4a349332e
2017-04-27 01:13:52 +00:00
TreeHugger Robot
5eca115b68 Merge changes from topic 'fix_configure_chip' into oc-dev
* changes:
  Fix configureChip() VTS test
  Return ERROR_NOT_SUPPORTED when configureChip() is used for reconfiguration
2017-04-27 00:56:34 +00:00
Ningyuan Wang
f8bb8d7fc7 Fix configureChip() VTS test
Bug: 36562856
Bug: 37446050
Test: compile, vts test pass

Change-Id: I99ee0336d9cc11329de560daf26216ac15e5a0a9
2017-04-26 13:40:13 -07:00
Ningyuan Wang
b1ad3a7bf1 Return ERROR_NOT_SUPPORTED when configureChip() is used for reconfiguration
Bug: 36562856
Bug: 37446050
Test: compile, VTS test fail as expected
Change-Id: I895dd0d6e96b0d0a2b429c3a68be1f7c7e32a7e3
2017-04-26 10:44:58 -07:00
Logan Chien
8189245080 Link libwifi-system-iface instead
This commit replaces libwifi-system with libwifi-system-iface because
libwifi-system is a framework-only library.

Bug: 37429084
Test: Sailfish builds, boots, and wifi works.
Change-Id: I2b7c68d60ee84d3dba7500d01323365a699e4ad4
2017-04-26 15:44:00 +08:00