OSDN Git Service

wifi(interface): Add Iface objects
authorRoshan Pius <rpius@google.com>
Wed, 5 Oct 2016 17:19:06 +0000 (10:19 -0700)
committerRoshan Pius <rpius@google.com>
Tue, 11 Oct 2016 14:46:24 +0000 (07:46 -0700)
commitadcfba4b09b6d708cafe8d8e0cc35ed8888cde9c
tree97e1d4be302a349b81ee4180b384aefa2714d4c5
parent2078f2251382cc38584d3a1e9ac00b5a8c8cac69
wifi(interface): Add Iface objects

Create a child object under IWifiChip to represent each interface
within the chip. Each iface object has a |type| & |ifname| which should
help us uniquely identify them. This should help us expose methods that
are applicable only to a specific interface type.

While there,
Assign a unique id to every chip on the device.
Add IWifi.listChipIds() to retrieve the list of chip Id's avaiable on the
device. IWifi.getChip() will now use the provided Id to retrieve the
corresponding IWifiChip object(because HIDL language doesn't support
vec<HIDL objects>).

Bug: 31943042
Bug: 32003988
Test: Interface compiles (not implementation)
Change-Id: I723007566ca4220362c02d0f452753fee4e31fce
wifi/1.0/Android.bp
wifi/1.0/Android.mk
wifi/1.0/IWifi.hal
wifi/1.0/IWifiApIface.hal [new file with mode: 0644]
wifi/1.0/IWifiChip.hal
wifi/1.0/IWifiIface.hal [new file with mode: 0644]
wifi/1.0/IWifiNanIface.hal [new file with mode: 0644]
wifi/1.0/IWifiP2pIface.hal [new file with mode: 0644]
wifi/1.0/IWifiStaIface.hal [new file with mode: 0644]
wifi/1.0/types.hal