OSDN Git Service

android-x86/hardware-interfaces.git
7 years agowifi: Stub implementation of WifiStaIface methods am: a04ba3fcb8 am: e65ad43046
Roshan Pius [Thu, 17 Nov 2016 01:12:35 +0000 (01:12 +0000)]
wifi: Stub implementation of WifiStaIface methods am: a04ba3fcb8 am: e65ad43046
am: 542e9b0b90

Change-Id: I63bb82726f9ba55473565044c977569df1ccec4b

7 years agowifi: Stub implementation of WifiChip methods am: 7d08d7a16d am: 3e8793aadf
Roshan Pius [Thu, 17 Nov 2016 01:12:34 +0000 (01:12 +0000)]
wifi: Stub implementation of WifiChip methods am: 7d08d7a16d am: 3e8793aadf
am: eb00f23344

Change-Id: I570ca923b9c7f4c04837093ecb27e194d1d48037

7 years agowifi: Use hidl_return_util functions in Iface/Rtt am: 907d4a234d am: dd5c2b8990
Roshan Pius [Thu, 17 Nov 2016 01:12:32 +0000 (01:12 +0000)]
wifi: Use hidl_return_util functions in Iface/Rtt am: 907d4a234d am: dd5c2b8990
am: e3e14bee9c

Change-Id: If44ed9dbf55f89fcb26f4cb143980a42cb8569ef

7 years agowifi: Use hidl_return_util functions in WifiChip am: 3c86852a2e am: 7022158220
Roshan Pius [Thu, 17 Nov 2016 01:12:31 +0000 (01:12 +0000)]
wifi: Use hidl_return_util functions in WifiChip am: 3c86852a2e am: 7022158220
am: 01f66f52f2

Change-Id: If3b250698bfe01822ff63a2f6e733fb01f86d19c

7 years agowifi: Helper functions for invoking hidl cont callbacks am: 5647665827 am: 1ab8395a21
Roshan Pius [Thu, 17 Nov 2016 01:12:30 +0000 (01:12 +0000)]
wifi: Helper functions for invoking hidl cont callbacks am: 5647665827 am: 1ab8395a21
am: 8a9ab30d5c

Change-Id: I04bc3b3c5138e4ba6830a50967556caecf4118fc

7 years agowifi: Make methods deliver status synchronously (3/3) am: 734fea0d98 am: 815e61624f
Roshan Pius [Thu, 17 Nov 2016 01:12:29 +0000 (01:12 +0000)]
wifi: Make methods deliver status synchronously (3/3) am: 734fea0d98 am: 815e61624f
am: 8e951f23c6

Change-Id: I4f0f75719f6cbf2ac934bc8b7026690aaa4654a2

7 years agowifi: Make methods deliver status synchronously (2/3) am: 5c05546fc9 am: dbfb6017fb
Roshan Pius [Thu, 17 Nov 2016 01:12:27 +0000 (01:12 +0000)]
wifi: Make methods deliver status synchronously (2/3) am: 5c05546fc9 am: dbfb6017fb
am: 611487ebb7

Change-Id: I3ac9f079c7d1c9e0f9ebc886d946e4362a0f8007

7 years agowifi: Make methods deliver status synchronously (1/3) am: 503582ed94 am: 40dac08a47
Roshan Pius [Thu, 17 Nov 2016 01:12:26 +0000 (01:12 +0000)]
wifi: Make methods deliver status synchronously (1/3) am: 503582ed94 am: 40dac08a47
am: f3b2c4ab07

Change-Id: Ie196e61e3f49f18a7f0e0a3a91681dbfd21ec9a4

7 years agowifi: Rename failure_reason_util to wifi_status_util am: 1922482a5c am: 5aaf00608a
Roshan Pius [Thu, 17 Nov 2016 01:12:24 +0000 (01:12 +0000)]
wifi: Rename failure_reason_util to wifi_status_util am: 1922482a5c am: 5aaf00608a
am: e9d9899587

Change-Id: I80451107271a98a1e36280dee8fc452c32048ae1

7 years agowifi(interface): Add status for all methods am: 02caa1b821 am: bedd03bc48
Roshan Pius [Thu, 17 Nov 2016 01:12:23 +0000 (01:12 +0000)]
wifi(interface): Add status for all methods am: 02caa1b821 am: bedd03bc48
am: 6a908348b3

Change-Id: Ic7c92a7129245f469fe6e51d072fddca515f924c

7 years agowifi(interface): Add wifi host debug wake up reason stats am: e0724f98b0 am: 3dd396eb5e
Roshan Pius [Thu, 17 Nov 2016 01:12:22 +0000 (01:12 +0000)]
wifi(interface): Add wifi host debug wake up reason stats am: e0724f98b0 am: 3dd396eb5e
am: 75ea50e963

Change-Id: Id08d5399fbaf5069bd53c423f8af10c4c06520db

