Fix hidl p2p network register & notifyStaApAuth
Added a 'registerNetwork' call to the persistent_group_added
notification within supplicant (and unregister to group removed).
Changed notifyApStaAuthorized to now send p2pCallbacks from the parent
interface theyre received on, instead of the dynamic GO child iface.
Bug: 37286961
Test: Manual + CTS Verifier
Change-Id: Ifba98ae39023063629a244c0678a191d91bc693c
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index faf71d5..c720c32 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -364,6 +364,7 @@
{
#ifdef CONFIG_P2P
wpas_dbus_register_persistent_group(wpa_s, ssid);
+ wpas_hidl_register_network(wpa_s, ssid);
#endif /* CONFIG_P2P */
}
@@ -373,6 +374,7 @@
{
#ifdef CONFIG_P2P
wpas_dbus_unregister_persistent_group(wpa_s, ssid->id);
+ wpas_hidl_unregister_network(wpa_s, ssid);
#endif /* CONFIG_P2P */
}