2

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"
Aloha
  • 7,136
  • 1
  • 28
  • 52
Sami Kobbi
  • 123
  • 2

1 Answers1

1

Try this (after running update, upgrade, etc):

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp

wpa-ssid "iPhone"
wpa-psk "iphone4ss"
1''
  • 246
  • 2
  • 5