7 years agowifi(interface): Add wifi debug packet fate related interface am: fe9ad36cb2 am:...
Roshan Pius [Thu, 17 Nov 2016 01:12:20 +0000 (01:12 +0000)]
wifi(interface): Add wifi debug packet fate related interface am: fe9ad36cb2 am: 17fe2cc0e4
am: ed5be10c54

Change-Id: I22f983054abdcd4301472e9bb636cf7da52b0548

7 years agowifi(interface): Add wifi debug ring buffer related interface am: e3a02b07b6 am:...
Roshan Pius [Thu, 17 Nov 2016 01:12:19 +0000 (01:12 +0000)]
wifi(interface): Add wifi debug ring buffer related interface am: e3a02b07b6 am: ae8029852e
am: 4f4a3729af

Change-Id: I45587a1c42f8df51028397cf6da5d038602c8d8a

7 years agowifi(interface): Move all StaIface types to types.hal am: 5e25466ebf am: c4b36d8100
Roshan Pius [Thu, 17 Nov 2016 01:12:18 +0000 (01:12 +0000)]
wifi(interface): Move all StaIface types to types.hal am: 5e25466ebf am: c4b36d8100
am: 80cb8bd1a9

Change-Id: I9c869e332dbf92e4175f8521c956790b9db38ecf

7 years agowifi(interface): Fix compilation failure am: e03f736ca0 am: 55aee95115
Roshan Pius [Thu, 17 Nov 2016 01:12:17 +0000 (01:12 +0000)]
wifi(interface): Fix compilation failure am: e03f736ca0 am: 55aee95115
am: 219f010a3d

Change-Id: I0483e1ca15c0187dc5484b299eac117e07a31109

7 years agowifi(interface): Rtt controller HIDL interface am: 18eec81adc am: 4c0a4e5ae4
Roshan Pius [Thu, 17 Nov 2016 01:12:16 +0000 (01:12 +0000)]
wifi(interface): Rtt controller HIDL interface am: 18eec81adc am: 4c0a4e5ae4
am: b5db64a5c7

Change-Id: I63495ce35c9d438deba45b0a8e934c858bd36bc6

7 years agowifi(interface): NAN HIDL interface am: 120f94c594 am: ea3058f9c1
Roshan Pius [Thu, 17 Nov 2016 01:12:15 +0000 (01:12 +0000)]
wifi(interface): NAN HIDL interface am: 120f94c594 am: ea3058f9c1
am: 9fa7e1ccdb

Change-Id: Id390b2b851bedafb603bcade94a3aafe36e43b43

7 years agowifi(interface): Link layer stats collection am: 18680b7aff am: d195f76d21
Roshan Pius [Thu, 17 Nov 2016 01:12:14 +0000 (01:12 +0000)]
wifi(interface): Link layer stats collection am: 18680b7aff am: d195f76d21
am: f958bb37e7

Change-Id: I99d97afe4111a0b1a2070205bdc47ec9fa7e5001

7 years agowifi(interface): Make methods synchronous am: a52dc7322d am: 0f0a37f375
Roshan Pius [Thu, 17 Nov 2016 01:12:12 +0000 (01:12 +0000)]
wifi(interface): Make methods synchronous am: a52dc7322d am: 0f0a37f375
am: 9658a13c46

Change-Id: I93a49ff67a2f15301bb09c58f9bde929a6cf5b2e

7 years agowifi(interface): Add status for every method am: 1f9073cfcb am: 556482ab99
Roshan Pius [Thu, 17 Nov 2016 01:12:11 +0000 (01:12 +0000)]
wifi(interface): Add status for every method am: 1f9073cfcb am: 556482ab99
am: c6d8510413

Change-Id: I1a9984d0e0810c38592a43a58260c63d034ddfb4

7 years agowifi(interface): Add gscan/apf related API's am: 7b77747bb5 am: 1f212a6566
Roshan Pius [Thu, 17 Nov 2016 01:12:10 +0000 (01:12 +0000)]
wifi(interface): Add gscan/apf related API's am: 7b77747bb5 am: 1f212a6566
am: b5e5302fe9

Change-Id: Ia1aa2ffdb9eca43cf961eb70faa670ab700b1f89

7 years agowifi: Stub implementation of WifiStaIface methods am: a04ba3fcb8
Roshan Pius [Thu, 17 Nov 2016 01:05:07 +0000 (01:05 +0000)]
wifi: Stub implementation of WifiStaIface methods am: a04ba3fcb8
am: e65ad43046

Change-Id: I10a30ade5d64f6c631005e68261d6984ee180f7f

7 years agowifi: Stub implementation of WifiChip methods am: 7d08d7a16d
Roshan Pius [Thu, 17 Nov 2016 01:05:06 +0000 (01:05 +0000)]
wifi: Stub implementation of WifiChip methods am: 7d08d7a16d
am: 3e8793aadf

