commit | 01b0175625269a66239cded42c6dc70251ec1211 | [log] [tgz] |
---|---|---|
author | Irfan Sheriff <isheriff@google.com> | Thu Apr 12 09:49:59 2012 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Apr 12 09:49:59 2012 -0700 |
tree | 87c84e488471cb7c89a864e1fcb9b68ab5e7856f | |
parent | 8cb2d2b4c417f3df2c8c1ac2e5b41094abc7c3e4 [diff] | |
parent | 96161876d932a9e995465e9186471cb1b7f80979 [diff] |
Merge "P2P: Clear P2P_DEV_SD_INFO when new wildcard SD query is added"
diff --git a/src/p2p/p2p_sd.c b/src/p2p/p2p_sd.c index 9e3588a..1a57210 100644 --- a/src/p2p/p2p_sd.c +++ b/src/p2p/p2p_sd.c
@@ -861,6 +861,12 @@ p2p->sd_queries = q; wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Added SD Query %p", q); + if (dst == NULL) { + struct p2p_device *dev; + dl_list_for_each(dev, &p2p->devices, struct p2p_device, list) + dev->flags &= ~P2P_DEV_SD_INFO; + } + return q; }