[Prism54-users] interface name wlan0

Ronald Bock Ronald.Bock@4g-systems.biz
Fri, 5 Dec 2003 18:28:20 +0100


Hi,

I had the problem, that all our scripts were all coded using wlan0 and not 
eth0. If you are in the same situation, it might be helpful to apply 
following diff to islpci_dev.c . This not really tested and might be breaking 
your installation. ( Not tried with two cards for example ) And it might be 
the wrong place to incoporate this initialization. 
So use eth0, if you are not sure and please do not blame me.

Have a nice weekend,
Ronald 



*** islpci_dev.c	2003-12-04 15:03:10.000000000 +0100
--- /home/rb/islpci_dev.c	2003-12-05 17:56:57.000000000 +0100
*************** islpci_setup(struct pci_dev *pdev)
*** 617,622 ****
--- 617,626 ----
  		return ndev;

  	SET_MODULE_OWNER(ndev);
+
+ 	/* setup the devicename */
+ 	strncpy(ndev->name, "wlan%d", IFNAMSIZ);
+
  	pci_set_drvdata(pdev, ndev);
  #if defined(SET_NETDEV_DEV)
  	SET_NETDEV_DEV(ndev, &pdev->dev);