Change-Id: I31fbd1d6d280bf64b041926df89a46d6032a77b3

7 years agowifi: Use hidl_return_util functions in Iface/Rtt am: 907d4a234d
Roshan Pius [Thu, 17 Nov 2016 01:05:04 +0000 (01:05 +0000)]
wifi: Use hidl_return_util functions in Iface/Rtt am: 907d4a234d
am: dd5c2b8990

Change-Id: I7f81c54ba76c2e843ca9ce52271178b09a66f65e

7 years agowifi: Use hidl_return_util functions in WifiChip am: 3c86852a2e
Roshan Pius [Thu, 17 Nov 2016 01:05:03 +0000 (01:05 +0000)]
wifi: Use hidl_return_util functions in WifiChip am: 3c86852a2e
am: 7022158220

Change-Id: I8c28ac7ce2799fdbfd7bcf76c0d1bf47365fddce

7 years agowifi: Helper functions for invoking hidl cont callbacks am: 5647665827
Roshan Pius [Thu, 17 Nov 2016 01:05:02 +0000 (01:05 +0000)]
wifi: Helper functions for invoking hidl cont callbacks am: 5647665827
am: 1ab8395a21

Change-Id: If7ec3758290dc84797ffecd882f8f95763d3ae0d

7 years agowifi: Make methods deliver status synchronously (3/3) am: 734fea0d98
Roshan Pius [Thu, 17 Nov 2016 01:05:00 +0000 (01:05 +0000)]
wifi: Make methods deliver status synchronously (3/3) am: 734fea0d98
am: 815e61624f

Change-Id: I6cebc23d5f188c666a5f09c52115dd3e34328b77

7 years agowifi: Make methods deliver status synchronously (2/3) am: 5c05546fc9
Roshan Pius [Thu, 17 Nov 2016 01:04:59 +0000 (01:04 +0000)]
wifi: Make methods deliver status synchronously (2/3) am: 5c05546fc9
am: dbfb6017fb

Change-Id: I9e0a3e100fd3a7bb3fe4f32e86ee3b538fa7eba4

7 years agowifi: Make methods deliver status synchronously (1/3) am: 503582ed94
Roshan Pius [Thu, 17 Nov 2016 01:04:58 +0000 (01:04 +0000)]
wifi: Make methods deliver status synchronously (1/3) am: 503582ed94
am: 40dac08a47

Change-Id: I9f240491dadbac1cd6770542b35b6d578afba6d9

7 years agowifi: Rename failure_reason_util to wifi_status_util am: 1922482a5c
Roshan Pius [Thu, 17 Nov 2016 01:04:56 +0000 (01:04 +0000)]
wifi: Rename failure_reason_util to wifi_status_util am: 1922482a5c
am: 5aaf00608a

Change-Id: I1453209ebf7f48fb9a202abd1a95af6de40b05c6

7 years agowifi(interface): Add status for all methods am: 02caa1b821
Roshan Pius [Thu, 17 Nov 2016 01:04:55 +0000 (01:04 +0000)]
wifi(interface): Add status for all methods am: 02caa1b821
am: bedd03bc48

Change-Id: I7e93064f3122294e6a222026130bfae47ff492a8

7 years agowifi(interface): Add wifi host debug wake up reason stats am: e0724f98b0
Roshan Pius [Thu, 17 Nov 2016 01:04:54 +0000 (01:04 +0000)]
wifi(interface): Add wifi host debug wake up reason stats am: e0724f98b0
am: 3dd396eb5e

Change-Id: Ib132c7ac5084a9f066647e0601f5626ec2b51e63

7 years agowifi(interface): Add wifi debug packet fate related interface am: fe9ad36cb2
Roshan Pius [Thu, 17 Nov 2016 01:04:53 +0000 (01:04 +0000)]
wifi(interface): Add wifi debug packet fate related interface am: fe9ad36cb2
am: 17fe2cc0e4

Change-Id: I652b582cf1d88ec1214a83877be7e6abdcdc9f11

7 years agowifi(interface): Add wifi debug ring buffer related interface am: e3a02b07b6
Roshan Pius [Thu, 17 Nov 2016 01:04:51 +0000 (01:04 +0000)]
wifi(interface): Add wifi debug ring buffer related interface am: e3a02b07b6
am: ae8029852e

Change-Id: I6dfc82564eb2d23784737477f290f7cd34b195cc

7 years agowifi(interface): Move all StaIface types to types.hal am: 5e25466ebf
Roshan Pius [Thu, 17 Nov 2016 01:04:47 +0000 (01:04 +0000)]
wifi(interface): Move all StaIface types to types.hal am: 5e25466ebf
am: c4b36d8100

Change-Id: I6d3464070db33a4bdb9314a0cd634bb5117da154

