Use EUI64 IPv6 link-local address generation only when randomizing MAC

When connected MAC address randomization is used, generate IPv6
link-local addresses using EUI64 with the per-network defined MAC
Networks that do not use MAC address randomization keep using RFC7217
stable privacy address generation instead.

Bug: 154114734

Test: atest ClientModeImplTest
Test: atest WifiManagerTest
Test: Connect to network
Test: Set up hotspot
Test: Observe that IPv6 link-local address differs for two networks
using randomization
Test: Observe that stable-privacy link-local address is used for network
when not using randomization

Merged-In: Iefb027b17657031116e068bbccdb7b2231a65238
Merged-In: I0a59c750511aacddb38b19bf64b56fd18ff545c5
Change-Id: I4512b87459d036630925ca5ac5ea42179c42ea71
(cherry picked from commit becf46bfdff50dab319210b69d30185f87db7f17)
1 file changed