On Debian, I am trying to set up my network to use ad-hoc mode with a static IP address. I also want wpa_supplicant to be running so that I can scan use it to scan for WiFi networks in range.
To get the ad-hoc network with static IP address working I modified the
/etc/network/interfaces file so that it looks like this:
auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0 iface wlan0 inet static address 192.168.1.1 netmask 255.255.255.0 wireless-channel 1 wireless-essid MyNetworkName wireless-mode ad-hoc
But with this configuration, if I try to access
wpa_cli I get an error which indicates that wpa_supplicant is not running. Is there something I can add to this configuration that will allow wpa_supplicant to start up but not be used to connect up to a network?
I suppose I could just use
iwlist scan to find the list of available wireless networks in range... but I already have my parsing setup for the output of
wpa_cli scan_results :)