7 years agowifi(interface): Fix compilation failure am: e03f736ca0
Roshan Pius [Thu, 17 Nov 2016 01:04:46 +0000 (01:04 +0000)]
wifi(interface): Fix compilation failure am: e03f736ca0
am: 55aee95115

Change-Id: I4604212f1078bf98473a716b4fbb77700e18919b

7 years agowifi(interface): Rtt controller HIDL interface am: 18eec81adc
Roshan Pius [Thu, 17 Nov 2016 01:04:45 +0000 (01:04 +0000)]
wifi(interface): Rtt controller HIDL interface am: 18eec81adc
am: 4c0a4e5ae4

Change-Id: Ief9aee4e63ba92b2d88666b25af264fb764737a2

7 years agowifi(interface): NAN HIDL interface am: 120f94c594
Roshan Pius [Thu, 17 Nov 2016 01:04:44 +0000 (01:04 +0000)]
wifi(interface): NAN HIDL interface am: 120f94c594
am: ea3058f9c1

Change-Id: I09c304daa159bef7de5c65daab8a62a58242d16e

7 years agowifi(interface): Link layer stats collection am: 18680b7aff
Roshan Pius [Thu, 17 Nov 2016 01:04:43 +0000 (01:04 +0000)]
wifi(interface): Link layer stats collection am: 18680b7aff
am: d195f76d21

Change-Id: I59f6d8d38e7d37985cc04e4c8a14551bccc368b1

7 years agowifi(interface): Make methods synchronous am: a52dc7322d
Roshan Pius [Thu, 17 Nov 2016 01:04:42 +0000 (01:04 +0000)]
wifi(interface): Make methods synchronous am: a52dc7322d
am: 0f0a37f375

Change-Id: I8e57a4c91cf6aefab8f335a74375814c160a62b2

7 years agowifi(interface): Add status for every method am: 1f9073cfcb
Roshan Pius [Thu, 17 Nov 2016 01:04:41 +0000 (01:04 +0000)]
wifi(interface): Add status for every method am: 1f9073cfcb
am: 556482ab99

Change-Id: I1a7b8c2408f66b5d289c4146b0d2768840ba111e

7 years agowifi(interface): Add gscan/apf related API's am: 7b77747bb5
Roshan Pius [Thu, 17 Nov 2016 01:04:39 +0000 (01:04 +0000)]
wifi(interface): Add gscan/apf related API's am: 7b77747bb5
am: 1f212a6566

Change-Id: I6b3840841174e4c032d3160dade59b391ed62f73

7 years agowifi: Stub implementation of WifiStaIface methods
Roshan Pius [Thu, 17 Nov 2016 00:57:02 +0000 (00:57 +0000)]
wifi: Stub implementation of WifiStaIface methods
am: a04ba3fcb8

Change-Id: Ie61978114eb86f11e3e8f56e15a6d4293bbf4c88

7 years agowifi: Stub implementation of WifiChip methods
Roshan Pius [Thu, 17 Nov 2016 00:57:01 +0000 (00:57 +0000)]
wifi: Stub implementation of WifiChip methods
am: 7d08d7a16d

Change-Id: If81d1003542b4131448c11df5a3e7c00a6c00fab

7 years agowifi: Use hidl_return_util functions in Iface/Rtt
Roshan Pius [Thu, 17 Nov 2016 00:57:00 +0000 (00:57 +0000)]
wifi: Use hidl_return_util functions in Iface/Rtt
am: 907d4a234d

Change-Id: I224f3edf8aefe3e47e1604b457e5aa57b9c7a301

7 years agowifi: Use hidl_return_util functions in WifiChip
Roshan Pius [Thu, 17 Nov 2016 00:56:59 +0000 (00:56 +0000)]
wifi: Use hidl_return_util functions in WifiChip
am: 3c86852a2e

Change-Id: I69b20794be77270122718960ce8771ce1f451d40

7 years agowifi: Helper functions for invoking hidl cont callbacks
Roshan Pius [Thu, 17 Nov 2016 00:56:58 +0000 (00:56 +0000)]
wifi: Helper functions for invoking hidl cont callbacks
am: 5647665827

Change-Id: Id86ad2d1bf0a711622a5c1300437b027d08790d3

7 years agowifi: Make methods deliver status synchronously (3/3)
Roshan Pius [Thu, 17 Nov 2016 00:56:57 +0000 (00:56 +0000)]
wifi: Make methods deliver status synchronously (3/3)
am: 734fea0d98

Change-Id: I749781becee892317f741ca561ee825546870163

7 years agowifi: Make methods deliver status synchronously (2/3)
Roshan Pius [Thu, 17 Nov 2016 00:56:56 +0000 (00:56 +0000)]
wifi: Make methods deliver status synchronously (2/3)
am: 5c05546fc9

Change-Id: Icd12fff4544ffadd62cd8a040a37a6542b829695

