From: Paul Hedderly (bulkpaul_at_wacka.mjr.org)
Date: 2002-09-01 11:16:59 UTC
I have managed to trace the problem to a clash between hostap and
wlan-ng:
if (register_wlandev(wlandev) != 0) { WLAN_LOG_NOTICE0("prism2sta_cs: register_wlandev() failed.\n"); goto failed; }
And in the real problem...
./p80211/p80211netdev.c:
if (register_netdevice(dev)) { if ( i >= 0 ) { wlandev_clear_index(wlandev); } rtnl_unlock(); return -EIO; }
I don't understand this fully - but I had hostap_pci loaded and providing a wlan0 device (from the built in wifi on this laptop) but I was wanting to test a usb device, with wlan-ng which seems to be barfing because it wants to use wlan0.
Is this a hostap bug or a wlan-ng bug? or both :O)
-- Cheers, Paul On Sun, Aug 25, 2002 at 09:16:10AM +0100, Paul Hedderly wrote:
> This is on Debian (sid/unstable) with kernels ranging from 2.2.17... to
> 2.4.20-pre4 (which is what I'm running now.)
>
> I have an Actiontec USB 802.11 adaptor (8021UI3)
>
> I load prism2_usb, and then plug it in (oh with prism2_doreset=1) and I
> get:
>
> hub.c: USB new device connect on bus1/1, assigned device number 4
> prism2_usb: Attempting to claim device Actiontec Prism2.5 11Mbps WLAN
> USB Adapter with devnum 4
> prism2sta_probe_usb: prism2_usb: wlan_setup() failed.
> usb.c: USB device 4 (vend/prod 0x1668/0x421) is not claimed by any
> active driver.
>
>
> If I remcompile wlan-ng with wlan_debug set, I get:
>
> Aug 24 12:06:07 weeblu kernel: hub.c: USB new device connect on bus1/1, assigned device number 7
> Aug 24 12:06:07 weeblu kernel: prism2sta_probe_usb: Enter
> Aug 24 12:06:07 weeblu kernel: prism2_usb: Attempting to claim device Actiontec Prism2.5 11Mbps WLAN USB Adapter with devnum 7
> Aug 24 12:06:07 weeblu kernel: wlan_setup: Enter
> Aug 24 12:06:07 weeblu kernel: wlan_setup: Exit
> Aug 24 12:06:07 weeblu kernel: register_wlandev: Enter
> Aug 24 12:06:07 weeblu kernel: wlandev_get_index: Enter
> Aug 24 12:06:07 weeblu kernel: wlandev_get_index: Loading device 'wlan0'...
> Aug 24 12:06:07 weeblu kernel: p80211knetdev_init: Enter
> Aug 24 12:06:07 weeblu kernel: p80211knetdev_init: Exit
> Aug 24 12:06:07 weeblu kernel: wlandev_clear_index: Enter
> Aug 24 12:06:07 weeblu kernel: wlandev_clear_index: Exit
> Aug 24 12:06:07 weeblu kernel: prism2sta_probe_usb: prism2_usb: wlan_setup() failed.
> Aug 24 12:06:07 weeblu kernel: prism2sta_probe_usb: Exit
> Aug 24 12:06:07 weeblu kernel: usb.c: USB device 7 (vend/prod 0x1668/0x421) is not claimed by any active driver.
>
>
> So it seems to recognise the device - but can't actually set it up.
>
> I've tried getting more debugging info (modprobe prism2_usb ....
> prism2_debug=1) but that seems to change nothing.
>
> Please help me! Other people get this beast working no problem.
>
> --
> Paul
>
> _______________________________________________
> Linux-wlan-user mailing list
> Linux-wlan-user_at_lists.linux-wlan.com
> http://lists.linux-wlan.com/mailman/listinfo/linux-wlan-user