P2P(hidl): Flush bss as part of P2pIface::flushInternal()
P2pIface::flushInternal() only clears P2P data, but not flush Bss.
This will cause next P2P Join use old scan history which delays
start of P2P group Neg process. i.e.
P2P: Peer was found running GO in older scan -> try to join the group
Bug: 200890559
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Id166c8b567a531403755c48bdfc92345c2eaad14
diff --git a/wpa_supplicant/hidl/1.4/p2p_iface.cpp b/wpa_supplicant/hidl/1.4/p2p_iface.cpp
index cabcccb..b9882b2 100644
--- a/wpa_supplicant/hidl/1.4/p2p_iface.cpp
+++ b/wpa_supplicant/hidl/1.4/p2p_iface.cpp
@@ -1129,6 +1129,7 @@
wpa_s->force_long_sd = 0;
wpas_p2p_stop_find(wpa_s);
wpa_s->parent->p2ps_method_config_any = 0;
+ wpa_bss_flush(wpa_s);
if (wpa_s->global->p2p)
p2p_flush(wpa_s->global->p2p);
return {SupplicantStatusCode::SUCCESS, ""};