WPA fails to set PTK with RT5370 wireless adapter

Raspberry Pi 2

WPA fails to set PTK with RT5370 wireless adapter

Postby bddenhartog » Wed Aug 23, 2017 10:36 pm

I'm having trouble getting wireless to work on my Raspberry Pi 2. I've searched around the web, but have been unable to find a solution.

$this->bbcode_second_pass_code('', '$ uname -a
Linux my-hostname 4.9.40-1-ARCH #1 SMP Tue Aug 1 00:59:10 UTC 2017 armv7l GNU/Linux ')

I have the following wireless adapter:

$this->bbcode_second_pass_code('', '$ lsusb | grep Ralink
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter')

and kernel modules:
$this->bbcode_second_pass_code('', '$ lsmod | head -n1 && lsmod | grep rt2
Module Size Used by
rt2800usb 18453 0
rt2800lib 81090 1 rt2800usb
rt2x00usb 10768 1 rt2800usb
rt2x00lib 41509 3 rt2800lib,rt2800usb,rt2x00usb
mac80211 634346 3 rt2800lib,rt2x00lib,rt2x00usb
cfg80211 541845 2 rt2x00lib,mac80211
crc_ccitt 1629 1 rt2800lib')

Using `netctl` failed to connect, so I dug around using `iw` and `wpa_supplicant`:

$this->bbcode_second_pass_code('', '$ sudo zsh -c 'wpa_supplicant -i wlan0 -c <(wpa_passphrase "XXXX" "sOmeAlPhaNumEriCPAssphRase")'
Successfully initialized wpa_supplicant
wlan0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='XXXX' freq=2462 MHz)
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='XXXX freq=2462 MHz)
wlan0: Associated with xx:xx:xx:xx:xx:xx
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='XXXX' freq=2462 MHz)
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='XXXX' freq=2462 MHz)
wlan0: Associated with xx:xx:xx:xx:xx:x
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=xx:xx:xx:xx:xx:xx)
wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="XXXX" auth_failures=1 duration=10 reason=WRONG_KEY
')


It looks like my authentication is failing -- I'm 100% sure that the passphrase I've supplied is correct, and if I remove the WPA2 Personal security from the wireless network, I can connect via `iw dev wlan0 connect <SSID>` just fine. This leads me to believe that `wpa_supplicant` isn't able to correctly authenticate with WPA2 Personal networks. This seems silly. Am I crazy, or is there a step I've missed somewhere?

Most of the resources I've found online suggest that I'm missing two modules, `ccm` and `ctr`, which I can confirm don't exist (via `modprobe`). I'm at a loss for how to add those to the ARM image, or why I would need to in the first place.
bddenhartog
 
Posts: 1
Joined: Wed Aug 23, 2017 10:02 pm

Return to Broadcom

Who is online

Users browsing this forum: No registered users and 2 guests