From 65c494a548b39415b7c98636c43a5ea5537604c2 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Tue, 16 May 2017 09:17:37 -0700 Subject: WifiP2pWfdInfo: Only pass the wfd info to WifiNative WifiP2pWfdInfo.getDeviceInfoHex() is used to set the WFD info in wpa_supplicant. The length of this WFD info will be calculated and prepended by the HIDL interface itself, so there is no need for this length to prepended in the framework. So, get rid of it. Bug: 38222615 Test: Compiles Change-Id: If8ff6e558dad974a053265e0a8c8222943065823 --- wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java b/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java index 92c7e36a7bb3..ebf5c2a474cc 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java @@ -139,7 +139,7 @@ public class WifiP2pWfdInfo implements Parcelable { public String getDeviceInfoHex() { return String.format( - Locale.US, "%04x%04x%04x%04x", 6, mDeviceInfo, mCtrlPort, mMaxThroughput); + Locale.US, "%04x%04x%04x", mDeviceInfo, mCtrlPort, mMaxThroughput); } public String toString() { -- cgit v1.2.3-59-g8ed1b