7 years agowifi: Make methods deliver status synchronously (1/3)
Roshan Pius [Thu, 17 Nov 2016 00:56:55 +0000 (00:56 +0000)]
wifi: Make methods deliver status synchronously (1/3)
am: 503582ed94

Change-Id: I868296a715c673937a1ce17100b392ef02b3d196

7 years agowifi: Rename failure_reason_util to wifi_status_util
Roshan Pius [Thu, 17 Nov 2016 00:56:53 +0000 (00:56 +0000)]
wifi: Rename failure_reason_util to wifi_status_util
am: 1922482a5c

Change-Id: I32955402c44c8d4f6a961241d412efaeba508374

7 years agowifi(interface): Add status for all methods
Roshan Pius [Thu, 17 Nov 2016 00:56:52 +0000 (00:56 +0000)]
wifi(interface): Add status for all methods
am: 02caa1b821

Change-Id: I96bd199b2d739d5371b9f0cd761440df7cdc6eb3

7 years agowifi(interface): Add wifi host debug wake up reason stats
Roshan Pius [Thu, 17 Nov 2016 00:56:49 +0000 (00:56 +0000)]
wifi(interface): Add wifi host debug wake up reason stats
am: e0724f98b0

Change-Id: Ife791e5b1ca8046713a202e49b0a426b2c9abcae

7 years agowifi(interface): Add wifi debug packet fate related interface
Roshan Pius [Thu, 17 Nov 2016 00:56:48 +0000 (00:56 +0000)]
wifi(interface): Add wifi debug packet fate related interface
am: fe9ad36cb2

Change-Id: I63b0ff50906590a4af3b1854c89cd47ea12506cb

7 years agowifi(interface): Add wifi debug ring buffer related interface
Roshan Pius [Thu, 17 Nov 2016 00:56:47 +0000 (00:56 +0000)]
wifi(interface): Add wifi debug ring buffer related interface
am: e3a02b07b6

Change-Id: I1cac68e450cc87b8674ca00120964bf9dfcc0a9f

7 years agowifi(interface): Move all StaIface types to types.hal
Roshan Pius [Thu, 17 Nov 2016 00:56:46 +0000 (00:56 +0000)]
wifi(interface): Move all StaIface types to types.hal
am: 5e25466ebf

Change-Id: I2815c82897e31ea35fd6d0ae3e2e3feb20e750b6

7 years agowifi(interface): Fix compilation failure
Roshan Pius [Thu, 17 Nov 2016 00:56:45 +0000 (00:56 +0000)]
wifi(interface): Fix compilation failure
am: e03f736ca0

Change-Id: I687c4da68d93a7657991eb92cecb3f4e4c4d4986

7 years agowifi(interface): Rtt controller HIDL interface
Roshan Pius [Thu, 17 Nov 2016 00:56:44 +0000 (00:56 +0000)]
wifi(interface): Rtt controller HIDL interface
am: 18eec81adc

Change-Id: Idb2a967fe289216ad5e37a4f04ac15be7a97c215

7 years agowifi(interface): NAN HIDL interface
Roshan Pius [Thu, 17 Nov 2016 00:56:43 +0000 (00:56 +0000)]
wifi(interface): NAN HIDL interface
am: 120f94c594

Change-Id: I22788dd6cd85b18c06c7bca7de53e5c1fabf5d1f

7 years agowifi(interface): Link layer stats collection
Roshan Pius [Thu, 17 Nov 2016 00:56:42 +0000 (00:56 +0000)]
wifi(interface): Link layer stats collection
am: 18680b7aff

Change-Id: Id21f5179208d3b5671541747894fdd875d43d8f0

7 years agowifi(interface): Make methods synchronous
Roshan Pius [Thu, 17 Nov 2016 00:56:41 +0000 (00:56 +0000)]
wifi(interface): Make methods synchronous
am: a52dc7322d

Change-Id: Iee14349de899301b1b8b7ee8b1b0e24d61f5ac2c

7 years agowifi(interface): Add status for every method
Roshan Pius [Thu, 17 Nov 2016 00:56:40 +0000 (00:56 +0000)]
wifi(interface): Add status for every method
am: 1f9073cfcb

Change-Id: Ic839dad94f04d974f49f67ffd125ac302a9b4fea

7 years agowifi(interface): Add gscan/apf related API's
Roshan Pius [Thu, 17 Nov 2016 00:56:38 +0000 (00:56 +0000)]
wifi(interface): Add gscan/apf related API's
am: 7b77747bb5

Change-Id: Ib5efe1acd06649e65c88a3721e455725b2206778

7 years agowifi: Stub implementation of WifiStaIface methods
Roshan Pius [Thu, 27 Oct 2016 21:36:26 +0000 (14:36 -0700)]
wifi: Stub implementation of WifiStaIface methods

Bug: 32221997
Bug: 31991459
Test: Compiles
Change-Id: Iefc68958befc549fd9100b29f84cb6e6d73efe95

