]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Document p2p_in_progress() return value 2
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 30 Oct 2014 18:13:16 +0000 (20:13 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 30 Oct 2014 22:50:01 +0000 (00:50 +0200)
Function documentation was not in sync with the implementation.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.h

index b1bc3d4da44ef4f7c939a1d78d7dcd04771a6384..fa886f742b23ce9eb7de0b430262c8d80d3787e7 100644 (file)
@@ -1922,7 +1922,8 @@ int p2p_set_no_go_freq(struct p2p_data *p2p,
 /**
  * p2p_in_progress - Check whether a P2P operation is progress
  * @p2p: P2P module context from p2p_init()
- * Returns: 0 if P2P module is idle or 1 if an operation is in progress
+ * Returns: 0 if P2P module is idle, 1 if an operation is in progress but not
+ * in search state, or 2 if search state operation is in progress
  */
 int p2p_in_progress(struct p2p_data *p2p);