Add the following to /etc/wpa_supplicant/wpa_supplicant.conf :
eapol_version=2
network={
ssid="SSID_HERE"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=PEAP
identity="USERNAME_HERE"
password=hash:#####################
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
and change /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant :
seach for this string in wpa_supplicant_start() function :
nl80211,wext
and replace the drivers’ order with
wext,nl80211
Check if the wlan0 interface gets an IP address :
ip a