P2P: Try to re-create group interface if pending one is not available
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 18 Oct 2010 14:00:50 +0000 (17:00 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 18 Oct 2010 14:00:50 +0000 (17:00 +0300)
commitd75e8806961cd9dc0e489083ed405e89887b189f
treed21b0b37be4802063f8ac4a0ffec93fb66bfeda0
parent99ba7f889b95dfc8e895a0d691238260124a414d
P2P: Try to re-create group interface if pending one is not available

This is needed to work around cases where the pending interface gets
removed, e.g., due to failed GO Negotiation. In such case, we may still
accept new GO Negotiation to be completed, but the interface did not
get created without a separate p2p_connect command.

The current implementation is not ideal since the re-created interface
may, at least in theory, get incorrect interface addrees. Though, this
would likely require that the driver supported more than one P2P group
interface and that the previous one was already taken into use for
another group.
wpa_supplicant/p2p_supplicant.c