Mark AP disabled if initialization steps fail
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 12 Mar 2014 11:33:22 +0000 (13:33 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 12 Mar 2014 11:55:05 +0000 (13:55 +0200)
commit0f23a5e7d6c1346a009dc532b84eebac8457bf52
treeb1d0d0983fcea9b8073a40ea3ab5404bd7dd7123
parentc2149b08dac100a22bb36f0e3d15a113aad0451f
Mark AP disabled if initialization steps fail

Previously, some of the last initialization steps could fail without
clearly marking the interface disabled. For example, configuring the
channel to the driver could fail, but hostapd would not clearly identify
as the interface not being in functional state apart from not moving it
to the ENABLED state. Send an AP-DISABLED event and mark interface state
DISABLED if such a setup operation fails.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/hostapd.c