Commit Graph

20663 Commits

Author SHA1 Message Date
Roshan Pius
4f4a3729af wifi(interface): Add wifi debug ring buffer related interface am: e3a02b07b6
am: ae8029852e

Change-Id: I6dfc82564eb2d23784737477f290f7cd34b195cc
2016-11-17 01:04:51 +00:00
Roshan Pius
80cb8bd1a9 wifi(interface): Move all StaIface types to types.hal am: 5e25466ebf
am: c4b36d8100

Change-Id: I6d3464070db33a4bdb9314a0cd634bb5117da154
2016-11-17 01:04:47 +00:00
Roshan Pius
219f010a3d wifi(interface): Fix compilation failure am: e03f736ca0
am: 55aee95115

Change-Id: I4604212f1078bf98473a716b4fbb77700e18919b
2016-11-17 01:04:46 +00:00
Roshan Pius
b5db64a5c7 wifi(interface): Rtt controller HIDL interface am: 18eec81adc
am: 4c0a4e5ae4

Change-Id: Ief9aee4e63ba92b2d88666b25af264fb764737a2
2016-11-17 01:04:45 +00:00
Roshan Pius
9fa7e1ccdb wifi(interface): NAN HIDL interface am: 120f94c594
am: ea3058f9c1

Change-Id: I09c304daa159bef7de5c65daab8a62a58242d16e
2016-11-17 01:04:44 +00:00
Roshan Pius
f958bb37e7 wifi(interface): Link layer stats collection am: 18680b7aff
am: d195f76d21

Change-Id: I59f6d8d38e7d37985cc04e4c8a14551bccc368b1
2016-11-17 01:04:43 +00:00
Roshan Pius
9658a13c46 wifi(interface): Make methods synchronous am: a52dc7322d
am: 0f0a37f375

Change-Id: I8e57a4c91cf6aefab8f335a74375814c160a62b2
2016-11-17 01:04:42 +00:00
Roshan Pius
c6d8510413 wifi(interface): Add status for every method am: 1f9073cfcb
am: 556482ab99

Change-Id: I1a7b8c2408f66b5d289c4146b0d2768840ba111e
2016-11-17 01:04:41 +00:00
Roshan Pius
b5e5302fe9 wifi(interface): Add gscan/apf related API's am: 7b77747bb5
am: 1f212a6566

Change-Id: I6b3840841174e4c032d3160dade59b391ed62f73
2016-11-17 01:04:39 +00:00
Roshan Pius
23baa7c2a8 wifi: Remove passthrough mode
am: 23f9f30344

Change-Id: I54fe1971eb19c9e8e756f001424d28fe72189f0c
2016-11-17 00:57:06 +00:00
Roshan Pius
9fe32608f5 wifi: Stub implementation of WifiNanIface methods
am: 0c92d446a2

Change-Id: I8be74c7b452e1a2fc36e86a55e1d8e749b3cdb70
2016-11-17 00:57:05 +00:00
Roshan Pius
ee5137a3d1 wifi: Stub implementation of WifiRttController methods
am: 7913f5e49d

Change-Id: I45a075986e47dd3ed6feb5735c1fc8e396bf3ad0
2016-11-17 00:57:03 +00:00
Roshan Pius
e65ad43046 wifi: Stub implementation of WifiStaIface methods
am: a04ba3fcb8

Change-Id: Ie61978114eb86f11e3e8f56e15a6d4293bbf4c88
2016-11-17 00:57:02 +00:00
Roshan Pius
3e8793aadf wifi: Stub implementation of WifiChip methods
am: 7d08d7a16d

Change-Id: If81d1003542b4131448c11df5a3e7c00a6c00fab
2016-11-17 00:57:01 +00:00
Roshan Pius
dd5c2b8990 wifi: Use hidl_return_util functions in Iface/Rtt
am: 907d4a234d

