P2P: Add OuiKeyedData for P2P connect and group

event callbacks.

Bug: 296069900
Test: m

Change-Id: I80853c7d5f4ab2969676e8bca235d0f7bd7e8de2
This commit is contained in:
Vinay Gannevaram 2023-12-13 17:01:43 +05:30 committed by Gabriel Biren
parent 9e0b057b46
commit 7fbbc9fde8
8 changed files with 33 additions and 0 deletions

View file

@ -45,4 +45,5 @@ parcelable P2pGroupStartedEventParams {
byte[6] goInterfaceAddress;
boolean isP2pClientEapolIpAddressInfoPresent;
android.hardware.wifi.supplicant.P2pClientEapolIpAddressInfo p2pClientIpInfo;
@nullable android.hardware.wifi.common.OuiKeyedData[] vendorData;
}

View file

@ -37,4 +37,5 @@ parcelable P2pPeerClientDisconnectedEventParams {
String groupInterfaceName;
byte[6] clientInterfaceAddress;
byte[6] clientDeviceAddress;
@nullable android.hardware.wifi.common.OuiKeyedData[] vendorData;
}

View file

@ -38,4 +38,5 @@ parcelable P2pPeerClientJoinedEventParams {
byte[6] clientInterfaceAddress;
byte[6] clientDeviceAddress;
int clientIpAddress;
@nullable android.hardware.wifi.common.OuiKeyedData[] vendorData;
}

View file

@ -40,4 +40,5 @@ parcelable P2pProvisionDiscoveryCompletedEventParams {
android.hardware.wifi.supplicant.WpsConfigMethods configMethods;
String generatedPin;
String groupInterfaceName;
@nullable android.hardware.wifi.common.OuiKeyedData[] vendorData;
}

View file

@ -16,6 +16,7 @@
package android.hardware.wifi.supplicant;
import android.hardware.wifi.common.OuiKeyedData;
import android.hardware.wifi.supplicant.P2pClientEapolIpAddressInfo;
/**
@ -63,4 +64,10 @@ parcelable P2pGroupStartedEventParams {
* The value is undefined if isP2pClientEapolIpAddressInfoPresent is false.
*/
P2pClientEapolIpAddressInfo p2pClientIpInfo;
/**
* Optional vendor-specific parameters. Null value indicates
* that no vendor data is provided.
*/
@nullable OuiKeyedData[] vendorData;
}

View file

@ -16,6 +16,8 @@
package android.hardware.wifi.supplicant;
import android.hardware.wifi.common.OuiKeyedData;
/**
* Parameters passed as a part of P2P peer client disconnected event.
*/
@ -29,4 +31,10 @@ parcelable P2pPeerClientDisconnectedEventParams {
/** P2P device interface MAC address of the client that disconnected. */
byte[6] clientDeviceAddress;
/**
* Optional vendor-specific parameters. Null value indicates
* that no vendor data is provided.
*/
@nullable OuiKeyedData[] vendorData;
}

View file

@ -16,6 +16,8 @@
package android.hardware.wifi.supplicant;
import android.hardware.wifi.common.OuiKeyedData;
/**
* Parameters passed as a part of P2P peer client joined event.
*/
@ -39,4 +41,10 @@ parcelable P2pPeerClientJoinedEventParams {
* The value is set to zero if the IP address is not allocated via EAPOL exchange.
*/
int clientIpAddress;
/**
* Optional vendor-specific parameters. Null value indicates
* that no vendor data is provided.
*/
@nullable OuiKeyedData[] vendorData;
}

View file

@ -16,6 +16,7 @@
package android.hardware.wifi.supplicant;
import android.hardware.wifi.common.OuiKeyedData;
import android.hardware.wifi.supplicant.P2pProvDiscStatusCode;
import android.hardware.wifi.supplicant.WpsConfigMethods;
@ -45,4 +46,9 @@ parcelable P2pProvisionDiscoveryCompletedEventParams {
* Refer to WFA Wi-Fi_Direct_Specification_v1.9 section 3.2.1 for more details.
*/
String groupInterfaceName;
/**
* Optional vendor-specific parameters. Null value indicates
* that no vendor data is provided.
*/
@nullable OuiKeyedData[] vendorData;
}