ActiveModeWarden: Always set primary iface/use case in HAL

Always set the primary interface and multi STA
use case in the HAL upon iface creation/role change,
even if only one interface exists. This is to prevent
scenarios like the following:

1. wlan0 is primary and has internet connection
2. wlan1 is secondary and connected to a peer to peer network
3. wlan0 switches to a different network, and needs to bring
   the iface down then up to change the random MAC address.
4. Since wlan0 was brought down, wlan1 will, for a brief
   moment, become the only remaining active iface.
5. Driver may make wlan1 the primary permanently due to (4).
6. This is not desirable, since after wlan0 comes back up,
   wlan0 should continue being the primary.

The ideal behavior is to make wlan1 the primary temporarily,
for the duration where it's the only active connection.
Once wlan0 comes back up, it should continue being primary.

Bug: 183861582
Test: atest FrameworksWifiTests
Change-Id: I11b6cce463b6e3f8b5ff35c06e6ffd0f2058f7ff
2 files changed