OSDN Git Service

Default Randomized MAC Address to 0:0:0:0:0:0 in WifiConfig
authorJong Wook Kim <jongwook@google.com>
Mon, 5 Feb 2018 22:26:48 +0000 (14:26 -0800)
committerJong Wook Kim <jongwook@google.com>
Wed, 7 Feb 2018 19:31:19 +0000 (19:31 +0000)
commit4f10fb95de0ac17231fb69be197ead956fbdbbce
tree578fb5a8ee835ccc38f36bc921f26923368f739b
parent0ab4ea3ef2a097db5c209acc11a2f6590b6e6eeb
Default Randomized MAC Address to 0:0:0:0:0:0 in WifiConfig

Set the default value of Randomized MAC address as 0:0:0:0:0:0 instead
of null.

Making this change to simplify storing randomized address to XML for
permanent storage. Without this change, will need to manually check if
the value is null during MacAddress<->XML conversion.

Bug: 72753415
Test: Unittest.
Change-Id: I6edf486360e267acec9f8a343386444be2ea99fa
wifi/java/android/net/wifi/WifiConfiguration.java
wifi/tests/src/android/net/wifi/WifiConfigurationTest.java