Fix LOHS CTS failure when STA+AP not supported

When testing WifiManagerTest on devices which don't support STA+AP
concurrency, STA may be enabled by previous test cases using
`invokeWithShellPermissions`. The WorkSource of this STA creation will
be treated as `WorkSourceHelper.PRIORITY_FG_SERVICE` in
`HalDeviceManager.allowedToDeleteForNoStaApConcurrencyLohs` and AP iface
creation request will be refused by
`HalDeviceManager.allowedToDeleteForNoStaApConcurrencyLohs` and causes
CTS test failure in the following cases:

* testStartLocalOnlyHotspotSuccess
* testStartLocalOnlyHotspotSingleRequestByApps
* testIsStaApConcurrencySupported

This patch uses `SystemUtil.runShellCommand` to toggle Wi-Fi off/on to
satisfy checks in
`HalDeviceManager.allowedToDeleteForNoStaApConcurrencyLohs`.

Test: run cts-on-gsi -m CtsWifiTestCases -t android.net.wifi.cts.WifiManagerTest
Bug: 299873419
Merged-In: I65498ae4161f9daf68b8ac923a6242f2139719ba
Change-Id: I65498ae4161f9daf68b8ac923a6242f2139719ba
(cherry picked from commit db286a7ab8ec009f0dec8986d4c62cf4ac7442ad)
1 file changed