diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index e7ce2308f..82932aae7 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -824,7 +824,7 @@ static void p2p_search(struct p2p_data *p2p) if (p2p->cfg->p2p_scan(p2p->cfg->cb_ctx, type, freq, p2p->num_req_dev_types, p2p->req_dev_types, - p2p->find_dev_id) < 0) { + p2p->find_dev_id)) { wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Scan request failed"); p2p_continue_find(p2p);