Re: Problem setup atheros wifi card using WPA TKIP
"Sam Lefebvre" <[email protected]>
| Newsgroups | gmane.linux.drivers.madwifi.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Pavel,
First I would thank you very much for your help. Struggling with this problems makes me desperate.
See between the lines. I stripped some text in order to make the mail more readable.
> I use the Atheros based WLM54AGP23 card, and use madwifi and
> wpa_supplicant to enable the card for using with WPA TKIP encryption.
One possible thing is to try is ath5k instead of MadWifi. ath5k is a
part of the kernel, and it should be quite good in Linux 2.6.31. You
can load it by:
rmmod ath_pci
modprobe ath5k
Ok, i tried this and i get:
sam@Alix3d3:~$ sudo rmmod ath_pci
sam@Alix3d3:~$ sudo modprobe ath5k
sam@Alix3d3:~$ sudo wpa_supplicant -Dwext -iath4 -c/etc/wpa_supplicant.conf
ioctl[SIOCGIFFLAGS]: No such device
Could not get interface 'ath4' flags
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIWMODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCSIWESSID]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
Failed to disable WPA in the driver.
ioctl[SIOCGIWMODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCSIWESSID]: No such device
ioctl[SIOCGIFFLAGS]: No such device
sam@Alix3d3:~$ sudo wpa_supplicant -Dath5k -iath4 -c/etc/wpa_supplicant.conf
Unsupported driver 'ath5k'.
> sam@Alix3d3:~$ uname -a
>
> Linux Alix3d3 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC
> 2009 i586 GNU/Linux
I think it's not the latest Ubuntu kernel, so you may want to upgrade,
even if it's not related to wireless drivers.
I completely re-installed the embedded Alix3d3 pc in december 2009.
That means that this kernel is one of the latest kernels.
What is the easiest way to update the kernel? (Linux is relatively new for me)
> sam@Alix3d3:~$ sudo nano /etc/wpa_supplicant.conf
You can use cat for that.
Ok, but i see that cat is only to visualise the content of the file, you can't edit it with cat I suppose?
> rl_interface=/var/run/wpa_supplicant
I guess "ct" was lost. I tried your config and I had absolutely no
problem connecting to an AP with TKIP as soon as I put the right ESSID
and password. I tried both MadWifi (current trunk) and ath5k (current
wireless-testing).
Ok, i checked this but the 'lost' "ct" is really in the file, this is because the there was something wrong when copy-paste the file content in the mail. So this is certainly not the cause of the troubles.
> sam@Alix3d3:~$ sudo wpa_supplicant -Dwext -iath4
> -c/etc/wpa_supplicant.conf
>
> Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462MHz)
>
> Associated with 00:00:00:00:00:00
That's the first indication of trouble. I suggest that you turn off
NetworkManager and kill any instances of wpa_supplicant that me be already
running. I believe that's the most likely reason why wpa_supplicant is
failing for you.
Indeed, I have also seen that the message 'Associated with 00:00:00:00:00:00' regulary returns. Somethimes the assiciation with 00:30:bd:9a:04:da was succeeded and I get the error that 4-way handshaking was failed. But the system tries this in an endless loop. Please tell me the steps that i can follow in order to turn off NetworkManager and kill any instances of wpa_supplicant that may be already running.
> I get always the message 'WPA: 4-Way Handshake failed - pre-shared key
> may be incorrect', and I’m sure that my password is correct typed in
> the config file.
I think if wpa_supplicant gets the BSSID wrong, the encryption will fail.
What is the difference between BSSID and SSID? The SSID of my acces point is certainly sent-out, because I activate it in the Belkin config and I can see it on other (windows) pc's. See also the scan lower in this mail.
One thing that also may be the cause of the current problems is the version of madwifi driver. On the site http://madwifi-project.org/ I can read "In case you use kernel 2.6.25 or newer, you need to get this snapshot of the madwifi-0.9.4 branch instead of the v0.9.4 release! That snapshot is basically v0.9.4 plus compilation fixes for recent kernels." Because my kernel is newer than 2.6.25 (2.6.31) and and I used "madwifi-0.9.4-r4110-20100119.tar.gz" instead of this link which points to "madwifi-0.9.4-current.tar.gz", this can be an issue. Do you think it is recommended to re-install the driver before I try other things? What is the best way to do that smoothly?
Another guy said me that I have to check if my Belkin uses WPA1 or WPA2. When I check this, I can see that it is definitly WPA1. I have no idea how I can verify it in the config file.
sam@Alix3d3:~$ iwlist scan
...
Cell 04 - Address: 00:30:BD:9A:04:DA
ESSID:"belkin54g"
Mode:Master
Frequency:2.462 GHz (Channel 11)
Quality=39/70 Signal level=-56 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Best Regards,
Sam Lefebvre
--
Regards,
Pavel Roskin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Madwifi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-users