7 years agowifi: Stub implementation of WifiChip methods
Roshan Pius [Thu, 27 Oct 2016 21:35:05 +0000 (14:35 -0700)]
wifi: Stub implementation of WifiChip methods

Bug: 32221997
Test: Compiles
Change-Id: I627a05ce17d8b0e87101f395c3b3d6c10d3c440c

7 years agowifi: Use hidl_return_util functions in Iface/Rtt
Roshan Pius [Thu, 27 Oct 2016 19:48:12 +0000 (12:48 -0700)]
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

7 years agowifi: Use hidl_return_util functions in WifiChip
Roshan Pius [Thu, 27 Oct 2016 19:43:49 +0000 (12:43 -0700)]
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

7 years agowifi: Helper functions for invoking hidl cont callbacks
Roshan Pius [Wed, 26 Oct 2016 21:43:05 +0000 (14:43 -0700)]
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

7 years agowifi: Make methods deliver status synchronously (3/3)
Roshan Pius [Tue, 11 Oct 2016 15:30:28 +0000 (08:30 -0700)]
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

7 years agowifi: Make methods deliver status synchronously (2/3)
Roshan Pius [Tue, 11 Oct 2016 15:27:27 +0000 (08:27 -0700)]
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

7 years agowifi: Make methods deliver status synchronously (1/3)
Roshan Pius [Tue, 11 Oct 2016 15:25:30 +0000 (08:25 -0700)]
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

7 years agosupplicant(interface): Fix compilation failure am: 9e01c51793 am: 211c3b874c
Roshan Pius [Wed, 16 Nov 2016 19:15:29 +0000 (19:15 +0000)]
supplicant(interface): Fix compilation failure am: 9e01c51793 am: 211c3b874c
am: 61e50c20e2

Change-Id: I9e85e615b7c0a98c06922687d419e44d6bc95c65

7 years agosupplicant(interface): Fix compilation failure am: 9e01c51793
Roshan Pius [Wed, 16 Nov 2016 19:09:26 +0000 (19:09 +0000)]
supplicant(interface): Fix compilation failure am: 9e01c51793
am: 211c3b874c

Change-Id: I47f6acf290314c7d314dc9ff66864133a7b55fce

7 years agowifi: Rename failure_reason_util to wifi_status_util
Roshan Pius [Tue, 11 Oct 2016 15:21:46 +0000 (08:21 -0700)]
wifi: Rename failure_reason_util to wifi_status_util

The HIDL interface now returns a |WifiStatus| instance to indicate the
status of any operation. This is replacing the existing asynchronous
delivery of success or failure (using |FailureReason| instance).

Rename the existing util class to |wifi_status_util| and add a couple of
methods to create a |WifiStatus| instance with empty description.

Bug: 32056230
Test: Compiles
Change-Id: I8488f7cd7d6ad6bd7a0c3c82a7ef83299d877d45

7 years agowifi(interface): Add status for all methods
Roshan Pius [Wed, 26 Oct 2016 22:56:17 +0000 (15:56 -0700)]
wifi(interface): Add status for all methods

Add missing status returns for a few HIDL methods. This is to keep the
interface consistent.

Bug: 32146455
Test: update_makefile.sh
Change-Id: Ia66fe4d00e884e5ce1e1906db77bb5ffdaebffdd

7 years agowifi(interface): Add wifi host debug wake up reason stats
Roshan Pius [Thu, 20 Oct 2016 16:33:26 +0000 (09:33 -0700)]
wifi(interface): Add wifi host debug wake up reason stats

These stats are used to determine if the device is being woken up
frequently by the wlan chipset. The stats structure describe all the
various resons for which the host was woken up by the wlan chipset
(firmware).

Bug: 32221997
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Id52915348fef0283affcd834c6f1db5055e54ace

7 years agowifi(interface): Add wifi debug packet fate related interface
Roshan Pius [Wed, 19 Oct 2016 23:45:12 +0000 (16:45 -0700)]
wifi(interface): Add wifi debug packet fate related interface

The packet fate debug mechanism is used to track the state of all the
packets transmitted/received during the association process.

Also,
Add the various debug capabilities in the respective interfaces.
All ring buffer, driver/firmware dump, etc related capabilities are in
IWifiChip object.
The packet fate capability is exposed in IWifiStaIface object.

Bug: 32221997
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Ic6bf49d682b70a1cdcd18c69fc25a544921bd548

7 years agowifi(interface): Add wifi debug ring buffer related interface
Roshan Pius [Wed, 19 Oct 2016 19:31:01 +0000 (12:31 -0700)]
wifi(interface): Add wifi debug ring buffer related interface

