Wi-Fi connect/disconnect is working properly through GUI. But when we use wpa_cli application through command line,we are getting following error,
root@sabresd_6dq:/ # wpa_cli -i wlan0
Copyright (c) 2004-2015, Jouni Malinen <firstname.lastname@example.org> and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
Could not connect to wpa_supplicant: wlan0 - re-trying
root@sabresd_6dq:/ # wpa_cli scan
Using interface 'wlan0'
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Please provide any solution for this. how to make it work wpa_cli through command line.