diff options
author | Sudhakar Swaminathan <Sudhakar.Swaminathan@Atheros.com> | 2010-09-08 21:18:10 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-09-10 10:30:26 -0700 |
commit | 0f66abd25bde08f4bf8464002430f14e58125930 (patch) | |
tree | e3ed38f4212d92934b5e7ede16b918f5b3439b07 /src/p2p/p2p_go_neg.c | |
parent | 0d0a8ca1cc14acb30b6681818427b21798698ed6 (diff) | |
download | external_wpa_supplicant_8_ti-0f66abd25bde08f4bf8464002430f14e58125930.zip external_wpa_supplicant_8_ti-0f66abd25bde08f4bf8464002430f14e58125930.tar.gz external_wpa_supplicant_8_ti-0f66abd25bde08f4bf8464002430f14e58125930.tar.bz2 |
P2P: Add option for disabling intra BSS distribution
p2p_intra_bss configuration parameter can now be used to
disable/enable intra BSS distribution (bridging of frames between
the clients in a group).
Diffstat (limited to 'src/p2p/p2p_go_neg.c')
-rw-r--r-- | src/p2p/p2p_go_neg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p2p/p2p_go_neg.c b/src/p2p/p2p_go_neg.c index 0a3d0c4..434d209 100644 --- a/src/p2p/p2p_go_neg.c +++ b/src/p2p/p2p_go_neg.c @@ -160,6 +160,8 @@ static struct wpabuf * p2p_build_go_neg_req(struct p2p_data *p2p, group_capab |= P2P_GROUP_CAPAB_PERSISTENT_GROUP; if (p2p->cross_connect) group_capab |= P2P_GROUP_CAPAB_CROSS_CONN; + if (p2p->cfg->p2p_intra_bss) + group_capab |= P2P_GROUP_CAPAB_INTRA_BSS_DIST; p2p_buf_add_capability(buf, p2p->dev_capab, group_capab); p2p_buf_add_go_intent(buf, (p2p->go_intent << 1) | p2p->next_tie_breaker); @@ -249,6 +251,8 @@ static struct wpabuf * p2p_build_go_neg_resp(struct p2p_data *p2p, group_capab |= P2P_GROUP_CAPAB_PERSISTENT_GROUP; if (p2p->cross_connect) group_capab |= P2P_GROUP_CAPAB_CROSS_CONN; + if (p2p->cfg->p2p_intra_bss) + group_capab |= P2P_GROUP_CAPAB_INTRA_BSS_DIST; } p2p_buf_add_capability(buf, p2p->dev_capab, group_capab); p2p_buf_add_go_intent(buf, (p2p->go_intent << 1) | tie_breaker); @@ -650,6 +654,8 @@ static struct wpabuf * p2p_build_go_neg_conf(struct p2p_data *p2p, group_capab |= P2P_GROUP_CAPAB_PERSISTENT_GROUP; if (p2p->cross_connect) group_capab |= P2P_GROUP_CAPAB_CROSS_CONN; + if (p2p->cfg->p2p_intra_bss) + group_capab |= P2P_GROUP_CAPAB_INTRA_BSS_DIST; } p2p_buf_add_capability(buf, p2p->dev_capab, group_capab); if (go || resp_chan == NULL) |