The debug ring buffers is a purely debug mechanism to let the driver
report debug info like connection events, power events, etc to the
framework.
The framework used to previously dump out the raw byte stream in
the bugreport and the vendors had some tools to parse out the data.
This is now being changed to provide the framework with the
internal ring buffer structs to ease parsing this data in framework
itself. This will eventually be used in the new wifilogd daemon.

Bug: 32221997
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I2c90662cfa9d07ae6fc72198a286338dbaacbfc2

7 years agowifi(interface): Move all StaIface types to types.hal
Roshan Pius [Wed, 26 Oct 2016 17:10:48 +0000 (10:10 -0700)]
wifi(interface): Move all StaIface types to types.hal

Some of these structs are used in the debug framework and hence needs to
live in types.hal. Add a |Sta| prefix to differentiate them from other
types similar to what is done for Nan and Rtt types.

Bug: 31991459
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Idc49b28447609c4334b0a086481c404c06a63fea

7 years agowifi(interface): Fix compilation failure
Roshan Pius [Fri, 14 Oct 2016 21:53:43 +0000 (14:53 -0700)]
wifi(interface): Fix compilation failure

Changes in the CL:
a) Unions are not allowed in the HIDL generated code that is going to be
used in java.
b) Few RTT constants were defined twice in the legacy rtt.h. One set
as enums, the other set as #define's. Remove the duplicated values in
the HIDL interface.

Bug: 31991076
Bug: 31991232
Test: mmm -j32 hardware/interfaces/wifi/1.0/
Change-Id: I03db70c7b89c0be53a7754ab8b34a19ad2c6e536

7 years agowifi(interface): Rtt controller HIDL interface
Roshan Pius [Fri, 14 Oct 2016 18:29:30 +0000 (11:29 -0700)]
wifi(interface): Rtt controller HIDL interface

Bug: 31991232
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I53b95e85ee8a71bcb0494420913c9511f87908c0

7 years agowifi(interface): NAN HIDL interface
Roshan Pius [Thu, 13 Oct 2016 18:48:42 +0000 (11:48 -0700)]
wifi(interface): NAN HIDL interface

Interface is mostly a replication of the wifi_nan.h HAL header file.
1. All the methods are in |IWifiNanIface|.
2. Moved all the callbacks to |IWifiNanIfaceEventCallback.hal|.
2. Moved all the data types to |types.hal|.
3. Changed all the variable size arrays to vecs.

Bug: 31991076
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I2af0b0003cf30a0f2bfdcb56b69c492cf831745b

7 years agowifi(interface): Link layer stats collection
Roshan Pius [Wed, 12 Oct 2016 15:25:48 +0000 (08:25 -0700)]
wifi(interface): Link layer stats collection

Add HIDL methods for STA iface link layer stats.

While there,
Add the missing gscan API for fetching a list of channels for a given
band.

Bug:31991459
Test: Compiles
Change-Id: I5d448eb823faae4e8f5c25f746cf59e70df454cf

7 years agowifi(interface): Make methods synchronous
Roshan Pius [Mon, 10 Oct 2016 18:53:07 +0000 (11:53 -0700)]
wifi(interface): Make methods synchronous

Having all the HIDL methods asynchronous, makes it hard for the
calling code to keep track of the operation status/result.
There are some operations which will generate asynchronous results (like
bgscan), convert all the other methods to synchronous methods.

The |EventCallback| objects will now just broadcast important events
(needed for other clients to listen for state changes). This will no
longer be used to send responses to every command sent to the HAL.

Bug: 32061909
Test: `./hardware/interfaces/update-makefiles.sh`
Change-Id: Id2433f4c8e028268dd027cdeb239ba4082b157b5

7 years agowifi(interface): Add status for every method
Roshan Pius [Mon, 10 Oct 2016 17:32:22 +0000 (10:32 -0700)]
wifi(interface): Add status for every method

Add a status parameter for every HIDL interface object method which can
possibly become invalid. This should help inform the caller that the
object being used is stale/invalid now.

While there,
Rename |CommandFailureReson| to |FailureReasonCode|.

NOTE: |FailureReason| will continue to indicate any errors during the
processing of the command via the corresponding |onFailure| callback.

Bug: 32056230
Test: Compiles
Change-Id: I2ec5af3075221e483579410f344bcedd6bf17a93

7 years agowifi(interface): Add gscan/apf related API's
Roshan Pius [Fri, 7 Oct 2016 20:15:59 +0000 (13:15 -0700)]
wifi(interface): Add gscan/apf related API's

Changes in the CL:
1. Add gscan/APF related API's to |IWifiStaIface|.
2. Add a new callback HIDL interface (|IWifiStaIfaceEventCallback)
for all callbacks received from |IWifiStaIface|.

Bug: 31991459
Test: Compiles
Change-Id: Id9f2ded9e20bee393ab53d84efa814d52704cd2c

7 years agosupplicant(interface): Fix compilation failure
Roshan Pius [Wed, 16 Nov 2016 19:00:29 +0000 (19:00 +0000)]
supplicant(interface): Fix compilation failure
am: 9e01c51793

