wpa_supplicant(hidl): Invoke onDeviceFound for all cases
For devices that does not expose WFD info, we were ignoring the
onDeviceFound P2P callback. Remove this restriction.
Bug: 36790022
Test: Able to find peers from the settings menu.
Change-Id: Id141d04cf9cfa9f889d2c12888a5d777db4f267f
diff --git a/wpa_supplicant/hidl/hidl.cpp b/wpa_supplicant/hidl/hidl.cpp
index 753c87b..3acc7e2 100644
--- a/wpa_supplicant/hidl/hidl.cpp
+++ b/wpa_supplicant/hidl/hidl.cpp
@@ -370,7 +370,7 @@
const struct p2p_peer_info *info, const u8 *peer_wfd_device_info,
u8 peer_wfd_device_info_len)
{
- if (!wpa_s || !addr || !info || !peer_wfd_device_info)
+ if (!wpa_s || !addr || !info)
return;
wpa_printf(