HDM: Provide exception for LOHS
The new prioritization scheme breaks LOHS flow for regular 3p apps on
legacy devices if user had toggled wifi on (since fg apps are not allowed
to delete iface created by privileged apps). Add an artificial priority boost
for LOHS API available to regular apps (LOHS with custom config is already only
available to privileged apps). Conflicting privileged requests result in
last caller wins in new HDM prioritization scheme, so this should
restore legacy behavior.
Bug: 162344695
Test: Device boots and connects to wifi networks, able to toggle softap
on.
Test: atest com.android.server.wifi
Test: atest android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSuccess
on a device with legacy config, i.e no STA + AP. This was failing before
the CL.
Change-Id: I922cce5ee5e1c55812938930c275d1d868617786
2 files changed