aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Kuhne <kuh@google.com>2017-05-19 22:35:54 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-05-19 22:36:00 +0000
commit553d451a3d75f70ef8eb5996222532c9312697ae (patch)
treee5b3d459a89541205e78e1b4327829618e6be02a
parent97a14f58e0e308f835e90b0d058a22b69041fa45 (diff)
parentf3017d7e8dfd739bab466c79acfb784ca4cc012a (diff)
downloadwpa_supplicant_8-553d451a3d75f70ef8eb5996222532c9312697ae.tar.gz
Merge "P2P: Fix hidl service discovery request" into oc-dev
-rw-r--r--wpa_supplicant/hidl/1.0/p2p_iface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/wpa_supplicant/hidl/1.0/p2p_iface.cpp b/wpa_supplicant/hidl/1.0/p2p_iface.cpp
index 40b4b9cd..9a048eb5 100644
--- a/wpa_supplicant/hidl/1.0/p2p_iface.cpp
+++ b/wpa_supplicant/hidl/1.0/p2p_iface.cpp
@@ -987,8 +987,11 @@ std::pair<SupplicantStatus, uint64_t> P2pIface::requestServiceDiscoveryInternal(
if (!query_buf) {
return {{SupplicantStatusCode::FAILURE_UNKNOWN, ""}, {}};
}
+ const uint8_t* dst_addr = is_zero_ether_addr(peer_address.data())
+ ? nullptr
+ : peer_address.data();
uint64_t identifier =
- wpas_p2p_sd_request(wpa_s, peer_address.data(), query_buf.get());
+ wpas_p2p_sd_request(wpa_s, dst_addr, query_buf.get());
if (identifier == 0) {
return {{SupplicantStatusCode::FAILURE_UNKNOWN, ""}, {}};
}