P2P: Handle INTERFACE_DISABLED event on a P2P GO interface
authorIlan Peer <ilan.peer@intel.com>
Mon, 2 Sep 2013 12:40:59 +0000 (15:40 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 24 Nov 2013 10:29:20 +0000 (12:29 +0200)
commit6f72577f2963759898f18e86294c275aaed9de9a
tree11bca9265228ece188e8c4d29a824aeb1af34fed
parent336167c80e4bf46e4c9974e81bb8cf72e56bb75e
P2P: Handle INTERFACE_DISABLED event on a P2P GO interface

An INTERFACE_DISABLED event received on an interface that is
currently operating a P2P GO means that the group session ended.
In such a case, if the interface was dynamically added remove it, and
if not, remove all the network blocks that are temporary, assuming
that if needed a new session will be started by an external entity.

The use case was triggering rfkill (both SW and HW). This case popped up
as part of a testing cycle, where after a toggle in the rfkill state,
the result was that the interface was not deleted, but on the other hand
the wpa_supplicant did not configure the kernel to re-start the AP
functionality again.

Signed-hostap: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/events.c