P2P: get cached scan results on iface creation to avoid scan
This allows the p2p client to fast associate if the GO is already in the
scan cache without doing a full scan. This effectively reverts CL
14782089 and moves that optimization into core supplicant with the
intent of upstreaming.
Bug: 233925161
Test: Manual file transfer using Photos app, logs show that scan results
are updated directly from driver after interface creation and we fast
associate
09-08 03:26:19.538 D/wpa_supplicant( 2489): p2p-p2p0-0: Added interface p2p-p2p0-0
…
09-08 03:26:19.568 D/wpa_supplicant( 2489): nl80211: Received scan results (18 BSSes)
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: BSS: Start scan result update 1
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: BSS: Add new id 0 BSSID be:9b:d7:f0:a7:0e SSID 'DIRECT-30-16C8C7' freq 5180
…
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: Scan results matching the currently selected network
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: 0: be:9b:d7:f0:a7:0e freq=5180 level=-28 snr=75 est_throughput=390001
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: Selecting BSS from priority group 0
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: 0: be:9b:d7:f0:a7:0e ssid='DIRECT-30-16C8C7' wpa_ie_len=0 rsn_ie_len=20 caps=0x1031 level=-28 freq=5180 wps p2p
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: selected based on RSN IE
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: selected BSS be:9b:d7:f0:a7:0e ssid='DIRECT-30-16C8C7'
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: Considering connect request: reassociate: 1 selected: be:9b:d7:f0:a7:0e bssid: 00:00:00:00:00:00 pending: 00:00:00:00:00:00 wpa_state: DISCONNECTED ssid=0xb400007517a446e0 current_ssid=0xb400007517a446e0
09-08 03:26:19.569 D/wpa_supplicant( 2489): p2p-p2p0-0: Request association with be:9b:d7:f0:a7:0e
Test: wifi picker - preference - wifi direct, negotation still works
Change-Id: I73b2ab21bf5dcb6f21c6573139494ff3aefdcdc4
4 files changed