Edit file /etc/wpa_supplicant/wpa_supplicant.conf
Original (don't change this):
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
If you use WPA2 add this below:
Code: Select all
network={
ssid="YOUR SSID HERE"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=TKIP
psk="YOUR KEY HERE"
}
If you use WPA change your settings to this:
Code: Select all
proto=WPA
pairwise=TKIP
group=TKIP
If (WPA2) don't work try this combination:
or this:
If you want to use a static ip edit file /etc/network/interfaces
Original:
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Change last line to:
Add this lines below (the addresses must fit to your network!):
Code: Select all
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
All files need to be edited with command "sudo nano FILENAME". If you edit this files on a running Pi you need to reboot to apply your changes.
Sorry for my bad english
