diff options
| author | Irfan Sheriff <isheriff@google.com> | 2012-04-11 18:07:13 -0700 |
|---|---|---|
| committer | Irfan Sheriff <isheriff@google.com> | 2012-04-11 18:07:13 -0700 |
| commit | 96161876d932a9e995465e9186471cb1b7f80979 (patch) | |
| tree | ce77aa38fcb93b15893e8304027eb99dc0be8dae | |
| parent | f8cf333364de621745989b6c8197ed79b013bd48 (diff) | |
| download | android_external_wpa_supplicant_8-96161876d932a9e995465e9186471cb1b7f80979.tar.gz android_external_wpa_supplicant_8-96161876d932a9e995465e9186471cb1b7f80979.tar.bz2 android_external_wpa_supplicant_8-96161876d932a9e995465e9186471cb1b7f80979.zip | |
P2P: Clear P2P_DEV_SD_INFO when new wildcard SD query is added
Unlike the unicast SD queries, the queries directed to all peers depend
on P2P_DEV_SD_INFO flag being cleared to allow the query to be sent to
a peer that has previously replied to any SD query.
Change-Id: I1ea3df2ea8df75af3b65d3ffa0c38658d3e3d1ef
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
| -rw-r--r-- | src/p2p/p2p_sd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p2p/p2p_sd.c b/src/p2p/p2p_sd.c index 9e3588a5..1a572101 100644 --- a/src/p2p/p2p_sd.c +++ b/src/p2p/p2p_sd.c @@ -861,6 +861,12 @@ void * p2p_sd_request(struct p2p_data *p2p, const u8 *dst, 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; } |
