]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix p2p_scan() error processing in p2p_search()
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 9 Feb 2012 10:46:44 +0000 (12:46 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 9 Feb 2012 10:46:44 +0000 (12:46 +0200)
commit165ec7305392b69d4cc8d57af126159a35b2aa1b
tree9e8d8a880a4ca605286c3cdeb460cf453207004f
parent84751b98c151f70c322b6b7f70d967400e147852
P2P: Fix p2p_scan() error processing in p2p_search()

Commit 39185dfa549f076a6be114e0149a3649d302f477 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>
src/p2p/p2p.c