From: Shivani Baranwal Date: Sun, 4 Aug 2024 21:13:59 +0000 (+0530) Subject: P2P2: Export p2p_build_go_neg_req() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58cc67c72f0dbd8bf7445296f9b0d7f0cebf74f9;p=thirdparty%2Fhostap.git P2P2: Export p2p_build_go_neg_req() This is needed for PASN pairing. Signed-off-by: Shivani Baranwal --- diff --git a/src/p2p/p2p_go_neg.c b/src/p2p/p2p_go_neg.c index 67dc98ff7..ac6bbf75f 100644 --- a/src/p2p/p2p_go_neg.c +++ b/src/p2p/p2p_go_neg.c @@ -135,8 +135,8 @@ static const char * p2p_wps_method_str(enum p2p_wps_method wps_method) } -static struct wpabuf * p2p_build_go_neg_req(struct p2p_data *p2p, - struct p2p_device *peer) +struct wpabuf * p2p_build_go_neg_req(struct p2p_data *p2p, + struct p2p_device *peer) { struct wpabuf *buf; struct wpabuf *subelems; diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h index 409aacca6..28e3121cc 100644 --- a/src/p2p/p2p_i.h +++ b/src/p2p/p2p_i.h @@ -889,6 +889,8 @@ void p2p_rx_gas_comeback_resp(struct p2p_data *p2p, const u8 *sa, int p2p_start_sd(struct p2p_data *p2p, struct p2p_device *dev); /* p2p_go_neg.c */ +struct wpabuf * p2p_build_go_neg_req(struct p2p_data *p2p, + struct p2p_device *peer); int p2p_peer_channels_check(struct p2p_data *p2p, struct p2p_channels *own, struct p2p_device *dev, const u8 *channel_list, size_t channel_list_len);