Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65c494a5 authored by Roshan Pius's avatar Roshan Pius
Browse files

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
parent be030126
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -139,7 +139,7 @@ public class WifiP2pWfdInfo implements Parcelable {


    public String getDeviceInfoHex() {
    public String getDeviceInfoHex() {
        return String.format(
        return String.format(
                Locale.US, "%04x%04x%04x%04x", 6, mDeviceInfo, mCtrlPort, mMaxThroughput);
                Locale.US, "%04x%04x%04x", mDeviceInfo, mCtrlPort, mMaxThroughput);
    }
    }


    public String toString() {
    public String toString() {