Commit graph

281 commits

Author SHA1 Message Date
Roshan Pius
dbd83ef585 wifi(implementation): Create 1.1 interface package
1. Move the implementation in 1.0/default to 1.1/default.
2. Move all of the implementation to
android::hardware::V1_1::implementation namespace.
3. All of the header files include the android::hardware::V1_0 namespace
so that it can access the types from 1.0 package. ("using namespace" is
against Google style guide though :().
The other option to prefix each 1.0 type with the namespace name.
For example: V1_0::WifiStatus.
4. Added the implementation of the new 1.1 method
IWifiChip.setTxPowerLimit().
4. The executable name and the .rc still has 1.0 name in it to avoid
changing all the device.mk files.

TODO: Hookup to the new legacy HAL API.

Bug: 62437848
Test: mmm -j128 hardware/interfaces/wifi/1.1/default/
Test: Device boots up and able to connect to wifi networks.
Test: New VTS tests passes
Change-Id: Ib36282939e70b064f246041a03d8870f5cb6410e
2017-07-06 19:44:33 +00:00
Etan Cohen
c9836f95a1 [AWARE] Pass through full structure for end NDP command
The end NDP command is the only NAN HAL command which uses
a dynamically sized command structure. The original code
stripped out the non-static portions of the command - losing
the information. Modify the dynamically allocate at a lower
level of the shim.

Bug: 62569797
Test: integration tests now proceeding past failure point
Change-Id: I1732923aed64d7ec11649f0bad1731ab5bca13a0
2017-06-30 17:51:22 -07:00
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
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
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
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
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
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
Randy Pan
faaa481946 Merge changes from topic 'fuguWifi' into oc-dev am: 0d0fb634ec
am: d04ec801df

Change-Id: I47113c7cc6bb5cf95776ccb9e2b4384feff65896
2017-04-25 17:23:40 +00:00
Randy Pan
d04ec801df Merge changes from topic 'fuguWifi' into oc-dev
am: 0d0fb634ec

Change-Id: I2617fe15174d5ca808e48d21fd5d4f9ac0f99778
2017-04-25 17:20:51 +00:00
Randy Pan
0d0fb634ec Merge changes from topic 'fuguWifi' into oc-dev
* changes:
  Improve logger feature set handling
  Add capabilities for wifi_hal_legacy
2017-04-25 16:59:39 +00:00
Roshan Pius
9fcd2d0bfc Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev am: b09f65c4b1
am: 612d3dbff6

Change-Id: I7bedce6982d092f47a9f97725b42d1e24933d725
2017-04-25 03:15:27 +00:00
Roshan Pius
612d3dbff6 Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev
am: b09f65c4b1

Change-Id: Iadceaaca523f9dc115fbbfc25f7dd169b11edc8a
2017-04-25 03:13:27 +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