aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-02-28 17:46:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-02-28 17:46:11 +0000
commit5f58724c5911b850468917a8f3a5a2e63dfa9322 (patch)
treeb59844e20becf9837900d1493c1b1541a4ca6f7f
parent1fc679c6db4cee8c7d6b421dce1d48659f3b1608 (diff)
parente3e480d6a03c74430e94d0813a48ff82dc6edd33 (diff)
downloadwpa_supplicant_8-5f58724c5911b850468917a8f3a5a2e63dfa9322.tar.gz
Merge "p2p: update GO device information when group is started" into rvc-dev
-rw-r--r--wpa_supplicant/hidl/1.3/hidl_manager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/hidl/1.3/hidl_manager.cpp b/wpa_supplicant/hidl/1.3/hidl_manager.cpp
index f019c94a..a7fd3f50 100644
--- a/wpa_supplicant/hidl/1.3/hidl_manager.cpp
+++ b/wpa_supplicant/hidl/1.3/hidl_manager.cpp
@@ -1247,6 +1247,16 @@ void HidlManager::notifyP2pGroupStarted(
bool hidl_is_go = (client == 0 ? true : false);
bool hidl_is_persistent = (persistent == 1 ? true : false);
+ // notify the group device again to ensure the framework knowing this device.
+ struct p2p_data *p2p = wpa_s->global->p2p;
+ struct p2p_device *dev = p2p_get_device(p2p, wpa_group_s->go_dev_addr);
+ if (NULL != dev) {
+ wpa_printf(MSG_DEBUG, "P2P: Update GO device on group started.");
+ p2p->cfg->dev_found(p2p->cfg->cb_ctx, wpa_group_s->go_dev_addr,
+ &dev->info, !(dev->flags & P2P_DEV_REPORTED_ONCE));
+ dev->flags |= P2P_DEV_REPORTED | P2P_DEV_REPORTED_ONCE;
+ }
+
callWithEachP2pIfaceCallback(
wpa_s->ifname,
std::bind(