commit | 8d34c5179c1cc9eeb8eb21190e3c6e1a0f05a2f5 | [log] [tgz] |
---|---|---|
author | Mia <nnia@google.com> | Thu Dec 02 05:52:01 2021 +0000 |
committer | Mia <nnia@google.com> | Thu Jan 27 07:31:50 2022 +0000 |
tree | 237ed3bf799961fc3eda6158b6a233b1e03803af | |
parent | 1aab61da7bc00e259e20ef4d7b39dbcc9d816a86 [diff] |
wifi: add an api route for removing a P2P client Bug: 159098347 Test: atest FrameworksWifiTests Change-Id: I83b1febb6e56965806a4cc18c0eba9520cce6ce3
diff --git a/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/current/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl b/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/current/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl index ca7be73..f1332d9 100644 --- a/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/current/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl +++ b/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/current/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl
@@ -81,6 +81,7 @@ void setSsidPostfix(in byte[] postfix); void setWfdDeviceInfo(in byte[] info); void setWfdR2DeviceInfo(in byte[] info); + void removeClient(in byte[] peerAddress, in boolean isLegacyClient); void setWpsConfigMethods(in android.hardware.wifi.supplicant.WpsConfigMethods configMethods); void setWpsDeviceName(in String name); void setWpsDeviceType(in byte[] type);
diff --git a/wifi/supplicant/aidl/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl b/wifi/supplicant/aidl/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl index 64839e7..11cdc8b 100644 --- a/wifi/supplicant/aidl/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl +++ b/wifi/supplicant/aidl/android/hardware/wifi/supplicant/ISupplicantP2pIface.aidl
@@ -643,6 +643,17 @@ void setWfdR2DeviceInfo(in byte[] info); /** + * Remove the client with the MAC address from the group. + * + * @param peerAddress Mac address of the client. + * @param isLegacyClient Indicate if client is a legacy client or not. + * @throws ServiceSpecificException with one of the following values: + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_IFACE_INVALID| + */ + void removeClient(in byte[/*6*/] peerAddress, in boolean isLegacyClient); + + /** * Set the list of supported config methods for WPS operations. * * @param configMethods Mask of WPS configuration methods supported by the