return -1;
p2p->pending_action_state = P2P_PENDING_PD;
- if (p2p_send_action(p2p->cfg->cb_ctx, freq, dev->p2p_device_addr,
+ if (p2p_send_action(p2p, freq, dev->p2p_device_addr,
p2p->cfg->dev_addr, dev->p2p_device_addr,
wpabuf_head(req), wpabuf_len(req), 200) < 0) {
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
p2p->sd_query = query;
p2p->pending_action_state = P2P_PENDING_SD;
- if (p2p_send_action(p2p->cfg->cb_ctx, freq, dev->p2p_device_addr,
+ if (p2p_send_action(p2p, freq, dev->p2p_device_addr,
p2p->cfg->dev_addr, dev->p2p_device_addr,
wpabuf_head(req), wpabuf_len(req), 5000) < 0) {
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
return;
p2p->pending_action_state = P2P_NO_PENDING_ACTION;
- if (p2p_send_action(p2p->cfg->cb_ctx, freq, dst, p2p->cfg->dev_addr,
+ if (p2p_send_action(p2p, freq, dst, p2p->cfg->dev_addr,
p2p->cfg->dev_addr,
wpabuf_head(resp), wpabuf_len(resp), 200) < 0)
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,