View previous topic :: View next topic |
Author |
Message |
uhclem n00b
Joined: 16 Feb 2007 Posts: 4
|
Posted: Sat Feb 17, 2007 4:29 am Post subject: wpa_supplicant and atheros: scans but will not associate |
|
|
Problem: Using wpa_supplicant and an atheros card, APs can be scanned but no association made, even on an open AP
Symptom: When wpa_supplicant is run manually, it can be seen that it is able to see the available access points but it then is unable to associate with the configured AP.
Base hardware: IBM Thinkpad T60 with an IBM a/b/g (Atheros) wireless card
lspci -v: Quote: | 3:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
Subsystem: IBM Unknown device 058a
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at edf00000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
Capabilities: [60] Express Legacy Endpoint IRQ 0
Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel |
/etc/conf.d/net: Quote: |
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
routes_eth0=( "default via 192.168.0.1" )
config_eth0=( "192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255" )
# wireless setup
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dmadwifi -c/etc/wpa_supplicant/wpa_supplicant.conf"
wpa_timeout_ath0=120
config_ath0=( "dhcp" )
|
/etc/wpa_supplicant/wpa_supplicant.conf: Quote: |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=10
update_config=1
network={
ssid="interzone-g"
key_mgmt=NONE
}
|
ath0 Link encap:Ethernet HWaddr 00:19:7D:1E:80:F9
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)[/quote]
iwconfig ath0: Quote: |
ath0 Link encap:Ethernet HWaddr 00:19:7D:1E:80:F9
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
emerge -s madwifi-ng: Quote: |
Searching...
[ Results for search key : madwifi-ng ]
[ Applications found : 2 ]
* net-wireless/madwifi-ng
Latest version available: 0.9.2.1
Latest version installed: 0.9.2.1
Size of files: 3,395 kB
Homepage: http://www.madwifi.org/
Description: Next Generation driver for Atheros based IEEE 802.11a/b/g wireless LAN cards
License: as-is || ( BSD GPL-2 )
* net-wireless/madwifi-ng-tools
Latest version available: 0.9.2
Latest version installed: 0.9.2
Size of files: 3,395 kB
Homepage: http://www.madwifi.org/
Description: Next Generation tools for configuration of Atheros based IEEE 802.11a/b/g wireless LAN cards
License: || ( BSD GPL-2 )
|
uname -a: Quote: |
Linux t60 2.6.19-gentoo-r5 #3 SMP Thu Feb 15 15:55:00 EST 2007 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GNU/Linux |
emerge -pv wpa_supplicant: Quote: |
[ebuild R ] net-wireless/wpa_supplicant-0.5.4 USE="dbus madwifi qt3 qt4 readline ssl -gsm" 0 kB
|
/etc/make.conf: Quote: |
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
#CFLAGS="-O2 -march=i686 -pipe"
CFLAGS="-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
ACCEPT_KEYWORDS=""
USE="-gtk -gnome -gdbm X alsa arts avi bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox gif gpm gstreamer hal input_devices_evdev input_devices_keyboard input_devices_mouse imlib ipv6 isdnlog jpeg kde kernel_linux ldap libg++ mad madwifi mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU vorbis win32codecs x86 xml xorg xv zlib"
FEATURES="sandbox ccache distlocks autoddcvs parallel-fetch"
VIDEO_CARDS="fglrxi vesa fbdev"
INPUT_DEVICES="keyboard mouse synaptics"
|
iwlist ath0 scan: Quote: |
ath0 Scan completed :
Cell 01 - Address: 00:0F:66:39:BA:0F
ESSID:"linksys"
Mode:Master
Frequency:2.437 GHz (Channel 6)
Quality=12/94 Signal level=-83 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
Cell 02 - Address: 00:13:10:B1:AE:92
ESSID:"linksysOD2"
Mode:Master
Frequency:2.412 GHz (Channel 1)
Quality=5/94 Signal level=-90 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=50
Cell 03 - Address: 00:18:F8:F8:5E:80
ESSID:"SHOCOLON1"
Mode:Master
Frequency:2.437 GHz (Channel 6)
Quality=3/94 Signal level=-92 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
Cell 04 - Address: 00:06:25:3C:90:AD
ESSID:"interzone-g"
Mode:Master
Frequency:2.462 GHz (Channel 11)
Quality=31/94 Signal level=-64 dBm Noise level=-95 dBm
Encryption key:off
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
Cell 05 - Address: 00:16:B6:0F:C3:7D
ESSID:"ejohome"
Mode:Master
Frequency:2.462 GHz (Channel 11)
Quality=1/94 Signal level=-94 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
Cell 06 - Address: 00:18:39:65:B7:DA
ESSID:"skelly"
Mode:Master
Frequency:2.437 GHz (Channel 6)
Quality=6/94 Signal level=-89 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
|
running wpa_supplicant manually like this: Quote: |
wpa_supplicant -dd -Dmadwifi -iath0 -c/etc/wpa_supplicant/wpa_supplicant.conf |
results in this: Quote: |
Initializing interface 'ath0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=10
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=11):
69 6e 74 65 72 7a 6f 6e 65 2d 67 interzone-g
key_mgmt: 0x4
Priority group 0
id=0 ssid='interzone-g'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=21 WE(source)=13 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:19:7d:1e:80:f9
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 6
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 192 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:13:10:b1:ae:92 ssid='linksysOD2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
Wireless event: cmd=0x8b19 len=8
Received 985 bytes of scan results (5 BSSes)
Scan results: 5
Selecting BSS from priority group 0
0: 00:0f:66:39:ba:0f ssid='linksys' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
1: 00:16:b6:0f:c3:7d ssid='ejohome' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
2: 00:18:39:65:b7:da ssid='skelly' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
3: 00:13:10:b1:ae:92 ssid='linksysOD2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
4: 00:18:f8:f8:5e:80 ssid='SHOCOLON1' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
Wireless event: cmd=0x8b19 len=8
Received 1179 bytes of scan results (6 BSSes)
Scan results: 6
Selecting BSS from priority group 0
0: 00:0f:66:39:ba:0f ssid='linksys' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
1: 00:16:b6:0f:c3:7d ssid='ejohome' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
2: 00:18:39:65:b7:da ssid='skelly' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
3: 00:13:10:b1:ae:92 ssid='linksysOD2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
4: 00:18:f8:f8:5e:80 ssid='SHOCOLON1' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
5: 00:06:25:3c:90:ad ssid='interzone-g' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
selected non-WPA AP 00:06:25:3c:90:ad ssid='interzone-g'
Trying to associate with 00:06:25:3c:90:ad (SSID='interzone-g' freq=2462 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_madwifi_associate
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=19
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:06:25:3c:90:ad into blacklist
State: ASSOCIATING -> DISCONNECTED
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
Wireless event: cmd=0x8b19 len=8
Received 1179 bytes of scan results (6 BSSes)
Scan results: 6
Selecting BSS from priority group 0
0: 00:0f:66:39:ba:0f ssid='linksys' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
1: 00:16:b6:0f:c3:7d ssid='ejohome' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
2: 00:18:39:65:b7:da ssid='skelly' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
3: 00:13:10:b1:ae:92 ssid='linksysOD2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
4: 00:18:f8:f8:5e:80 ssid='SHOCOLON1' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
5: 00:06:25:3c:90:ad ssid='interzone-g' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
selected non-WPA AP 00:06:25:3c:90:ad ssid='interzone-g'
Trying to associate with 00:06:25:3c:90:ad (SSID='interzone-g' freq=2462 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_madwifi_associate
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=19
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:06:25:3c:90:ad blacklist count incremented to 2
State: ASSOCIATING -> DISCONNECTED
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface ath0
State: SCANNING -> DISCONNECTED
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
wpa_driver_madwifi_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
WEXT: Operstate: linkmode=0, operstate=6
Removed BSSID 00:06:25:3c:90:ad from blacklist (clear)
Cancelling scan request
|
ifconfig ath0:[quote]
This repeats over and over; I have stopped it with a control-c.
This is a new laptop, so I also gave it a try with Knoppix 5.0.1. I could not get an ath0 at all using that.
I have tried dropping back one version of madwifi-ng, to no avail.
I have followed the think-wiki guide to configuring the kernel - I can post the .config file if necessary.[/code] _________________ Multiculturalism is the death of all cultures. |
|
Back to top |
|
|
uhclem n00b
Joined: 16 Feb 2007 Posts: 4
|
Posted: Sun Feb 18, 2007 2:08 am Post subject: Update - Solved (working in 802.11b only) |
|
|
Update:
I poked around with manual iwconfig commands and was able to get it to associate once I did:
Quote: |
iwpriv ath0 mode 2
|
I also discoverd that I did not, as I thought, have dhcpcd installed. But that probably wasn't keeping it from associating.
I went back and tried wpa_supplicant and was able to get it to work with open, WEP and WPA.
Now, I have a WAP54G, which is set up in mixed-mode. I can only get it ath0 to associate using 802.11b though.
I tried setting the AP to g-only, but it did not help.
So, I am not sure what the deal is, but mode 2 (802.11b) is fine for now. I am glad for not having to install windows to make sure this brand-new laptop is working.
The default is mode 0 (auto) (from http://madwifi.org/wiki/UserDocs/iwpriv). Not sure whay that would not work.
Interestingly, the wireless light does not come on once it associates.
Problem resolution:
'iwpriv ath0 mode 2'
Hope this helps someone else trying to get madwifi to work. _________________ Multiculturalism is the death of all cultures. |
|
Back to top |
|
|
WildChild Apprentice
Joined: 14 Sep 2003 Posts: 171
|
|
Back to top |
|
|
Abraxas l33t
Joined: 25 May 2003 Posts: 814
|
Posted: Tue Mar 20, 2007 3:39 am Post subject: Re: wpa_supplicant and atheros: scans but will not associate |
|
|
I know this post is a little old but I came across it today and if this is still a problem I may have the solution. The following line in your /etc/conf.d/net might be the problem:
Quote: | wpa_supplicant_ath0="-Dmadwifi -c/etc/wpa_supplicant/wpa_supplicant.conf" |
Madwifi-ng uses -Dwext now instead of -Dmadwifi. I use that setup with my madwifi card and it works well with wpa_supplicant. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|