From d65be16cfd7a8dde36c77a8c2c6f6f5ead1ae2fc Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Fri, 17 Mar 2017 15:44:56 -0700 Subject: [PATCH] supplicant(interface): Correct the WFD info length Error logs from test: 03-17 18:34:34.303 1781 1781 E wpa_supplicant: Unexpected WFD device info len: 6 Bug: 36401779 Test: Compiles Change-Id: I65805599f8f3242a5c1f6ba8c0a1b9da05df79b4 --- wifi/supplicant/1.0/ISupplicantP2pIface.hal | 2 +- wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal | 2 +- .../1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wifi/supplicant/1.0/ISupplicantP2pIface.hal b/wifi/supplicant/1.0/ISupplicantP2pIface.hal index 5a0f6003b8..fb4323caf8 100644 --- a/wifi/supplicant/1.0/ISupplicantP2pIface.hal +++ b/wifi/supplicant/1.0/ISupplicantP2pIface.hal @@ -611,7 +611,7 @@ interface ISupplicantP2pIface extends ISupplicantIface { * |SupplicantStatusCode.FAILURE_UNKNOWN|, * |SupplicantStatusCode.FAILURE_IFACE_INVALID| */ - setWfdDeviceInfo(uint8_t[8] info) generates (SupplicantStatus status); + setWfdDeviceInfo(uint8_t[6] info) generates (SupplicantStatus status); /** * Creates a NFC handover request message. diff --git a/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal b/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal index b6ee57f9fd..8a54bf4b82 100644 --- a/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal +++ b/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal @@ -105,7 +105,7 @@ interface ISupplicantP2pIfaceCallback { MacAddress srcAddress, MacAddress p2pDeviceAddress, uint8_t[8] primaryDeviceType, string deviceName, bitfield configMethods, uint8_t deviceCapabilities, - bitfield groupCapabilities, uint8_t[8] wfdDeviceInfo); + bitfield groupCapabilities, uint8_t[6] wfdDeviceInfo); /** * Used to indicate that a P2P device has been lost. diff --git a/wifi/supplicant/1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp b/wifi/supplicant/1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp index c6cf01f8ab..72a3c4248d 100644 --- a/wifi/supplicant/1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp +++ b/wifi/supplicant/1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp @@ -81,7 +81,7 @@ class IfaceCallback : public ISupplicantP2pIfaceCallback { const hidl_array& /* primaryDeviceType */, const hidl_string& /* deviceName */, uint16_t /* configMethods */, uint8_t /* deviceCapabilities */, uint32_t /* groupCapabilities */, - const hidl_array& /* wfdDeviceInfo */) override { + const hidl_array& /* wfdDeviceInfo */) override { return Void(); } Return onDeviceLost(