View previous topic :: View next topic |
Author |
Message |
Norick n00b
Joined: 12 Sep 2003 Posts: 31 Location: Prague
|
Posted: Tue Jul 17, 2007 2:02 pm Post subject: Madwifi, ath0 associating, but not associated; worked before |
|
|
Hello,
I have a problem with my Atheros chipset card. I have a option of connecting two aps(both freebsd) and neither of them works. Both of them worked before (but never 100% without problems). The problem began, when I returned from holiday. There might have been blackout or whatever (I found router rebooted). When I was leaving router was happily connected to PL2NO network (I used it for better signal quality) and worked, however my atheros was always experiencing some problems. Admin of ap says that he has not made any changesin ap configuration.
We do not use any form of encryption or enhanced security.
I use madwifi-ng and madwifi-ng-tools version 0.9.3.1.
Code: | iwlist ath0 scan
Cell 01 - Address: 00:0E:8E:0F:E7:E4
ESSID:"BUK2NORICK"
Mode:Master
Frequency:5.54 GHz (Channel 108)
Quality=19/94 Signal level=-76 dBm Noise level=-95 dBm
Encryption key:off
Bit Rates: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=100
Cell 08 - Address: 00:14:A5:3C:85:8D
ESSID:"PL2NO"
Mode:Master
Frequency:5.5 GHz (Channel 100)
Quality=20/94 Signal level=-75 dBm Noise level=-95 dBm
Encryption key:off
Bit Rates: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=100
|
Code: | confcat /etc/wpa_supplicant/wpa_supplicant.conf
ap_scan=1
network={
ssid="BUK2NORICK"
key_mgmt=NONE
priority=10
}
network={
ssid="PL2NO"
key_mgmt=NONE
priority=15
} |
Code: |
confcat /etc/conf.d/net
config_eth0= ...
config_wlan1= ...
config_wlan2= ...
config_ath0= ....
modules_wlan1=( "iwconfig" )
mode_wlan1="Managed"
essid_wlan1="secret"
modules_wlan2=( "iwconfig" )
mode_wlan2="Master"
essid_wlan2="secret"
channel_wlan2="9"
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dwext"
|
Code: |
wpa_cli shows:
<2>Trying to associate with 00:0e:8e:0f:e7:e4 (SSID='BUK2NORICK' freq=5540 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0e:8e:0f:e7:e4 (SSID='BUK2NORICK' freq=5540 MHz)
<2>Trying to associate with 00:14:a5:3c:85:8d (SSID='PL2NO' freq=5500 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:14:a5:3c:85:8d (SSID='PL2NO' freq=5500 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0e:8e:0f:e7:e4 (SSID='BUK2NORICK' freq=5540 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0e:8e:0f:e7:e4 (SSID='BUK2NORICK' freq=5540 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
|
I do not understand why it is authenticating with 00:00:00:00:00:00
This one show correct frequency, but immediately switches to different frequency
Code: | iwconfig ath0
ath0 IEEE 802.11a ESSID:"PL2NO" Nickname:""
Mode:Managed Frequency:5.5 GHz Access Point: 00:14:A5:3C:85:8D
Bit Rate:6 Mb/s Tx-Power:16 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=21/94 Signal level=-71 dBm Noise level=-92 dBm
Rx invalid nwid:49428 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
If I use one network in wpa_supplicant.conf, what I see is only switching frequencies. It is obvious that my card sees ap and tries to communicate, but something is wrong. Even, if it finds correct frequency, it will immediately try different one.
Code: | norick ~ # iwconfig ath0
ath0 IEEE 802.11a ESSID:"PL2NO" Nickname:""
Mode:Managed Frequency:5.6 GHz Access Point: 00:14:A5:3C:85:8D
Bit Rate:6 Mb/s Tx-Power:16 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=20/94 Signal level=-70 dBm Noise level=-90 dBm
Rx invalid nwid:50435 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
norick ~ # iwconfig ath0
ath0 IEEE 802.11a ESSID:"PL2NO" Nickname:""
Mode:Managed Frequency:5.62 GHz Access Point: 00:14:A5:3C:85:8D
Bit Rate:6 Mb/s Tx-Power:16 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=20/94 Signal level=-70 dBm Noise level=-90 dBm
Rx invalid nwid:50435 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
Code: | lspci -vv
00:05.0 Ethernet controller: Atheros Communications, Inc. AR5006X 802.11abg NIC (rev 01)
Subsystem: Unknown device 17f9:000c
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at dfff0000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
|
Thanks for any help. I do not have an idea what is behind that. I suspect hardware problem, problem with communication with freebsd. I am grateful for any ideas. |
|
Back to top |
|
|
Norick n00b
Joined: 12 Sep 2003 Posts: 31 Location: Prague
|
Posted: Wed Jul 18, 2007 10:55 am Post subject: |
|
|
I tried to setup my wlan1 (wifi0) backup, which is also Managed and results are weird...
The problem with ath0 disappears after some time - I did not measure it but after reboot it did not work and cca ten minutes after when I checked it once more it was working.
The problem was moved to wlan1 (wifi0) interface:
Code: |
DMESG:
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wlan1: Trying to join BSSID 00:60:b3:6a:73:bb
wifi0: LinkStatus=6 (Association failed)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wlan1: Trying to join BSSID 00:60:b3:6a:73:bb
wifi0: LinkStatus=6 (Association failed)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wlan1: Trying to join BSSID 00:60:b3:6a:73:bb
wifi0: LinkStatus=6 (Association failed)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
|
Code: |
<2>Trying to associate with 00:60:b3:6a:73:bb (SSID='Slivenec.Net' freq=2412 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:60:b3:6a:73:bb (SSID='Slivenec.Net' freq=2412 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:60:b3:6a:73:bb (SSID='Slivenec.Net' freq=2412 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
|
My last interface is wlan2, which works as the acess point - wlan1 card is able to connect to my own AP, but unable to connect to proper peer, despite this:
Code: | iwlist wlan1 scan
Cell 01 - Address: 00:60:B3:6A:73:BB
ESSID:"Slivenec.Net"
Mode:Master
Frequency:2.412 GHz (Channel 1)
Signal level=-79 dBm Noise level=-100 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Extra:bcn_int=100
Extra:resp_rate=20
|
Code: |
confcat /etc/wpa_supplicant/slivenec-wpa_supplicant.conf
ap_scan=1
network={
ssid="Slivenec.Net"
key_mgmt=NONE
priority=15
}
|
Code: |
confcat /etc/conf.d/net
config_eth0=
config_wlan1=
config_wlan2=
config_ath0=
config_dummy0=
modules_wlan2=( "iwconfig" )
mode_wlan2="Master"
essid_wlan2="Norick.CZFree.Net"
channel_wlan2="3"
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf"
wpa_supplicant_wlan1="-Dwext -c/etc/wpa_supplicant/slivenec-wpa_supplicant.conf"
|
I assume this is not madwifi problem, but I have no idea what to do with it. |
|
Back to top |
|
|
Norick n00b
Joined: 12 Sep 2003 Posts: 31 Location: Prague
|
Posted: Wed Jul 18, 2007 11:32 am Post subject: |
|
|
I tried -dd on wpa_supplicant:
Code: |
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
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)
Ignore event for foreign ifindex 3
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
Scan timeout - try to get results
Received 1365 bytes of scan results (11 BSSes)
Scan results: 11
Selecting BSS from priority group 15
0: 00:1a:2a:01:8b:9c ssid='quitec' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
1: 00:02:72:5c:82:2f ssid='doma-797' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
2: 00:02:72:53:60:4b ssid='doma-781' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
3: 00:0d:54:a0:29:e3 ssid='Proscon' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
4: 00:0d:54:f7:57:8c ssid='HAP' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
5: 00:60:b3:6b:a9:48 ssid='Norick.CZFree.Net' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
6: 00:14:bf:cc:83:ee ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
7: 00:60:b3:6a:73:bb ssid='Slivenec.Net' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - blacklisted
8: 00:30:4f:3f:d8:58 ssid='Sasl.' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
9: 00:60:b3:6b:98:bb ssid='B2S' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
10: 00:4f:62:0d:81:2d ssid='bhillz-alfa.CZF' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
No APs found - clear blacklist and try again
Removed BSSID 00:60:b3:6a:73:bb from blacklist (clear)
Selecting BSS from priority group 15
0: 00:1a:2a:01:8b:9c ssid='quitec' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
1: 00:02:72:5c:82:2f ssid='doma-797' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
2: 00:02:72:53:60:4b ssid='doma-781' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
3: 00:0d:54:a0:29:e3 ssid='Proscon' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
4: 00:0d:54:f7:57:8c ssid='HAP' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
5: 00:60:b3:6b:a9:48 ssid='Norick.CZFree.Net' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
6: 00:14:bf:cc:83:ee ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
7: 00:60:b3:6a:73:bb ssid='Slivenec.Net' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
8: 00:30:4f:3f:d8:58 ssid='Sasl.' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
9: 00:60:b3:6b:98:bb ssid='B2S' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
10: 00:4f:62:0d:81:2d ssid='bhillz-alfa.CZF' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
selected non-WPA AP 00:60:b3:6a:73:bb ssid='Slivenec.Net'
Trying to associate with 00:60:b3:6a:73:bb (SSID='Slivenec.Net' freq=2412 MHz)
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 38 31 37 34 2d 30 00
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_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=20
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
Authentication with 00:00:00:00:00:00 timed out.
CTRL_IFACE monitor send - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 38 31 37 34 2d 30 00
Added BSSID 00:60:b3:6a:73:bb into blacklist
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
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)
Ignore event for foreign ifindex 3
RX ctrl_iface - hexdump_ascii(len=4):
50 49 4e 47 PING
Scan timeout - try to get results
Received 1511 bytes of scan results (12 BSSes)
Scan results: 12
.....
|
I wonder why essid Slivenec.Net, which I want to connect to is "blacklisted" (no.7 in the first list). I do not understand how this works, but this output might be useful. |
|
Back to top |
|
|
Tumata n00b
Joined: 19 Feb 2008 Posts: 1 Location: Russia
|
Posted: Tue Feb 19, 2008 12:47 pm Post subject: |
|
|
Hi, Norick!
May be you help me.. I have the same wifi card in may laptop. I can't made it working. I tried the most recent Madwifi driver (it was built and installed without errors). But looking through dmesg I came across such:
wifi%d: unable to attach hardware: revision isn't supported (HAL status 13)
As a result there isn't ath0((
Anyway, tell me what version of kernel did you use? |
|
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
|
|