P2P: Fix p2p_scan() error processing in p2p_search()
Commit 39185dfa54
changed the p2p_scan()
callback to return 1 in some cases, but forgot to change this p2p_scan()
call to handle that properly. Fix this by processing any non-zero value
as an error. This regression could leave the P2P module in state where
it believed a P2P scan was still running and refused to start some
operations until that scan gets completed (which would never happen
since it was not really started).
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
84751b98c1
commit
165ec73053
1 changed files with 1 additions and 1 deletions
|
@ -824,7 +824,7 @@ static void p2p_search(struct p2p_data *p2p)
|
||||||
|
|
||||||
if (p2p->cfg->p2p_scan(p2p->cfg->cb_ctx, type, freq,
|
if (p2p->cfg->p2p_scan(p2p->cfg->cb_ctx, type, freq,
|
||||||
p2p->num_req_dev_types, p2p->req_dev_types,
|
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,
|
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
|
||||||
"P2P: Scan request failed");
|
"P2P: Scan request failed");
|
||||||
p2p_continue_find(p2p);
|
p2p_continue_find(p2p);
|
||||||
|
|
Loading…
Reference in a new issue