]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Fix group formation after previous commit
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 Sep 2011 18:48:07 +0000 (21:48 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 29 Sep 2011 18:48:07 +0000 (21:48 +0300)
p2p_in_progress() have to ignore P2P_PROVISIONING state to allow
station mode (which includes P2P client) scan to work.

src/p2p/p2p.c

index 62926b544126d9ad210ca3db3059b3a24df44e64..816196af2f271d744b43d4d703ed916df3a28db0 100644 (file)
@@ -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;
 }