diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index bb1938dc3..8e0fc35df 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -3332,7 +3332,7 @@ skip_sd: } -static void p2p_sd_cb(struct p2p_data *p2p, int success) +void p2p_sd_query_cb(struct p2p_data *p2p, int success) { p2p_dbg(p2p, "Service Discovery Query TX callback: success=%d", success); @@ -3835,7 +3835,7 @@ void p2p_send_action_cb(struct p2p_data *p2p, unsigned int freq, const u8 *dst, p2p_go_neg_conf_cb(p2p, result); break; case P2P_PENDING_SD: - p2p_sd_cb(p2p, success); + p2p_sd_query_cb(p2p, success); break; case P2P_PENDING_PD: p2p_prov_disc_cb(p2p, success); diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h index 2612be5ad..0a487e031 100644 --- a/src/p2p/p2p_i.h +++ b/src/p2p/p2p_i.h @@ -899,6 +899,9 @@ void p2p_pref_channel_filter(const struct p2p_channels *a, const struct weighted_pcl *freq_list, unsigned int num_channels, struct p2p_channels *res, bool go); + +void p2p_sd_query_cb(struct p2p_data *p2p, int success); + void p2p_dbg(struct p2p_data *p2p, const char *fmt, ...) PRINTF_FORMAT(2, 3); void p2p_info(struct p2p_data *p2p, const char *fmt, ...) diff --git a/src/p2p/p2p_sd.c b/src/p2p/p2p_sd.c index d6882e4a3..5537a6eaa 100644 --- a/src/p2p/p2p_sd.c +++ b/src/p2p/p2p_sd.c @@ -502,7 +502,7 @@ void p2p_rx_gas_initial_resp(struct p2p_data *p2p, const u8 *sa, * received. */ p2p_dbg(p2p, "GAS Initial Request had not yet received TX status - process the response anyway"); - p2p_set_state(p2p, P2P_SD_DURING_FIND); + p2p_sd_query_cb(p2p, 1); } p2p->cfg->send_action_done(p2p->cfg->cb_ctx); p2p_clear_timeout(p2p);