diff options
author | Xiao Ma <xiaom@google.com> | 2020-04-03 08:38:50 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-03 08:38:50 +0000 |
commit | 7d3fbd8b33327f9d12ea48b3b4f88332e0b5f379 (patch) | |
tree | 6b9f2fb6d13940f2bb8bc50aacfafad652c9247d /src/android/net/ip/IpClient.java | |
parent | 87f896aa4ba047370585ab7705167e84b98de6ef (diff) | |
parent | ef0aa6f9e5718942a93c69bbe6be21bf6c0fa532 (diff) |
Merge "Add new method to update Layer2 information when L2 roaming happens." into rvc-dev
Diffstat (limited to 'src/android/net/ip/IpClient.java')
-rw-r--r-- | src/android/net/ip/IpClient.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/android/net/ip/IpClient.java b/src/android/net/ip/IpClient.java index 74a4070..9ad2c78 100644 --- a/src/android/net/ip/IpClient.java +++ b/src/android/net/ip/IpClient.java @@ -28,6 +28,7 @@ import android.net.ConnectivityManager; import android.net.DhcpResults; import android.net.INetd; import android.net.IpPrefix; +import android.net.Layer2InformationParcelable; import android.net.Layer2PacketParcelable; import android.net.LinkAddress; import android.net.LinkProperties; @@ -705,6 +706,12 @@ public class IpClient extends StateMachine { } @Override + public void updateLayer2Information(Layer2InformationParcelable info) { + enforceNetworkStackCallingPermission(); + IpClient.this.updateLayer2Information(info); + } + + @Override public int getInterfaceVersion() { return this.VERSION; } @@ -870,6 +877,13 @@ public class IpClient extends StateMachine { } /** + * Update the network bssid, L2Key and GroupHint layer2 information. + */ + public void updateLayer2Information(@NonNull Layer2InformationParcelable info) { + // TODO: add specific implementation. + } + + /** * Dump logs of this IpClient. */ public void dump(FileDescriptor fd, PrintWriter writer, String[] args) { |