Handle interface disabled/enabled more consistently
authorJouni Malinen <j@w1.fi>
Thu, 8 Jan 2015 20:39:18 +0000 (22:39 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 8 Jan 2015 20:43:48 +0000 (22:43 +0200)
commit635874b55ad84bcd3e846bb16de50a3c3aacfa06
tree1c2f62c1c5380614beed3013a1b37385197e7b32
parent8f2cf379233bf4e8fc5580c7a03858a7b5581368
Handle interface disabled/enabled more consistently

It was possible for the interface not to be marked in INTERFACE_DISABLED
state in case the event was processed for P2P GO because the wpa_s
instance could have been removed in case of a separate group interface.
Change the state first to avoid leaving different state for the case
where separate group interface is not used.

Mark scan to be a normal scan on INTERFACE_ENABLED so that scanning
rules (e.g., skip scan if no networks enabled) get used consistently.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c