P2P: Remove P2P group on driver resource becoming unavailable
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 25 Oct 2010 16:16:11 +0000 (19:16 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 Oct 2010 16:16:11 +0000 (19:16 +0300)
commitc973f3868aec100036ecfe60d28ad67192725b69
treea6506ef8e0d66dd14b99ffe3547485add8630954
parent129eb428b1c8511d1d872e62b0b8e34c7f55f815
P2P: Remove P2P group on driver resource becoming unavailable

Add a new driver event, EVENT_INTERFACE_UNAVAILABLE, for indicating
that the driver is not able to continue operating the virtual
interface in its current mode anymore, e.g., due to operating
channel for GO interface forced to a DFS channel by another virtual
interface.

When this happens for a P2P group interface, the P2P group will
be terminated and P2P-GROUP-REMOVED event shows the reason for
this as follows:
P2P-GROUP-REMOVED wlan0 GO reason=UNAVAILABLE
src/drivers/driver.h
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/wpa_supplicant_i.h