English is not my native language so please be patient.
When I don't know how to configure something, sometimes I let the system do it for me, mostly of the times, things works with default values. In this case, if you don't know the function of the pairwise
and group
parameters. You could check this Page or read below:
pairwise: list of accepted pairwise (unicast) ciphers for WPA CCMP =
AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0] TKIP =
Temporal Key Integrity Protocol [IEEE 802.11i/D7.0] NONE = Use only
Group Keys (deprecated, should not be included if APs support pairwise
keys) If not set, this defaults to: CCMP TKIP
group: list of accepted group (broadcast/multicast) ciphers for WPA
CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0] WEP104 =
WEP (Wired Equivalent Privacy) with 104-bit key WEP40 = WEP (Wired
Equivalent Privacy) with 40-bit key [IEEE 802.11] If not set, this
defaults to: CCMP TKIP WEP104 WEP40
This setup works for me, change it according to your ssid and password (psk)
/etc/network/interfaces
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
# ap_scan can be 0, 1, or 2. Some sources say use 2 but 1 work for me.
ap_scan=1
eapol_version=1
network={
ssid="YOURSSID"
# This is needed for hidden SSIDs
scan_ssid=1
mode=0
psk="reallylonghexnumber"
# RSN for WPA2 or WPA for WPA1
proto=RSN
# WPA-PSK or WPA-EAP
key_mgmt=WPA-PSK
# CCMP for AES or TKIP for TKIP.
pairwise=CCMP
# OPEN for WPA1/2 or SHARED or LEAP
auth_alg=OPEN
}
About the line scan_ssid=1
will be some controversy because some more experimented users don't like the hidden ssid thing, but this works for me.
Hopefully this works for you also.
Sources:
https://linuxtechie.wordpress.com/2014/08/23/setting-up-raspberry-pi-with-wifi-and-a-static-ip-on-a-hidden-ssid/
https://geekytheory.com/tutorial-raspberry-pi-configurar-wif/
http://www.cs.upc.edu/lclsi/Manuales/wireless/files/wpa_supplicant.conf