Change-Id: I224f3edf8aefe3e47e1604b457e5aa57b9c7a301
2016-11-17 00:57:00 +00:00
Roshan Pius
7022158220 wifi: Use hidl_return_util functions in WifiChip
am: 3c86852a2e

Change-Id: I69b20794be77270122718960ce8771ce1f451d40
2016-11-17 00:56:59 +00:00
Roshan Pius
1ab8395a21 wifi: Helper functions for invoking hidl cont callbacks
am: 5647665827

Change-Id: Id86ad2d1bf0a711622a5c1300437b027d08790d3
2016-11-17 00:56:58 +00:00
Roshan Pius
815e61624f wifi: Make methods deliver status synchronously (3/3)
am: 734fea0d98

Change-Id: I749781becee892317f741ca561ee825546870163
2016-11-17 00:56:57 +00:00
Roshan Pius
dbfb6017fb wifi: Make methods deliver status synchronously (2/3)
am: 5c05546fc9

Change-Id: Icd12fff4544ffadd62cd8a040a37a6542b829695
2016-11-17 00:56:56 +00:00
Roshan Pius
40dac08a47 wifi: Make methods deliver status synchronously (1/3)
am: 503582ed94

Change-Id: I868296a715c673937a1ce17100b392ef02b3d196
2016-11-17 00:56:55 +00:00
Roshan Pius
5aaf00608a wifi: Rename failure_reason_util to wifi_status_util
am: 1922482a5c

Change-Id: I32955402c44c8d4f6a961241d412efaeba508374
2016-11-17 00:56:53 +00:00
Roshan Pius
bedd03bc48 wifi(interface): Add status for all methods
am: 02caa1b821

Change-Id: I96bd199b2d739d5371b9f0cd761440df7cdc6eb3
2016-11-17 00:56:52 +00:00
Roshan Pius
3dd396eb5e wifi(interface): Add wifi host debug wake up reason stats
am: e0724f98b0

Change-Id: Ife791e5b1ca8046713a202e49b0a426b2c9abcae
2016-11-17 00:56:49 +00:00
Roshan Pius
17fe2cc0e4 wifi(interface): Add wifi debug packet fate related interface
am: fe9ad36cb2

Change-Id: I63b0ff50906590a4af3b1854c89cd47ea12506cb
2016-11-17 00:56:48 +00:00
Roshan Pius
ae8029852e wifi(interface): Add wifi debug ring buffer related interface
am: e3a02b07b6

Change-Id: I1cac68e450cc87b8674ca00120964bf9dfcc0a9f
2016-11-17 00:56:47 +00:00
Roshan Pius
c4b36d8100 wifi(interface): Move all StaIface types to types.hal
am: 5e25466ebf

Change-Id: I2815c82897e31ea35fd6d0ae3e2e3feb20e750b6
2016-11-17 00:56:46 +00:00
Roshan Pius
55aee95115 wifi(interface): Fix compilation failure
am: e03f736ca0

Change-Id: I687c4da68d93a7657991eb92cecb3f4e4c4d4986
2016-11-17 00:56:45 +00:00
Roshan Pius
4c0a4e5ae4 wifi(interface): Rtt controller HIDL interface
am: 18eec81adc

Change-Id: Idb2a967fe289216ad5e37a4f04ac15be7a97c215
2016-11-17 00:56:44 +00:00
Roshan Pius
ea3058f9c1 wifi(interface): NAN HIDL interface
am: 120f94c594

Change-Id: I22788dd6cd85b18c06c7bca7de53e5c1fabf5d1f
2016-11-17 00:56:43 +00:00
Roshan Pius
d195f76d21 wifi(interface): Link layer stats collection
am: 18680b7aff

Change-Id: Id21f5179208d3b5671541747894fdd875d43d8f0
2016-11-17 00:56:42 +00:00
Roshan Pius
0f0a37f375 wifi(interface): Make methods synchronous
am: a52dc7322d

Change-Id: Iee14349de899301b1b8b7ee8b1b0e24d61f5ac2c
2016-11-17 00:56:41 +00:00
Roshan Pius
556482ab99 wifi(interface): Add status for every method
am: 1f9073cfcb

