Fix issue with missing scanning after power up
[platform/upstream/connman.git] / plugins / supplicant.c
index 405aac6..c3fc07c 100644 (file)
@@ -898,6 +898,9 @@ static int initiate_scan(struct supplicant_task *task)
 
        DBG("task %p", task);
 
+       if (task->path == NULL)
+               return -EINVAL;
+
        if (task->scan_call != NULL)
                return -EALREADY;