Browse Source

P2P: Fix group formation after previous commit

p2p_in_progress() have to ignore P2P_PROVISIONING state to allow
station mode (which includes P2P client) scan to work.
Jouni Malinen 13 years ago
parent
commit
fc6997b345
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/p2p/p2p.c

+ 1 - 1
src/p2p/p2p.c

@@ -3687,5 +3687,5 @@ int p2p_in_progress(struct p2p_data *p2p)
 {
 	if (p2p == NULL)
 		return 0;
-	return p2p->state != P2P_IDLE;
+	return p2p->state != P2P_IDLE && p2p->state != P2P_PROVISIONING;
 }