Change-Id: Ic839dad94f04d974f49f67ffd125ac302a9b4fea
2016-11-17 00:56:40 +00:00
Roshan Pius
1f212a6566 wifi(interface): Add gscan/apf related API's
am: 7b77747bb5

Change-Id: Ib5efe1acd06649e65c88a3721e455725b2206778
2016-11-17 00:56:38 +00:00
Steven Moreland
bf0b586bbc Add vts files and driver for light hal.
Bug: 32022457
Test: compiles
Change-Id: I5141d80996d51e41930c7398aa9aa4048b365f9b
2016-11-16 15:23:49 -08:00
Roshan Pius
6cedc97e95 wifi: Move legacy hal types to a new namespace (2/2)
Changes in HIDL interface obejcts to use the new namespace for legacy
HAL.

Bug: 32242225
Test: Compiles
Change-Id: I7d0e9cee8656bd779a24d9eaede415317dceaf9b
2016-11-16 14:57:08 -08:00
Roshan Pius
955542e9a2 wifi: Move legacy hal types to a new namespace (1/2)
To prevent typename conflicts between the types in
"hardware_legacy/wifi_hal.h" and the HIDL interface,
Move all the legacy HAL types under a separate namespace (legacy_hal).

This is especially needed for Nan data types. Some of the typenames are
exactly the same in the legacy HAL header file and the HIDL interface.

Related changes,
Remove the use of |HalTool| class. This causes compilation failures
because it tries to include wifi_hal.h as well (but, that is now wrapped
inside a namespace).

Bug: 32242225
Test: Compiles
Change-Id: I937877798b81aea280d1797833745ae97fb02dc9
2016-11-16 14:57:07 -08:00
Roshan Pius
511cc493e3 wifi: Changes to WifiLegacy Hal
Changes in the CL:
a. Removed the usage of wifi_status_util in WifiLegacyHal. The
|legacyErrorToString| log will be done in the HIDL object. This is to
remove any reference of |WifiStatus|
b. Moved the cleanup of function pointers to a separate helper function
|invalidate|.
c. Moved static constants out of WifiLegacyHal class.

Bug: 32505551
Test: Compiles
Change-Id: I9dc3900c40cf30de2c0a4376d4de2b08076e2b5f
2016-11-16 14:57:07 -08:00
Roshan Pius
23f9f30344 wifi: Remove passthrough mode
Wifi HAL is not going to support HIDL passthrough mode. So, remove the
target definition.

Bug: 32376894
Test: Compiles
Change-Id: I43740541f576746826d75c6ac48a11bb2a619227
2016-11-16 14:57:07 -08:00
Roshan Pius
0c92d446a2 wifi: Stub implementation of WifiNanIface methods
Bug: 31991076
Test: Compiles
Change-Id: Ia3723a14af20176c08e6e466e8b55bb32c8f9d41
2016-11-16 14:57:07 -08:00
Roshan Pius
7913f5e49d wifi: Stub implementation of WifiRttController methods
Bug: 31991232
Test: Compiles
Change-Id: I90f803ae19746ef844280cd8df96987e350f8a3f
2016-11-16 14:57:07 -08:00
Roshan Pius
a04ba3fcb8 wifi: Stub implementation of WifiStaIface methods
Bug: 32221997
Bug: 31991459
Test: Compiles
Change-Id: Iefc68958befc549fd9100b29f84cb6e6d73efe95
2016-11-16 14:57:07 -08:00
Roshan Pius
7d08d7a16d wifi: Stub implementation of WifiChip methods
Bug: 32221997
Test: Compiles
Change-Id: I627a05ce17d8b0e87101f395c3b3d6c10d3c440c
2016-11-16 14:57:07 -08:00
Roshan Pius
907d4a234d wifi: Use hidl_return_util functions in Iface/Rtt
Modify the WifiIface & WifiRttController methods to the use the new helper
functions.

