linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about starting up an AP
@ 2010-09-24 19:25 Joshua Smith
  2010-09-25  8:18 ` Helmut Schaa
  2010-09-25  8:34 ` Helmut Schaa
  0 siblings, 2 replies; 20+ messages in thread
From: Joshua Smith @ 2010-09-24 19:25 UTC (permalink / raw)
  To: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 3448 bytes --]

I'm building an AP using the latest CW code with a 2.6.27.8 kernel, and a Linsys/Cisco WMP660N PCI adapter.  I'm having a problem with the boot-up sequence.  Sometimes, when I start hostapd, I get this error in the system log:

 kernel: phy0 -> rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.

and hostapd craps out.  If I try to run hostapd again, the kernel dies.  (Crash details attached.)

(Other times, the boot and startup sequence works just fine.)

So I'd like to know if there is a way (in user space) for me to poll whether I'm going to get that error (which I presume means something in the card is not quite ready yet), and wait to start hostapd after that condition clears.

Note that I am doing an "iw wlan0 scan" before this, to see if I need to jump to a different channel, so I'm already talking to the card successfully.  I presume that means the firmware is already loaded, so I'm not really sure what is "busy".

Please reply directly, as I am not subscribed to this list.

Thanks in advance!!!!

-Joshua

BUG: unable to handle kernel NULL pointer dereference at 00000010
IP: [<f8d2d901>] :rt2800pci:rt2800pci_clear_entry+0x1/0x40
*pde = 00000000 
Oops: 0000 [#1] SMP 
Modules linked in: vga2usb usbvideo videodev v4l1_compat snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss pcmcia agpgart ppdev lp parport_pc parport pcspkr psmouse arc4 ecb rt2800pci rt2800lib crc_ccitt rt2x00pci rt2x00lib led_class compat_firmware_class mac80211 cfg80211 rfkill_backport ftdi_sio compat usbserial pcmcia_core eeprom_93cx6 sg snd_hda_intel e1000e snd_pcm snd_timer snd_page_alloc snd_hwdep snd soundcore evdev fuse aufs squashfs sqlzma unlzma [last unloaded: rsrc_nonstatic]

Pid: 5995, comm: hostapd Not tainted (2.6.27.8 #1)
EIP: 0060:[<f8d2d901>] EFLAGS: 00210246 CPU: 3
EIP is at rt2800pci_clear_entry+0x1/0x40 [rt2800pci]
EAX: 00000000 EBX: f698863c ECX: 00200296 EDX: f8d2dee0
ESI: f6988600 EDI: f5b6f000 EBP: 00000000 ESP: f6d75e4c
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process hostapd (pid: 5995, ti=f6d74000 task=f6ce2300 task.ti=f6d74000)
Stack: f698863c fa00eaec 00000000 f5b6f000 00000000 f7b67000 f5b6e280 fa00c629 
       f5b6f000 00000000 fa00ca3d f7b67480 00000001 fa177d4c 01b6e890 f7b67000 
       00000000 f7b67000 00000001 00001003 00001002 c066c366 f7b67000 c0668ad0 
Call Trace:
 [<fa00eaec>] rt2x00queue_init_queues+0x5c/0x90 [rt2x00lib]
 [<fa00c629>] rt2x00lib_enable_radio+0x29/0xa0 [rt2x00lib]
 [<fa00ca3d>] rt2x00lib_start+0x5d/0xd0 [rt2x00lib]
 [<fa177d4c>] ieee80211_do_open+0x21c/0x510 [mac80211]
 [<c066c366>] dev_open+0x56/0xb0
 [<c0668ad0>] dev_set_rx_mode+0x20/0x40
 [<c066a67f>] dev_change_flags+0x7f/0x190
 [<c06b1495>] devinet_ioctl+0x515/0x690
 [<c0668d24>] __dev_get_by_name+0x74/0x90
 [<c065d3f0>] sock_ioctl+0xd0/0x240
 [<c065d320>] sock_ioctl+0x0/0x240
 [<c018179b>] vfs_ioctl+0x2b/0x90
 [<c0181a5b>] do_vfs_ioctl+0x25b/0x2a0
 [<c0181af6>] sys_ioctl+0x56/0x70
 [<c0103262>] syscall_call+0x7/0xb
 [<c0700000>] add_card+0xad0/0xba0
 =======================
Code: 83 78 08 0e 74 14 8b 02 8b 48 04 85 c9 0f 99 c0 0f b6 c0 c3 8d b6 00 00 00 00 8b 02 8b 40 04 85 c0 0f 99 c0 0f b6 c0 c3 66 90 53 <8b> 48 10 8b 58 08 8b 40 04 83 78 08 0e 74 15 8b 11 83 c2 04 8b 
EIP: [<f8d2d901>] rt2800pci_clear_entry+0x1/0x40 [rt2800pci] SS:ESP 0068:f6d75e4c
---[ end trace cff9a5c094bb8837 ]---



[-- Attachment #2: crashLogs.ZIP --]
[-- Type: application/zip, Size: 19188 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-10-26 11:34 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 19:25 Question about starting up an AP Joshua Smith
2010-09-25  8:18 ` Helmut Schaa
2010-09-25  8:34 ` Helmut Schaa
     [not found]   ` <B17955D1-62BE-4A7E-8ECD-05FA62BD80B9@kaon.com>
2010-09-27 17:56     ` Helmut Schaa
2010-09-27 19:21       ` Joshua Smith
2010-09-27 19:43         ` Helmut Schaa
2010-09-27 20:26           ` Joshua Smith
2010-09-27 20:35             ` Helmut Schaa
2010-09-29 18:21               ` Joshua Smith
2010-09-30 15:52                 ` Joshua Smith
2010-09-30 16:14                   ` Helmut Schaa
2010-10-01  5:42                     ` Helmut Schaa
2010-10-14 17:16                       ` Joshua Smith
2010-10-15  9:46                         ` Helmut Schaa
2010-10-15 13:36                           ` Joshua Smith
2010-10-26  9:35                           ` Helmut Schaa
2010-10-26  9:41                             ` Johannes Berg
2010-10-26 10:04                               ` Helmut Schaa
2010-10-26 11:34                                 ` Ivo Van Doorn
2010-09-27 19:46         ` Helmut Schaa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).