Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be4f75f5 authored by Jimmy Chen's avatar Jimmy Chen
Browse files

p2p: change wildcard MAC address to 02:00:00:00:00:00

00:00:00:00:00:00 is an universally administered address, using a
locally administered address for widcard MAC address.

Bug: 126613261
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Test: CtsVerify - WiFi Direct

Change-Id: I132837338bb30b61d65985c2ce3a64c1cdde6877
parent 35a827b9
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -219,7 +219,7 @@ public class WifiP2pConfig implements Parcelable {
    public static final class Builder {
    public static final class Builder {


        private static final MacAddress MAC_ANY_ADDRESS =
        private static final MacAddress MAC_ANY_ADDRESS =
                MacAddress.fromString("00:00:00:00:00:00");
                MacAddress.fromString("02:00:00:00:00:00");


        private MacAddress mDeviceAddress = MAC_ANY_ADDRESS;
        private MacAddress mDeviceAddress = MAC_ANY_ADDRESS;
        private String mNetworkName = "";
        private String mNetworkName = "";
@@ -232,9 +232,9 @@ public class WifiP2pConfig implements Parcelable {
         * Specify the peer's MAC address. If not set, the device will
         * Specify the peer's MAC address. If not set, the device will
         * try to find a peer whose SSID matches the network name as
         * try to find a peer whose SSID matches the network name as
         * specified by {@link #setNetworkName(String)}. Specifying null will
         * specified by {@link #setNetworkName(String)}. Specifying null will
         * reset the peer's MAC address to "00:00:00:00:00:00".
         * reset the peer's MAC address to "02:00:00:00:00:00".
         * <p>
         * <p>
         *     Optional. "00:00:00:00:00:00" by default.
         *     Optional. "02:00:00:00:00:00" by default.
         *
         *
         * @param deviceAddress the peer's MAC address.
         * @param deviceAddress the peer's MAC address.
         * @return The builder to facilitate chaining
         * @return The builder to facilitate chaining