Update method of getting ScanResult of current network.

Noticed that ScanResult got from ScanDetailCache associated with
provided BSSID would be null if forcing to forget and then reconnet
to the wifi network. This would cause IpClient get null ScanResult.
Update the method of getting ScanResult with a more robust way.

Bug: 137835398
Test: atest FrameworksWifiTests
Merged-In: I3ea5a301a9635248a2d121d9a6b7493cc6f430a6
Merged-In: Ifa6acff962cb915ddf69ac9ea80355bfb0fd4ffe
Change-Id: If23b90235e1565a72aeec2398deebf8fef5597b7
1 file changed
tree: 22296eb2e1a27a1c55d9ca8b3f280541ba93479f
  1. service/
  2. PREUPLOAD.cfg