]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Export p2p_build_go_neg_req()
authorShivani Baranwal <quic_shivbara@quicinc.com>
Sun, 4 Aug 2024 21:13:59 +0000 (02:43 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Sep 2024 22:06:32 +0000 (01:06 +0300)
This is needed for PASN pairing.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
src/p2p/p2p_go_neg.c
src/p2p/p2p_i.h

index 67dc98ff733853d3b4e946bbee3ef075dbda1657..ac6bbf75fcd82cec58c442083957830a137e32a4 100644 (file)
@@ -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;
index 409aacca6b099936eba2d0c02ba11f169560600a..28e3121cc172e75b33020001dd39aa21ac145890 100644 (file)
@@ -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);