Fixed conditional code bug that uses SPARK_WLAN_START and SPARK_WLAN_SLEEP