aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2012-06-06 12:55:44 +0300
committerJouni Malinen <j@w1.fi>2012-06-06 12:55:44 +0300
commit135b69cc7a4af72c386a6c5cd2b321b20ce6b19a (patch)
tree55046c050b8af19b684f5aa42c8587e4c86cfee3 /src/p2p
parentad853202344294ef326918989a6f064743fbd39f (diff)
downloadexternal_wpa_supplicant_8_ti-135b69cc7a4af72c386a6c5cd2b321b20ce6b19a.zip
external_wpa_supplicant_8_ti-135b69cc7a4af72c386a6c5cd2b321b20ce6b19a.tar.gz
external_wpa_supplicant_8_ti-135b69cc7a4af72c386a6c5cd2b321b20ce6b19a.tar.bz2
P2P: Use consistent Device Capability in Beacon/Probe Response
Concurrent Operation bit was not set for GO even if the device supports concurrent operations. Make sure the Device Capability value is consistent with other P2P use cases by using the value determined in p2p_init(). Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/p2p_group.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/p2p/p2p_group.c b/src/p2p/p2p_group.c
index 44b387a..8d4a3cb 100644
--- a/src/p2p/p2p_group.c
+++ b/src/p2p/p2p_group.c
@@ -135,11 +135,10 @@ static void p2p_client_info(struct wpabuf *ie, struct p2p_group_member *m)
static void p2p_group_add_common_ies(struct p2p_group *group,
struct wpabuf *ie)
{
- u8 dev_capab = 0, group_capab = 0;
+ u8 dev_capab = group->p2p->dev_capab, group_capab = 0;
/* P2P Capability */
- dev_capab |= P2P_DEV_CAPAB_SERVICE_DISCOVERY;
- dev_capab |= P2P_DEV_CAPAB_INVITATION_PROCEDURE;
+ dev_capab &= ~P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY;
group_capab |= P2P_GROUP_CAPAB_GROUP_OWNER;
if (group->cfg->persistent_group) {
group_capab |= P2P_GROUP_CAPAB_PERSISTENT_GROUP;