Disassociating from AP..

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4855

vihor

17-06-2008 10:49:00

I've been trying to establish wireless connection to AP with a newly bought CN-WF518 with rt73 chipset but without success.
I've removed WEP, WAP or actually any sort of encription or security measure from AP to eliminate them as possible causes of dissasocitation.
However, even without them, whenever i try to associate adapter to ap with # iwconfig wlan0 ap 0001e34994bb, the message is always the same

wlan0 Initial auth_alg=0
wlan0 authenticate with AP 0001e34994bb
wlan0 RX authentication from 0001e34994bb (alg=0 transaction=2 status=0)
wlan0 authenticated
wlan0 associate with AP 0001e34994bb
wlan0 RX ReassocResp from 0001e34994bb (capab=0x411 status=0 aid=3)
wlan0 associated
wlan0 switched to short barker preamble (BSSID=0001e34994bb)
wlan0 disassociate(reason=3)
wlan0 privacy configuration mismatch and mixed-cell disabled - disassociate

What is reason=3? it might be helpful if somebody knows.. (googling doesn't help)
(BTW, In WinXP 32 bit on the same computer connection works fine, no matter how do I joggle with the AP parameters.
I would try ndiswrapper, but finding 64bit XP drivers for rt73 is even bigger obstacle)
And also, there is a kernel bug that is probably associated with the rt2x00 drivers and which
sometimes freezes the computer during shutdown (othertimes it just pops out but allows the proper shutdown).
Here is bug output

BUG unable to handle kernel NULL pointer dereference at 0000000000000049
IP [<ffffffff811bfa72>] usb_kill_urb+0x2d/0xfa
PGD 7bda4067 PUD 7b485067 PMD 7bccb067 PTE 0
Oops 0000 [1] SMP
CPU 1
Modules linked in ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge bnep rfcomm l2cap bluetooth ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_ad
dr iscsi_tcp libiscsi scsi_transport_iscsi fuse sunrpc ipv6 cpufreq_ondemand acpi_cpufreq freq_table dm_mirror dm_multipath dm_mod kvm pata_marvell arc4 ecb crypto_blkcipher snd_hda_intel snd_seq_dummy snd_seq_oss snd_seq_midi_event rt73
usb snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss iTCO_wdt snd_pcm rt2500usb e1000e snd_timer snd_page_alloc snd_hwdep snd ahci firewire_ohci firewire_core crc_itu_t iTCO_vendor_support rt2x00usb pcspkr i2c_i801 button rt2x00lib rfkill input_polldev serio_raw mac80211 soundcore cfg80211 usb_storage i2c_core sg ata_piix ata_generic pata_acpi libata sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd [last unloaded microcode]
Pid 2172, comm NetworkManager Not tainted 2.6.25.6-55.fc9.x86_64 #1
RIP 0010[<ffffffff811bfa72>] [<ffffffff811bfa72>] usb_kill_urb+0x2d/0xfa
RSP 0018ffff81007b453758 EFLAGS 00010202
RAX 0000000000000000 RBX 0000000000000001 RCX ffff81007b453758
RDX ffff81007a768240 RSI 0000000000000225 RDI ffffffff81381746
RBP ffff81007b453798 R08 ffffffff813dfd98 R09 0000000000000000
R10 00000000ffffffff R11 0000000000000000 R12 ffff81007c0d9a00
R13 ffff81007c0d9a00 R14 ffff81007b4538b0 R15 ffff81007bca1000
FS 00007f37b0ce1780(0000) GSffff81007f802680(0000) knlGS0000000000000000
CS 0010 DS 0000 ES 0000 CR0 0000000080050033
CR2 0000000000000049 CR3 000000007b46d000 CR4 00000000000006e0
DR0 0000000000000000 DR1 0000000000000000 DR2 0000000000000000
DR3 0000000000000000 DR6 00000000ffff0ff0 DR7 0000000000000400
Process NetworkManager (pid 2172, threadinfo ffff81007b452000, task ffff81007b45e000)
Stack 0000000000000000 ffff81007b45e000 ffffffff81046b0b ffff81007b453770
ffff81007b453770 ffff81007c0d9a00 0000000000000002 ffff81007c0d9a00
ffff81007b4537c8 ffffffff8815ac1b ffff810000000000 ffff8100000001f4
Call Trace
[<ffffffff81046b0b>] ? autoremove_wake_function+0x0/0x38
[<ffffffff8815ac1b>] rt2x00usbrt2x00usb_disable_radio+0x82/0x9c
[<ffffffff8821fc7b>] rt73usbrt73usb_set_device_state+0xda7/0xed0
[<ffffffff8813b87c>] rt2x00librt2x00lib_disable_radio+0x70/0x88
[<ffffffff8813bccf>] rt2x00librt2x00lib_stop+0x1a/0x4b
[<ffffffff8813c495>] rt2x00librt2x00mac_stop+0x16/0x18
[<ffffffff880f6744>] mac80211ieee80211_stop+0x369/0x3b6
[<ffffffff8120d54e>] dev_close+0x62/0x83
[<ffffffff8120d21c>] dev_change_flags+0xa8/0x16b
[<ffffffff81214b6c>] do_setlink+0x236/0x2f8
[<ffffffff81214d42>] rtnl_setlink+0x114/0x116
[<ffffffff81215e90>] rtnetlink_rcv_msg+0x1d2/0x1f3
[<ffffffff81215cbe>] ? rtnetlink_rcv_msg+0x0/0x1f3
[<ffffffff81225b53>] netlink_rcv_skb+0x3e/0xab
[<ffffffff81215cb4>] rtnetlink_rcv+0x27/0x31
[<ffffffff812255ab>] netlink_unicast+0x1f9/0x266
[<ffffffff812258e2>] netlink_sendmsg+0x2ca/0x2dd
[<ffffffff812009fd>] sock_sendmsg+0xfd/0x120
[<ffffffff81200887>] ? sock_recvmsg+0x10e/0x133
[<ffffffff81046b0b>] ? autoremove_wake_function+0x0/0x38
[<ffffffff81046b0b>] ? autoremove_wake_function+0x0/0x38
[<ffffffff812013bc>] ? move_addr_to_kernel+0x40/0x49
[<ffffffff812082f2>] ? verify_iovec+0x4f/0x91
[<ffffffff81200bf2>] sys_sendmsg+0x1d2/0x23c
[<ffffffff812014a4>] ? sys_sendto+0xdf/0x107
[<ffffffff8106c5bf>] ? audit_syscall_entry+0x126/0x15a
[<ffffffff81013073>] ? syscall_trace_enter+0xb5/0xb9
[<ffffffff8100c052>] tracesys+0xd5/0xda


Code 25 02 00 00 48 89 e5 41 54 53 48 89 fb 48 c7 c7 46 17 38 81 48 83 ec 30 e8 3a aa e6 ff e8 a0 d8 0c 00 48 85 db 0f 84 c4 00 00 00 <48> 83 7b 48 00 0f 84 b9 00 00 00 48 83 7b 50 00 0f 84 ae 00 00
RIP [<ffffffff811bfa72>] usb_kill_urb+0x2d/0xfa
RSP <ffff81007b453758>
CR2 0000000000000049
---[ end trace ff35c920afc38285 ]---

OS is Fedora 9 x86_64 with kernel 2.6.25.6-55.fc9.x86_64.

Thx for any sort of help.

IvD

17-06-2008 11:10:15

You should upgrade your FC kernel to a more recent version.

vihor

17-06-2008 12:28:22

Actually.. it is the most recent kernel as provided by fedora team and just one subminor revision down
from the official stable kernel in this very moment - 2.6.25.7.
Kernel 2.6.26 is still not considered stable.

vihor

17-06-2008 13:57:47

OK.. I've tried with the 2.6.26-rc6-git2, but to no avail.
It still disassociates link with the enigmatic reason=3.
At least the bug is gone, but is replaced with the following

Jun 17 152008 penguin kernel =======================================================
Jun 17 152008 penguin kernel [ INFO possible circular locking dependency detected ]
Jun 17 152008 penguin kernel 2.6.26-0.72.rc6.git2.fc10.x86_64 #1
Jun 17 152008 penguin kernel -------------------------------------------------------
Jun 17 152008 penguin kernel NetworkManager/2344 is trying to acquire lock
Jun 17 152008 penguin kernel ((name)){--..}, at [flush_workqueue+0/166] flush_workqueue+0x0/0xa6
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel but task is already holding lock
Jun 17 152008 penguin kernel (rtnl_mutex){--..}, at [rtnetlink_rcv+26/51] rtnetlink_rcv+0x1a/0x33
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel which lock already depends on the new lock.
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel the existing dependency chain (in reverse order) is
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel -> #2 (rtnl_mutex){--..}
Jun 17 152008 penguin kernel [__lock_acquire+3023/3423] __lock_acquire+0xbcf/0xd5f
Jun 17 152008 penguin kernel [lock_acquire+94/120] lock_acquire+0x5e/0x78
Jun 17 152008 penguin kernel [mutex_lock_nested+247/661] mutex_lock_nested+0xf7/0x295
Jun 17 152008 penguin kernel [rtnl_lock+18/20] rtnl_lock+0x12/0x14
Jun 17 152008 penguin kernel [_end+508863570/2107737624] ieee80211_iterate_active_interfaces+0x27/0x98 [mac80211]
Jun 17 152008 penguin kernel [_end+509109899/2107737624] rt2x00lib_intf_scheduled+0x1e/0x20 [rt2x00lib]
Jun 17 152008 penguin kernel [run_workqueue+252/515] run_workqueue+0xfc/0x203
Jun 17 152008 penguin kernel [worker_thread+224/241] worker_thread+0xe0/0xf1
Jun 17 152008 penguin kernel [kthread+73/118] kthread+0x49/0x76
Jun 17 152008 penguin kernel [child_rip+10/18] child_rip+0xa/0x12
Jun 17 152008 penguin kernel [<ffffffffffffffff>] 0xffffffffffffffff
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel -> #1 (&rt2x00dev->intf_work){--..}
Jun 17 152008 penguin kernel [__lock_acquire+3023/3423] __lock_acquire+0xbcf/0xd5f
Jun 17 152008 penguin kernel [lock_acquire+94/120] lock_acquire+0x5e/0x78
Jun 17 152008 penguin kernel [run_workqueue+246/515] run_workqueue+0xf6/0x203
Jun 17 152008 penguin kernel [worker_thread+224/241] worker_thread+0xe0/0xf1
Jun 17 152008 penguin kernel [kthread+73/118] kthread+0x49/0x76
Jun 17 152008 penguin kernel [child_rip+10/18] child_rip+0xa/0x12
Jun 17 152008 penguin kernel [<ffffffffffffffff>] 0xffffffffffffffff
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel -> #0 ((name)){--..}
Jun 17 152008 penguin kernel [__lock_acquire+2770/3423] __lock_acquire+0xad2/0xd5f
Jun 17 152008 penguin kernel [lock_acquire+94/120] lock_acquire+0x5e/0x78
Jun 17 152008 penguin kernel [flush_workqueue+91/166] flush_workqueue+0x5b/0xa6
Jun 17 152008 penguin kernel [_end+508779870/2107737624] ieee80211_stop+0x30a/0x3ec [mac80211]
Jun 17 152008 penguin kernel [dev_close+136/169] dev_close+0x88/0xa9
Jun 17 152008 penguin kernel [dev_change_flags+171/366] dev_change_flags+0xab/0x16e
Jun 17 152008 penguin kernel [do_setlink+630/824] do_setlink+0x276/0x338
Jun 17 152008 penguin kernel [rtnl_setlink+276/278] rtnl_setlink+0x114/0x116
Jun 17 152008 penguin kernel [rtnetlink_rcv_msg+452/482] rtnetlink_rcv_msg+0x1c4/0x1e2
Jun 17 152008 penguin kernel [netlink_rcv_skb+62/144] netlink_rcv_skb+0x3e/0x90
Jun 17 152008 penguin kernel [rtnetlink_rcv+41/51] rtnetlink_rcv+0x29/0x33
Jun 17 152008 penguin kernel [netlink_unicast+496/614] netlink_unicast+0x1f0/0x266
Jun 17 152008 penguin kernel [netlink_sendmsg+638/657] netlink_sendmsg+0x27e/0x291
Jun 17 152008 penguin kernel [sock_sendmsg+253/288] sock_sendmsg+0xfd/0x120
Jun 17 152008 penguin kernel [sys_sendmsg+466/572] sys_sendmsg+0x1d2/0x23c
Jun 17 152008 penguin kernel [tracesys+213/218] tracesys+0xd5/0xda
Jun 17 152008 penguin kernel [<ffffffffffffffff>] 0xffffffffffffffff
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel other info that might help us debug this
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel 1 lock held by NetworkManager/2344
Jun 17 152008 penguin kernel #0 (rtnl_mutex){--..}, at [rtnetlink_rcv+26/51] rtnetlink_rcv+0x1a/0x33
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel stack backtrace
Jun 17 152008 penguin kernel Pid 2344, comm NetworkManager Not tainted 2.6.26-0.72.rc6.git2.fc10.x86_64 #1
Jun 17 152008 penguin kernel
Jun 17 152008 penguin kernel Call Trace
Jun 17 152008 penguin kernel [print_circular_bug_tail+112/123] print_circular_bug_tail+0x70/0x7b
Jun 17 152008 penguin kernel [print_circular_bug_entry+72/79] ? print_circular_bug_entry+0x48/0x4f
Jun 17 152008 penguin kernel [__lock_acquire+2770/3423] __lock_acquire+0xad2/0xd5f
Jun 17 152008 penguin kernel [trace_hardirqs_on+241/277] ? trace_hardirqs_on+0xf1/0x115
Jun 17 152008 penguin kernel [lock_acquire+94/120] lock_acquire+0x5e/0x78
Jun 17 152008 penguin kernel [flush_workqueue+0/166] ? flush_workqueue+0x0/0xa6
Jun 17 152008 penguin kernel [flush_workqueue+91/166] flush_workqueue+0x5b/0xa6
Jun 17 152008 penguin kernel [_end+508779870/2107737624] mac80211ieee80211_stop+0x30a/0x3ec
Jun 17 152008 penguin kernel [_spin_unlock_bh+47/51] ? _spin_unlock_bh+0x2f/0x33
Jun 17 152008 penguin kernel [dev_close+136/169] dev_close+0x88/0xa9
Jun 17 152008 penguin kernel [dev_change_flags+171/366] dev_change_flags+0xab/0x16e
Jun 17 152008 penguin kernel [do_setlink+630/824] do_setlink+0x276/0x338
Jun 17 152008 penguin kernel [_read_unlock+38/43] ? _read_unlock+0x26/0x2b
Jun 17 152008 penguin kernel [rtnl_setlink+276/278] rtnl_setlink+0x114/0x116
Jun 17 152008 penguin kernel [rtnetlink_rcv_msg+452/482] rtnetlink_rcv_msg+0x1c4/0x1e2
Jun 17 152008 penguin kernel [rtnetlink_rcv_msg+0/482] ? rtnetlink_rcv_msg+0x0/0x1e2
Jun 17 152008 penguin kernel [netlink_rcv_skb+62/144] netlink_rcv_skb+0x3e/0x90
Jun 17 152008 penguin kernel [rtnetlink_rcv+41/51] rtnetlink_rcv+0x29/0x33
Jun 17 152008 penguin kernel [netlink_unicast+496/614] netlink_unicast+0x1f0/0x266
Jun 17 152008 penguin kernel [netlink_sendmsg+638/657] netlink_sendmsg+0x27e/0x291
Jun 17 152008 penguin kernel [sock_sendmsg+253/288] sock_sendmsg+0xfd/0x120
Jun 17 152008 penguin kernel [sock_recvmsg+270/307] ? sock_recvmsg+0x10e/0x133
Jun 17 152008 penguin kernel [autoremove_wake_function+0/56] ? autoremove_wake_function+0x0/0x38
Jun 17 152008 penguin kernel [autoremove_wake_function+0/56] ? autoremove_wake_function+0x0/0x38
Jun 17 152008 penguin kernel [move_addr_to_kernel+64/73] ? move_addr_to_kernel+0x40/0x49
Jun 17 152008 penguin kernel [verify_iovec+79/145] ? verify_iovec+0x4f/0x91
Jun 17 152008 penguin kernel [sys_sendmsg+466/572] sys_sendmsg+0x1d2/0x23c
Jun 17 152008 penguin kernel [sys_sendto+223/263] ? sys_sendto+0xdf/0x107
Jun 17 152008 penguin kernel [audit_syscall_entry+294/346] ? audit_syscall_entry+0x126/0x15a
Jun 17 152008 penguin kernel [syscall_trace_enter+176/180] ? syscall_trace_enter+0xb0/0xb4
Jun 17 152008 penguin kernel [tracesys+213/218] tracesys+0xd5/0xda
Jun 17 152008 penguin kernel

IvD

17-06-2008 17:05:42

Yeah I am aware of that issue, but I didn't mean upgrading to 2.6.26-rc kernel, but to the latest FC kernel.

vihor

18-06-2008 07:01:58

The problem was SE(..cken)LInux..
Sorry guys for bothering..
Thx for the drivers.. Keep up good work..