aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-09-24 19:15:58 (GMT)
committerJouni Malinen <j@w1.fi>2012-09-24 19:15:58 (GMT)
commit2cd075844185f21c41068d25442903bfdb6fb169 (patch)
tree74258cdb187c334733cfcd61428a6c777d536f3a /src/p2p/p2p_i.h
parent7759fba1c286cdcaca3903d1cffefff220332095 (diff)
downloadhostap-2cd075844185f21c41068d25442903bfdb6fb169.zip
hostap-2cd075844185f21c41068d25442903bfdb6fb169.tar.gz
hostap-2cd075844185f21c41068d25442903bfdb6fb169.tar.bz2
P2P: Allow peer to propose channel in invitation process
Make Invitation process for re-invoking a persistent group behave similarly to GO Negotiation as far as channel negotiation is concerned. The Operating Channel value (if present) is used as a starting point if the local device does not have a forced operating channel (e.g., due to concurrent use). Channel lists from devices are then compared to check that the selected channel is in the intersection. If not, channel is selected based on GO Negotiation channel rules (best channel preferences etc.). Invitation Request is rejected if no common channel can be selected. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 8602333..0f00c54 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -642,6 +642,8 @@ void p2p_process_go_neg_conf(struct p2p_data *p2p, const u8 *sa,
const u8 *data, size_t len);
int p2p_connect_send(struct p2p_data *p2p, struct p2p_device *dev);
u16 p2p_wps_method_pw_id(enum p2p_wps_method wps_method);
+void p2p_reselect_channel(struct p2p_data *p2p,
+ struct p2p_channels *intersection);
/* p2p_pd.c */
void p2p_process_prov_disc_req(struct p2p_data *p2p, const u8 *sa,