Bug: 32337072
Test: Compiles
Change-Id: I8ce5450f3012ea3ad699db3c780c0bf985492aad
2016-11-16 14:57:07 -08:00
Roshan Pius
3c86852a2e wifi: Use hidl_return_util functions in WifiChip
Modify the WifiChip methods to the use the new helper functions.

Also,
1. Modify the WifiLegacyHal.requestDriverMemoryDump &
WifiLegacyHal.requestDriverMemoryDump to return a vector of |uint8_t|
instead of |char| to avoid unnecessary typecasting in the HIDL methods.
2. Remove |createHidlVecOfIfaceNames| helper function as most of the
necessary conversion should be handled by hidl_vec/hidl_string
constructors.

Bug: 32337072
Test: Compiles

Change-Id: Ic0b7aa2a5a078e53d5bc5bef18995a3cc0f548a1
2016-11-16 14:57:07 -08:00
Roshan Pius
5647665827 wifi: Helper functions for invoking hidl cont callbacks
The helper functions are used to invoke an internal method which
implements the functionality and then invoke the HIDL callback
with the return values.

HIDL's auto-generated code uses on-stack callbacks to return
non-primitive/multiple values from HIDL methods. This is unwieldy and
the implementation of the method's functionality gets mixed up with the
semantics of handling these callbacks. This tries to hide the semantics
of HIDL auto-generated code from the functionality.

Converted all IWifi methods to use these new helper functions.

Bug: 32337072
Test: Compiles
Change-Id: I57cbafcc2ecb52ec5055f4bd80bc064bd438b850
2016-11-16 14:57:07 -08:00
Roshan Pius
734fea0d98 wifi: Make methods deliver status synchronously (3/3)
Make all the |IWifiIface|/|IWifiRttController| HIDL interface
methods return a synchronous status code. Change from using the event
callbacks to the synchronous callbacks for delivering status.

While there,
Use the default std::string to hidl_string constructor in status
callbacks.

Bug: 32056230
Bug: 32061909
Test: Compiles
Change-Id: Ifa06a11afb085bfd6684f7b997fb730d192018ea
2016-11-16 14:57:07 -08:00
Roshan Pius
5c05546fc9 wifi: Make methods deliver status synchronously (2/3)
Make all the |IWifiChip| HIDL interface methods return a synchronous
status code. Change from using the event callbacks to the synchronous
callbacks for delivering status.

While there,
1. Use std::tie to retrive values out of the legacy HAL functions returning
a pair.
2. Use the std::vector to hidl_vec constructor for returning vector of
ifnames.

Bug: 32056230
Bug: 32061909
Test: Compiles
Change-Id: Iac27521be17cd9852df04ad7d412e09160a08d33
2016-11-16 14:57:07 -08:00
Roshan Pius
503582ed94 wifi: Make methods deliver status synchronously (1/3)
Make the following |IWifi| HIDL interface methods return a synchronous
status code:
a) start()
b) stop()
The other methods in this interface do not have a failure case and hence
not returning a status code.

This changes the nature of event callbacks registered for each
interface. Previously, every operation's status was sent to all the
registered event callbacks. Now, only the caller is notified of the
operation's status via the passed synchronous callbacks. The event
callbacks are now used to broadcast only important state changes/events.

Bug: 32056230
Bug: 32061909
Test: Compiles
Change-Id: I95dc3fa139ac3ac7500d81e9e0dbc4f4de04e127
2016-11-16 14:57:02 -08:00
TreeHugger Robot
4a9f187d9f Merge "Add .rc for vehicle HAL" 2016-11-16 21:50:46 +00:00
Roshan Pius
c12157d7e8 supplicant(interface): Fix compilation failure am: 9e01c51793 am: 211c3b874c am: 61e50c20e2
am: d949d9cd1d

Change-Id: Ie282d34d16d9a404da100acc46a1bef506a2f559
2016-11-16 19:23:03 +00:00