events: add new network on decode

On successfull smart config decode, add a new enabled network,
and save it (if update_config=1).

Signed-off-by: Eliad Peller <eliad@wizery.com>
events: reuse wpa_supplicant_smart_config_stop

on SMART_CONFIG_DECODE event, reuse wpa_supplicant_smart_config_stop
instead of duplicating its actions.

Signed-off-by: Eliad Peller <eliad@wizery.com>
events: add another network entry for smart_config WEP keys

in case of hex keys with len=10/26, add another network
block with wep encryption.

Signed-off-by: Eliad Peller <eliad@wizery.com>
wpa_ctrl: add smart_config events

Add events for SYNC completion and DECODE completion.

Signed-off-by: Eliad Peller <eliad@wizery.com>
events: sleep a bit after canceling scans

After canceling scans, sleep a bit before requesting
to ROC, so they won't collide.

Signed-off-by: Eliad Peller <eliad@wizery.com>