Change-Id: Ib0fa885cb256ca000ca04e3bface3690bbd6f1fc

7 years agosupplicant(interface): Fix compilation failure
Roshan Pius [Wed, 16 Nov 2016 18:29:37 +0000 (10:29 -0800)]
supplicant(interface): Fix compilation failure

The generated code uses the variable |code| internally.

Bug: 31116047
Test: mmm -j32 hardware/interfaces/wifi/supplicant/1.0/
Change-Id: Ic6d0c9a198a026460f67fa4920b8003a304f6727

7 years agoMerge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19 am: 21e39f87e4
Roshan Pius [Wed, 16 Nov 2016 17:47:38 +0000 (17:47 +0000)]
Merge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19 am: 21e39f87e4
am: 1ac211647e

Change-Id: I89c89b13f8d775faed33f5c90807206ab75e1631

7 years agoMerge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19
Roshan Pius [Wed, 16 Nov 2016 17:40:07 +0000 (17:40 +0000)]
Merge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19
am: 21e39f87e4

Change-Id: Ie1aa347d5e9cccd20d6f0666b81f2dbdf7619bf3

7 years agoMerge "supplicant(interface): Add support for Hotspot 2.0"
Roshan Pius [Wed, 16 Nov 2016 17:32:37 +0000 (17:32 +0000)]
Merge "supplicant(interface): Add support for Hotspot 2.0"
am: 06a3daad19

Change-Id: I6784df7d3dcc34483f4b7c681d64d4d4e76c9fc0

7 years agoMerge "supplicant(interface): Add support for Hotspot 2.0"
Roshan Pius [Wed, 16 Nov 2016 17:24:12 +0000 (17:24 +0000)]
Merge "supplicant(interface): Add support for Hotspot 2.0"

7 years agosupplicant(interface): Add support for Hotspot 2.0
Roshan Pius [Wed, 9 Nov 2016 17:55:42 +0000 (09:55 -0800)]
supplicant(interface): Add support for Hotspot 2.0

HIDL interface to
a) Initiate ANQP queries & icon queries for hotspot 2.0
b) Add callbacks for the reception of WNM frames (hotspot
remediation, deauth imminent notice).

Bug: 31116047
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Ib3353f04b493f50c6415d1f3475efa957d921540

7 years agoMerge "Run boot HAL service as root" am: 72882f05ec am: 22cb80d62f
Connor O'Brien [Thu, 10 Nov 2016 20:53:55 +0000 (20:53 +0000)]
Merge "Run boot HAL service as root" am: 72882f05ec am: 22cb80d62f
am: 4b07604643

Change-Id: Ia77142a69651aff283847271a455c561096285ca

7 years agoMerge "Run boot HAL service as root" am: 72882f05ec
Connor O'Brien [Thu, 10 Nov 2016 20:47:26 +0000 (20:47 +0000)]
Merge "Run boot HAL service as root" am: 72882f05ec
am: 22cb80d62f

Change-Id: Ia1d82f89d3374fbc2b92aedda78b930123a00351

7 years agoMerge "Run boot HAL service as root"
Connor O'Brien [Thu, 10 Nov 2016 20:40:54 +0000 (20:40 +0000)]
Merge "Run boot HAL service as root"
am: 72882f05ec

Change-Id: I524ad08c38268fb37d51a1006b72c263bf9b2cd5

7 years agoMerge "Run boot HAL service as root"
Connor O'Brien [Thu, 10 Nov 2016 20:23:00 +0000 (20:23 +0000)]
Merge "Run boot HAL service as root"

7 years agoMerge "Extend Telephony HIDL interface to include unsolicited RIL commands." am:...
Sanket Padawe [Thu, 10 Nov 2016 00:17:03 +0000 (00:17 +0000)]
Merge "Extend Telephony HIDL interface to include unsolicited RIL commands." am: d91322ea43 am: 1545f16308
am: 8c3c491e5e

Change-Id: I6a50b556acdd54ff0a8733eda819d282addcd799

7 years agoMerge "Extend Telephony HIDL interface to include unsolicited RIL commands." am:...
Sanket Padawe [Thu, 10 Nov 2016 00:11:38 +0000 (00:11 +0000)]
Merge "Extend Telephony HIDL interface to include unsolicited RIL commands." am: d91322ea43
am: 1545f16308

Change-Id: I865b579f98ca0d6a2da267094ec0c8ff1509ae14

7 years agoMerge "Extend Telephony HIDL interface to include unsolicited RIL commands."
Sanket Padawe [Thu, 10 Nov 2016 00:05:40 +0000 (00:05 +0000)]
Merge "Extend Telephony HIDL interface to include unsolicited RIL commands."
am: d91322ea43

Change-Id: I47481fb3f145fe5e53649716b989dd4120556518