igorski81
Posts: 2
Joined: Wed Oct 30, 2013 8:16 pm

WiFi using wpa_supplicant

Wed Oct 30, 2013 8:41 pm

Hello fellow Raspberrians (it beats calling you 'Pies' I guess), to get to the point:

I have a problem regarding Wireless networking on the Raspberry Pi. I'm using a generic dongle which has proven to work fine on other computers, however I'm having trouble connecting to my wireless network on the rpi.

The network is configured to use WPA2-PSK authentication with AES encryption. I have generated a configuration using wpa_passphrase and wpa_supplicant for the ssid and key, have installed the recommended firmware for the dongle but I cannot get any kind of wireless connection (note that the network is broadcasting its name and thus not hidden). I'm running Raspbian (to be more precise XBian beta 1.0 as I intend to use this Pi to run XBMC)

I keep getting the following error when trying to connect using sudo wpa_supplicant -D west -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd

Code: Select all

0: 00:1d:60:ed:60:49 ssid='stofzakje' wpa_ie_len=0 rsn_ie_len=0 caps=0x411 level=-48
wlan0:    skip - no WPA/RSN proto match
which would indicate that the wpa_supplicant.conf doesn't match the actual router configuration. As this was starting to annoy me, you may notice me getting desperate trying several configurations :lol: :

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

# config 1 SHOULD work (AES encryption for WPA2-PSK) network
network={
        priority=1
        ssid="stofzakje"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        #psk="password"
        psk= reallylargestringgeneratedbywpa_passphrasefromabovepsk
}

# config 2 MUMBLE! test if the router is lying or I'm mad
network={
        priority=2
        ssid="stofzakje"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        #psk="password"
        psk= reallylargestringgeneratedbywpa_passphrasefromabovepsk
}

# config 3 shouldn't this act as a catch-all!???
network={
        priority=3
        ssid="stofzakje"
        proto=WPA RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        #psk="password"
        psk=reallylargestringgeneratedbywpa_passphrasefromabovepsk
}

# config 4 the bare minimum in case all of the above properties are wrong
network={
        priority=4
        ssid="stofzakje"
        #psk="password"
        psk=reallylargestringgeneratedbywpa_passphrasefromabovepsk
}
however, when attempting to connect all of the above configurations give the no WPA/RSN proto-match error. It is getting to the point where I'm wondering if this error message is actually hiding another issue that is the actual root of the problem (the actual problem is of course the missus "Can't we get rid of that cable?"-request a few days prior...).

So my question after reading up a lot on wheezy, wpa_supplicant and Linux wi-fi in general is:

Is there anyone who has encountered above problem and been able to figure out what caused it ? Is it perhaps an incompatibility between the dongle and the Pi ? Is it an incompatibility with the router / dongle / pi-match ? Can I sudo apt-get the living daylights out of the thing and fix the problem ? HELP :(

Phill Rymer
Posts: 207
Joined: Sun Nov 04, 2012 3:01 am

Re: WiFi using wpa_supplicant

Thu Oct 31, 2013 1:01 am

I had this problem you need to use tkip which is bungled with the option WPA-PSK(TKIP) + WPA2-PSK(AES) think it labeled personel 2 I swapped to that setting works fine

igorski81
Posts: 2
Joined: Wed Oct 30, 2013 8:16 pm

Re: WiFi using wpa_supplicant

Thu Oct 31, 2013 10:12 pm

I changed the network settings from WPA2-PSK w/ AES to WPA-PSK w/ TKIP but the problem sadly persists, having checked the configuration settings once more (see the configuration file in my first post) to no avail.

The dongle btw connects fine to an open non-secured network...

I updated Xbian to 1.1 hoping something in the fixes would solve the problem, but no. The frustrating thing is that I know the dongle works to the extent that it can see the network, without knowing whether or not it is actually capable of connecting to secured networks when used in the rpi. :(

*edit*

When changing the routers security from WPA to WEP everything connects fine though (using a straight iwconfig wlan0 essid network password induced-connection). Which is fine for now, as I added MAC address filtering in an attempt to fooling me I didn't lose too much in security :P But still, I'd be very much interested to know if people know how to get it to do it the WPA way...

Return to “Networking and servers”