Expose MacAddress methods to public API
To support mainline modules, adding the methods which
are used by wifi.
Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest android.net.cts
atest android.net.wifi.cts
atest FrameworksNetTests
atest NetworkStackTests
./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I49856863c15b6b3b59aa867a77b0f137003149ef
This commit is contained in:
@@ -416,7 +416,6 @@ public final class MacAddress implements Parcelable {
|
||||
* @param mask MacAddress representing the mask to use during comparison.
|
||||
* @return true if this MAC Address matches the given range.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public boolean matches(@NonNull MacAddress baseAddress, @NonNull MacAddress mask) {
|
||||
Preconditions.checkNotNull(baseAddress);
|
||||
@@ -430,7 +429,6 @@ public final class MacAddress implements Parcelable {
|
||||
* IPv6 address per RFC 4862.
|
||||
*
|
||||
* @return A link-local Inet6Address constructed from the MAC address.
|
||||
* @hide
|
||||
*/
|
||||
public @Nullable Inet6Address getLinkLocalIpv6FromEui48Mac() {
|
||||
byte[] macEui48Bytes = toByteArray();
|
||||
|
||||
Reference in New Issue
Block a user