ScanRequestProxy: Clear scan cache only on scan disable
When STA + STA is enabled, we invoke
ScanRequestProxy.setScanningEnabled(true) for the secondary iface
add/removal. This is required for scanner to check if there are new
bands available via the new iface. We should however not clear the
internal scan cache for each of those calls. Otherwise apps will need to
trigger a new scan after each STA + STA session (peer to peer connection
or MBB).
Bug: 169066733
Test: atest com.android.server.wifi
Test: act.py -c test_station_3/tests/google/wifi/config.json -tb
chromeos1-dev-test-station-3 -tc WifiNetworkRequestTest
Change-Id: I58db7895cb0106f54e49394364ec73a0050aced3
2 files changed