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,

See again between the lines.

> 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

The network device is probably called wlan0, not ath4.  Use iwconfig to
see which devices you have.

Ok, this is indeed wlan0:
sam@Alix3d3:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11abg  Mode:Managed  Frequency:2.462 GHz
          Access Point: Not-Associated   Tx-Power=27 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

But it don't works:

sam@Alix3d3:~$ sudo wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462 MHz)
Associated with 00:30:bd:9a:04:da
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462 MHz)
Associated with 00:30:bd:9a:04:da
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
^CCTRL-EVENT-TERMINATING - signal 2 received

My lsmod is:

sam@Alix3d3:~$ lsmod
Module                  Size  Used by
ath5k                 124260  0
nls_cp437               5372  1
cifs                  254652  2
arc4                    1660  2
mac80211              181140  1 ath5k
led_class               4096  1 ath5k
ath                     8060  1 ath5k
cfg80211               93052  3 ath5k,mac80211,ath
wlan_wep                6108  0
ppdev                   6688  0
smbfs                  59232  0
wlan_scan_sta          12028  0
ath_rate_sample        11964  0
snd_cs5535audio        11752  0
snd_ac97_codec        101216  1 snd_cs5535audio
ac97_bus                1532  1 snd_ac97_codec
snd_pcm_oss            37920  0
snd_mixer_oss          16028  1 snd_pcm_oss
snd_pcm                75296  3 snd_cs5535audio,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy           2656  0
snd_seq_oss            28576  0
snd_seq_midi            6432  0
snd_rawmidi            22208  1 snd_seq_midi
snd_seq_midi_event      6940  2 snd_seq_oss,snd_seq_midi
iptable_filter          3100  0
snd_seq                50224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
ip_tables              11692  1 iptable_filter
wlan                  199088  3 wlan_wep,wlan_scan_sta,ath_rate_sample
snd_timer              22276  2 snd_pcm,snd_seq
ecb                     2524  2
x_tables               16544  1 ip_tables
ath_hal               192272  1 ath_rate_sample
snd_seq_device          6920  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
aes_i586                8124  0
snd                    59204  10 snd_cs5535audio,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
lp                      8964  0
aes_generic            27484  1 aes_i586
soundcore               7264  1 snd
parport                35340  2 ppdev,lp
geode_aes               5700  0
snd_page_alloc          9156  2 snd_cs5535audio,snd_pcm
cs5535_gpio             3932  0
geode_rng               1724  0
usbhid                 38208  0
via_rhine              22212  0
mii                     5212  1 via_rhine

Which module could occupy the device?




> sam@Alix3d3:~$ sudo wpa_supplicant -Dath5k -iath4 -c/etc/wpa_supplicant.conf
> Unsupported driver 'ath5k'.

The native interface for ath5k and most modern drivers is "nl80211", but
"wext" should work just fine.

This does not work at all: 

sam@Alix3d3:~$ sudo wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf
Unsupported driver 'nl80211'.







> > 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)

sudo apt-get update --> gives lots of errors (translation from Dutch: Geraakt = 'hit', Genegeerd = 'denied', mislukt = 'failed', Ophalen = 'load')
sudo apt-get upgrade --> was already successfully done

sam@Alix3d3:~$ sudo apt-get update
Geraakt http://be.archive.ubuntu.com karmic Release.gpg
Geraakt http://be.archive.ubuntu.com karmic/main Translation-nl
Geraakt http://be.archive.ubuntu.com karmic/restricted Translation-nl
Genegeerd http://be.archive.ubuntu.com karmic/non-free Translation-nl
Geraakt http://be.archive.ubuntu.com karmic/universe Translation-nl
Geraakt http://be.archive.ubuntu.com karmic/multiverse Translation-nl
Geraakt http://be.archive.ubuntu.com karmic-updates Release.gpg
Genegeerd http://be.archive.ubuntu.com karmic-updates/main Translation-nl
Genegeerd http://be.archive.ubuntu.com karmic-updates/restricted Translation-nl
Genegeerd http://be.archive.ubuntu.com karmic-updates/non-free Translation-nl
Geraakt http://security.ubuntu.com karmic-security Release.gpg
Genegeerd http://security.ubuntu.com karmic-security/main Translation-nl
Genegeerd http://be.archive.ubuntu.com karmic-updates/universe Translation-nl
Genegeerd http://be.archive.ubuntu.com karmic-updates/multiverse Translation-nl
Genegeerd http://security.ubuntu.com karmic-security/restricted Translation-nl
Genegeerd http://security.ubuntu.com karmic-security/non-free Translation-nl
Genegeerd http://security.ubuntu.com karmic-security/universe Translation-nl
Genegeerd http://security.ubuntu.com karmic-security/multiverse Translation-nl
Geraakt http://security.ubuntu.com karmic-security Release
Geraakt http://be.archive.ubuntu.com karmic Release
Geraakt http://be.archive.ubuntu.com karmic-updates Release
Geraakt http://security.ubuntu.com karmic-security/main Packages
Geraakt http://security.ubuntu.com karmic-security/restricted Packages
Geraakt http://be.archive.ubuntu.com karmic/main Packages
Geraakt http://be.archive.ubuntu.com karmic/restricted Packages
Geraakt http://be.archive.ubuntu.com karmic-updates/main Packages
Geraakt http://be.archive.ubuntu.com karmic-updates/restricted Packages
W: Ophalen van http://be.archive.ubuntu.com/ubuntu/dists/karmic/Release Unable to find expected entry  non-free/binary-i386/Packages in Meta-index file (malformed Release file?) is mislukt

W: Ophalen van http://be.archive.ubuntu.com/ubuntu/dists/karmic-updates/Release Unable to find expected entry  non-free/binary-i386/Packages in Meta-index file (malformed Release file?) is mislukt

W: Ophalen van http://security.ubuntu.com/ubuntu/dists/karmic-security/Release Unable to find expected entry  non-free/binary-i386/Packages in Meta-index file (malformed Release file?) is mislukt

E: Ophalen van sommige indexbestanden is mislukt, deze zijn of genegeerd, of er zijn oudere versies van gebruikt.




sam@Alix3d3:~$ sudo apt-get upgrade
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De status informatie wordt gelezen... Klaar
De volgende pakketten zijn achtergehouden:
  linux-generic linux-headers-generic linux-image-generic
0 pakketten opgewaardeerd, 0 pakketten nieuw geïnstalleerd, 0 te verwijderen en 3 niet opgewaardeerd.





> > 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.

NetworkManager can be turned off with GUI.  Right-click on the network
icon and uncheck "Enable Networking".  

Ok, I checked this and there is no bookmark against 'wireless connection'.
I have to enable 'wired connection' otherwise I can't anymore login through the fixed interface with putty.


wpa_supplicant can be killed by killall:
killall wpa_supplicant

This is also not a solution:

sam@Alix3d3:~$ sudo killall wpa_supplicant
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=2462 MHz)
Authentication with 00:30:bd:9a:04:da timed out.
Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462 MHz)
Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462 MHz)
Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462 MHz)
Associated with 00:30:bd:9a:04:da
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:30:bd:9a:04:da (SSID='belkin54g' freq=2462 MHz)
Associated with 00:30:bd:9a:04:da
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
^CCTRL-EVENT-TERMINATING - signal 2 received


What can i more try?

Kind regards,
Sam


------------------------------------------------------------------------------
Download Intel&#174; 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.