Re: Re: Reliable unreliability with D-Link DWL-122 USB
Dave Jenkins <[email protected]>
| Newsgroups | gmane.linux.linux-wlan.user |
|---|---|
| Message-ID | <[email protected]> |
Karl, Thanks again for your helpful and detailed comments. Latest finding below... --- [email protected] wrote: <heavy snippage> > - enabling hotplug debug messages > - Turn off usb.rc coldplug simply by disabling the > execute permissions on the file Removing execute permissions on /etc/hotplug/usb.rc did not change the behaviour, I still got the usual hang. hal is still disabled, too. I have enabled hotplug debug messages. I'm not familiar with USB initialisation so I can only make limited sense of what's happening. I will post a heavily abridged excerpt from the log if anyone wants to see the gory detail. Here's a summary of what happens. usbcore registers drivers hub and prism2_usb ehci_hcd registers bus no. 1 (USB 2.0) (6 ports) uhci_hcd registers bus nos. 2,3,4 (2 ports each) [ I have 6 USB ports. The DWL-122 is the only device attached. ] usb 2-1: new full speed USB device using uhci_hcd and address 2 write to prism2 card firmware linkstatus=CONNECTED default.hotplug: invoke /etc/hotplug/net.agent (1st time) default.hotplug: add module p80211 wlan.agent: WLAN startup default.hotplug: add module & driver prism2_usb wlan.agent: WLAN p80211 starting wland: daemon init, netlink socket opened and bound successfully default.hotplug: add module & driver ehci_hcd default.hotplug: add usb_host usb1,2,3,4; default.hotplug: add various usb entries under /devices default.hotplug: invoke /etc/hotplug/usb.agent (1st time) default.hotplug: add module & driver uhci_hcd default.hotplug: invoke /etc/hotplug/usb.agent (2nd time) wlan.agent: WLAN register on wlan0 (prism2_usb) ; wlan0 registered. default.hotplug: add usb entry /devices/pci0000.../usb2/2-1 default.hotplug: invoke /etc/hotplug/usb.agent (3rd time) default.hotplug: add usb entry /proc/bus/usb/002/002 default.hotplug: invoke /etc/hotplug/usb.agent (4th time) default.hotplug: add net entry /class/net/wlan0 default.hotplug: invoke /etc/hotplug/net.agent (2nd time) usb.agent: Setup 0x00 0x00 for USB product 0/0/206 (4 times) usb.agent: Setup prism2_usb for USB product 2001/3700/132 default.hotplug: add usb entry /devices/pci0000.../usb2 default.hotplug: invoke /etc/hotplug/usb.agent (5th time) usb.agent: Setup 0x00 0x00 for USB product 2001/3700/132 wlan.agent: WLAN wlan0 brought up successfully; layer 3+ up [At this point I log in, load a couple of web pages -> hang] kernel: NETDEV WATCHDOG: wlan0: transmit timed out kernel: usb_unlink_urb() is deprecated; Badness; wlan0 rx pipe reset. The usb.agent script on my Fedora Core 3 system does not appear to look at anything under /proc, but does read files under /sys/$DEVPATH where $DEVPATH can be among the following: DEVPATH=/bus/usb/drivers/prism2_usb DEVPATH=/class/net/wlan0 DEVPATH=/class/usb_host/usb1 to usb4 DEVPATH=/module/prism2_usb DEVPATH=/devices/pci0000:00/0000:00:10.0/usb2 DEVPATH=/devices/pci0000:00/0000:00:10.0/usb2/2-0:1.0 etc. Following Karl's suggestion in another post, I tried putting a long sleep in /etc/hotplug/wlan.agent, and so far this seems to work - thanks! Cheers, Dave ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com