ifconfig segfaults while getting up wlan0

Pavel Roskin proski
Mon May 12 01:47:48 PDT 2003


On Thu, 8 May 2003, Christian Lauterbach wrote:

Sorry for delay with reply, I was visiting Jouni in person :-)

> Interestingly enough, it did work as a module (no other changes to the system), 
> so it must have somehow been related to that... 

Yes, I see that you have a PCI card, but you compiled in support for PLX 
and PCI boards, and the PLX driver fails:

May  7 17:13:04 router kernel: hostap_plx: 0.0.2 - 2003-05-03 (Jouni Malinen <jkmaline at cc.hut.fi>)
May  7 17:13:04 router kernel: hostap_plx: No devices found, driver not installed.
May  7 17:13:04 router kernel: hostap_pci: 0.0.2 - 2003-05-03 (Jouni Malinen <jkmaline at cc.hut.fi>)

The function that prints "No devices found, driver not installed" is
init_prism2_plx() and it looks quite strange to me.  It's not what other
network drivers do.  orinoco_plx and 3c59x use pci_module_init().  
eepro100 uses something like hostap_plx for the kernels prior to 2.3.48.
Checked in Linux 2.5.69.

I think that everything should be OK for you if you compile the PCI driver
into the kernel but disable PLX support.  Or better yet please check the 
attached patch.

I'll try to model your situation even though I have no PCI card.

-- 
Regards,
Pavel Roskin
-------------- next part --------------
--- driver/modules/hostap_plx.c
+++ driver/modules/hostap_plx.c
@@ -566,15 +566,7 @@ static struct pci_driver prism2_plx_drv_
 static int __init init_prism2_plx(void)
 {
 	printk(KERN_INFO "%s: %s\n", dev_info, version);
-
-	if (pci_register_driver(&prism2_plx_drv_id) <= 0) {
-		printk("hostap_plx: No devices found, driver not "
-		       "installed.\n");
-		pci_unregister_driver(&prism2_plx_drv_id);
-		return -ENODEV;
-	}
-
-	return 0;
+	return pci_module_init(&prism2_plx_drv_id);
 }
 
 



More information about the Hostap mailing list