diff options
author | Xiao Ma <xiaom@google.com> | 2020-04-03 09:04:26 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-03 09:04:26 +0000 |
commit | 55ed472e85b68663e5d0ff88ea37a46d588a39e6 (patch) | |
tree | dfaea495f881143317751512369c8f62e8d98633 /src/android/net/ip/IpClient.java | |
parent | a9f0ab51a54e2725681b09a08b16718cd04ea133 (diff) | |
parent | 21db0d49d72e8e27e88099bca72c550c4ba02628 (diff) |
Merge "Add new method to update Layer2 information when L2 roaming happens." into rvc-dev am: 7d3fbd8b33 am: 21db0d49d7
Change-Id: I1bc8ca540b080c2003f8736274ad8da2a0020d03
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) { |