I am trying to configure raspberry pi WiFi on Raspbian. I get an error when typing this command.
sudo iwlist wlan0 scan
Here is my /etc/network/interfaces
file
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.4.2
netmask 255.255.255.0
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "iPhone"
wpa-psk "iphone4ss"