Fixed conditional bug using SPARK_WLAN_START and SPARK_WLAN_SLEEP