[Prism54-devel] Suggested Prism54 changes/cleanup

Margit Schubert-While margitsw@t-online.de
Sat, 21 Feb 2004 18:05:27 +0100


--=====================_27081741==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Suggested code changes/cleanup.
(Luis, sent to you as attachment)
Fix compile warning
Correct multi-line printk's
Move prism54_get_card_model and clean ip.

diff -Naur prism54-cvs-latest/ksrc/isl_ioctl.c prism54-msw/ksrc/isl_ioctl.c
--- prism54-cvs-latest/ksrc/isl_ioctl.c 2004-02-20 05:20:48.000000000 +0100
+++ prism54-msw/ksrc/isl_ioctl.c        2004-02-21 17:35:32.000000000 +0100
@@ -93,8 +93,8 @@

         /* For now, just catch early the Repeater and Secondary modes here */
         if (iw_mode == IW_MODE_REPEAT || iw_mode == IW_MODE_SECOND) {
-               printk(KERN_DEBUG "%s(): Sorry, Repeater mode and Secondary 
mode \
-                               are not yet supported by this driver.\n",
+               printk(KERN_DEBUG "%s(): Sorry, Repeater mode and Secondary 
mode "
+                               "are not yet supported by this driver.\n",
                        __FUNCTION__);
                 return -EINVAL;
         }
@@ -171,8 +171,8 @@
          * mib values depending on what the wireless mode given is. No need
          * for it save old values */
         if (init_mode > IW_MODE_MONITOR || init_mode < IW_MODE_AUTO) {
-               printk(KERN_DEBUG "%s(): You passed a non-valid init_mode. \
-                               Using default mode\n", __FUNCTION__);
+               printk(KERN_DEBUG "%s(): You passed a non-valid init_mode. "
+                               "Using default mode\n", __FUNCTION__);
                 init_mode = CARD_DEFAULT_IW_MODE;
         }
         /* This sets all of the mode-dependent values */
diff -Naur prism54-cvs-latest/ksrc/islpci_dev.c prism54-msw/ksrc/islpci_dev.c
--- prism54-cvs-latest/ksrc/islpci_dev.c        2004-02-16 
22:01:35.000000000 +0100
+++ prism54-msw/ksrc/islpci_dev.c       2004-02-21 17:19:55.000000000 +0100
@@ -781,56 +781,3 @@
         priv = 0;
         return NULL;
  }
-
-inline int
-prism54_get_card_model(struct net_device *ndev, char **modelp)
-{
-       islpci_private *priv;
-       priv = ndev->priv;
-       switch (priv->pdev->subsystem_device) {
-       case PCIDEVICE_ISL3877:
-               *modelp = "PRISM Indigo";
-               break;
-       case PCIDEVICE_3COM6001:
-               *modelp = "3COM 3CRWE154G72";
-               break;
-       case 0x3202UL:
-               *modelp = "D-Link DWL-g650 A1";
-               break;
-       case 0xd019UL:
-               *modelp = "WN-G54/CB";
-               break;
-       case 0x4800UL:
-               *modelp = "Netgear WG511";
-               break;
-       case 0x2802UL:
-               *modelp = "SMC2802W";
-               break;
-       case 0xee03UL:
-               *modelp = "SMC2802W V2";
-               break;
-       case 0x2835UL:
-               *modelp = "SMC2835W";
-               break;
-               /* Let's leave this one out for now since it seems bogus/wrong
-                * Even if the manufacturer did use 0x0000UL it may not be 
correct
-                * by their part, therefore deserving no name ;) */
-               /*      case 0x0000UL:
-                *              return "SparkLAN WL-850F";
-                *              break;*/
-
-               /* We have two reported for the one bellow :( */
-       case 0x0014UL:
-               *modelp = "XG-600";
-               break;
-       case 0x0020UL:
-               *modelp = "XG-900/GW-DS54G";
-               break;
-       case PCIDEVICE_ISL3890:
-               *modelp = "PRISM Duette/GT";
-               break;
-       default:
-               *modelp = "PRISM Duette/GT";
-       }
-       return 0;
-}
diff -Naur prism54-cvs-latest/ksrc/islpci_dev.h prism54-msw/ksrc/islpci_dev.h
--- prism54-cvs-latest/ksrc/islpci_dev.h        2004-02-20 
04:41:00.000000000 +0100
+++ prism54-msw/ksrc/islpci_dev.h       2004-02-21 17:19:14.000000000 +0100
@@ -275,5 +275,4 @@
  int islpci_alloc_memory(islpci_private *);
  int islpci_free_memory(islpci_private *);
  struct net_device *islpci_setup(struct pci_dev *);
-inline int prism54_get_card_model(struct net_device *, char **);
  #endif                         /* _ISLPCI_DEV_H */
diff -Naur prism54-cvs-latest/ksrc/islpci_hotplug.c 
prism54-msw/ksrc/islpci_hotplug.c
--- prism54-cvs-latest/ksrc/islpci_hotplug.c    2004-01-30 
07:14:13.000000000 +0100
+++ prism54-msw/ksrc/islpci_hotplug.c   2004-02-21 18:01:54.000000000 +0100
@@ -127,6 +127,66 @@
         /* .enable_wake ; we don't support this yet */
  };

+static void
+prism54_get_card_model(struct net_device *ndev)
+{
+       islpci_private  *priv;
+       char            *modelp;
+
+       priv = ndev->priv;
+       switch (priv->pdev->subsystem_device) {
+       case PCIDEVICE_ISL3877:
+               modelp = "PRISM Indigo";
+               break;
+       case PCIDEVICE_3COM6001:
+               modelp = "3COM 3CRWE154G72";
+               break;
+       case 0x3202UL:
+               modelp = "D-Link DWL-g650 A1";
+               break;
+       case 0xd019UL:
+               modelp = "WN-G54/CB";
+               break;
+       case 0x4800UL:
+               modelp = "Netgear WG511";
+               break;
+       case 0x2802UL:
+               modelp = "SMC2802W";
+               break;
+       case 0xee03UL:
+               modelp = "SMC2802W V2";
+               break;
+       case 0x2835UL:
+               modelp = "SMC2835W";
+               break;
+       /* Let's leave this one out for now since it seems bogus/wrong
+        * Even if the manufacturer did use 0x0000UL it may not be correct
+        * by their part, therefore deserving no name ;) */
+       /*      case 0x0000UL:
+        *              modelp = "SparkLAN WL-850F";
+        *              break;*/
+
+       /* We have two reported for the one below :( */
+       case 0x0014UL:
+               modelp = "XG-600";
+               break;
+       case 0x0020UL:
+               modelp = "XG-900/GW-DS54G";
+               break;
+/* Default it */
+/*
+       case PCIDEVICE_ISL3890:
+               modelp = "PRISM Duette/GT";
+               break;
+*/
+       default:
+               modelp = "PRISM Duette/GT";
+       }
+       printk(KERN_DEBUG "%s: %s driver detected card model: %s\n",
+                       ndev->name, DRV_NAME, modelp);
+       return;
+}
+
  /******************************************************************************
      Module initialization functions
  ******************************************************************************/
@@ -139,8 +199,6 @@
         u32 mem_addr;
         islpci_private *priv;
         int rvalue;
-       char *model;
-       char **modelp;

         /* TRACE(DRV_NAME); */

@@ -151,9 +209,6 @@
                 return -ENODEV;
         }

-       model = "PRISM Duette/GT"; /* Default */
-       modelp = &model;
-
         /* check whether the latency timer is set correctly */
         pci_read_config_byte(pdev, PCI_LATENCY_TIMER, &latency_tmr);
  #if VERBOSE > SHOW_ERROR_MESSAGES
@@ -234,16 +289,8 @@

         /* firmware upload is triggered in islpci_open */

-       /* Perty card model discovery output */
-       if (prism54_get_card_model(ndev, modelp)) {
-               printk(KERN_DEBUG "%s: Unable to determine specific card 
model\n",
-                               ndev->name);
-       }
-       else {
-               model = *modelp;
-               printk(KERN_DEBUG "%s: %s driver detected card model: %s\n",
-                               ndev->name, DRV_NAME, model);
-       }
+       /* Pretty card model discovery output */
+       prism54_get_card_model(ndev);

         return 0;

diff -Naur prism54-cvs-latest/ksrc/oid_mgt.c prism54-msw/ksrc/oid_mgt.c
--- prism54-cvs-latest/ksrc/oid_mgt.c   2004-02-02 18:12:28.000000000 +0100
+++ prism54-msw/ksrc/oid_mgt.c  2004-02-21 17:39:07.000000000 +0100
@@ -384,8 +384,8 @@

         if (reslen > isl_oid[n].size)
                 printk(KERN_DEBUG
-                      "mgt_get_request(0x%x): received data length was 
bigger \
-                      than expected (%d > %d). Memory is probably 
corrupted... ",
+                      "mgt_get_request(0x%x): received data length was 
bigger "
+                      "than expected (%d > %d). Memory is probably 
corrupted... ",
                        oid, reslen, isl_oid[n].size);

         return ret;
@@ -485,8 +485,8 @@
         if (rvalue) {
                 /* some request have failed. The device might be in an
                    incoherent state. We should reset it ! */
-               printk(KERN_DEBUG "%s: mgt_commit has failed. Restart the \
-                device \n", priv->ndev->name);
+               printk(KERN_DEBUG "%s: mgt_commit has failed. Restart the "
+                "device \n", priv->ndev->name);
         }

         /* update the MAC addr. As it's not cached, no lock will be 
acquired by


Margit
--=====================_27081741==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<font size=3>Suggested code changes/cleanup.<br>
(Luis, sent to you as attachment)<br>
Fix compile warning<br>
Correct multi-line printk's<br>
Move prism54_get_card_model and clean ip.<br><br>
diff -Naur prism54-cvs-latest/ksrc/isl_ioctl.c
prism54-msw/ksrc/isl_ioctl.c<br>
--- prism54-cvs-latest/ksrc/isl_ioctl.c 2004-02-20 05:20:48.000000000
+0100<br>
+++
prism54-msw/ksrc/isl_ioctl.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2004-02-21 17:35:32.000000000 +0100<br>
@@ -93,8 +93,8 @@<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* For now, just catch early
the Repeater and Secondary modes here */<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (iw_mode == IW_MODE_REPEAT
|| iw_mode == IW_MODE_SECOND) {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s(): Sorry, Repeater mode and Secondary mode
\<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
are not yet supported by this driver.\n&quot;,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s(): Sorry, Repeater mode and Secondary mode
&quot;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;are not yet supported by this driver.\n&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
__FUNCTION__);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
return -EINVAL;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
@@ -171,8 +171,8 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * mib values depending
on what the wireless mode given is. No need<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * for it save old values
*/<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (init_mode &gt;
IW_MODE_MONITOR || init_mode &lt; IW_MODE_AUTO) {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s(): You passed a non-valid init_mode. \<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Using default mode\n&quot;, __FUNCTION__);<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s(): You passed a non-valid init_mode.
&quot;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;Using default mode\n&quot;, __FUNCTION__);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
init_mode = CARD_DEFAULT_IW_MODE;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* This sets all of the
mode-dependent values */<br>
diff -Naur prism54-cvs-latest/ksrc/islpci_dev.c
prism54-msw/ksrc/islpci_dev.c<br>
---
prism54-cvs-latest/ksrc/islpci_dev.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2004-02-16 22:01:35.000000000 +0100<br>
+++ prism54-msw/ksrc/islpci_dev.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2004-02-21 17:19:55.000000000 +0100<br>
@@ -781,56 +781,3 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; priv = 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return NULL;<br>
&nbsp;}<br>
-<br>
-inline int<br>
-prism54_get_card_model(struct net_device *ndev, char **modelp)<br>
-{<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; islpci_private *priv;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; priv = ndev-&gt;priv;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch
(priv-&gt;pdev-&gt;subsystem_device) {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case PCIDEVICE_ISL3877:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;PRISM Indigo&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case PCIDEVICE_3COM6001:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;3COM 3CRWE154G72&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x3202UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;D-Link DWL-g650 A1&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0xd019UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;WN-G54/CB&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x4800UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;Netgear WG511&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x2802UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;SMC2802W&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0xee03UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;SMC2802W V2&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x2835UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;SMC2835W&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* Let's leave this one out for now since it seems bogus/wrong <br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* Even if the manufacturer did use 0x0000UL it may not be correct<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* by their part, therefore deserving no name ;) */<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x0000UL: <br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
return &quot;SparkLAN WL-850F&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;*/<br>
-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* We have two reported for the one bellow :( */<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x0014UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;XG-600&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x0020UL:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;XG-900/GW-DS54G&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case PCIDEVICE_ISL3890:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;PRISM Duette/GT&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp = &quot;PRISM Duette/GT&quot;;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br>
-}<br>
diff -Naur prism54-cvs-latest/ksrc/islpci_dev.h
prism54-msw/ksrc/islpci_dev.h<br>
---
prism54-cvs-latest/ksrc/islpci_dev.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2004-02-20 04:41:00.000000000 +0100<br>
+++ prism54-msw/ksrc/islpci_dev.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2004-02-21 17:19:14.000000000 +0100<br>
@@ -275,5 +275,4 @@<br>
&nbsp;int islpci_alloc_memory(islpci_private *);<br>
&nbsp;int islpci_free_memory(islpci_private *);<br>
&nbsp;struct net_device *islpci_setup(struct pci_dev *);<br>
-inline int prism54_get_card_model(struct net_device *, char **);<br>
&nbsp;#endif&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* _ISLPCI_DEV_H */<br>
diff -Naur prism54-cvs-latest/ksrc/islpci_hotplug.c
prism54-msw/ksrc/islpci_hotplug.c<br>
--- prism54-cvs-latest/ksrc/islpci_hotplug.c&nbsp;&nbsp;&nbsp; 2004-01-30
07:14:13.000000000 +0100<br>
+++ prism54-msw/ksrc/islpci_hotplug.c&nbsp;&nbsp; 2004-02-21
18:01:54.000000000 +0100<br>
@@ -127,6 +127,66 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* .enable_wake ; we don't
support this yet */<br>
&nbsp;};<br>
&nbsp;<br>
+static void<br>
+prism54_get_card_model(struct net_device *ndev)<br>
+{<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; islpci_private&nbsp; *priv;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*modelp;<br>
+<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; priv = ndev-&gt;priv;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch
(priv-&gt;pdev-&gt;subsystem_device) {<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case PCIDEVICE_ISL3877:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;PRISM Indigo&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case PCIDEVICE_3COM6001:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;3COM 3CRWE154G72&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x3202UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;D-Link DWL-g650 A1&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0xd019UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;WN-G54/CB&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x4800UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;Netgear WG511&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x2802UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;SMC2802W&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0xee03UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;SMC2802W V2&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x2835UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;SMC2835W&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Let's leave this one out for now
since it seems bogus/wrong <br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Even if the manufacturer
did use 0x0000UL it may not be correct<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * by their part, therefore
deserving no name ;) */<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
case 0x0000UL: <br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;SparkLAN WL-850F&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;*/<br>
+<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* We have two reported for the one
below :( */<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x0014UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;XG-600&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 0x0020UL:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;XG-900/GW-DS54G&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+/* Default it */<br>
+/*<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case PCIDEVICE_ISL3890:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;PRISM Duette/GT&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
+*/<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default:<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
modelp = &quot;PRISM Duette/GT&quot;;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printk(KERN_DEBUG &quot;%s: %s
driver detected card model: %s\n&quot;,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ndev-&gt;name, DRV_NAME, modelp);<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>
+}<br>
+<br>
&nbsp;/******************************************************************************<br>
&nbsp;&nbsp;&nbsp;&nbsp; Module initialization functions<br>
&nbsp;******************************************************************************/<br>
@@ -139,8 +199,6 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; u32 mem_addr;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; islpci_private *priv;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int rvalue;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char *model;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char **modelp;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* TRACE(DRV_NAME); */<br>
&nbsp;<br>
@@ -151,9 +209,6 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
return -ENODEV;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; model = &quot;PRISM
Duette/GT&quot;; /* Default */<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modelp = &amp;model;<br>
-<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* check whether the latency
timer is set correctly */<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pci_read_config_byte(pdev,
PCI_LATENCY_TIMER, &amp;latency_tmr);<br>
&nbsp;#if VERBOSE &gt; SHOW_ERROR_MESSAGES<br>
@@ -234,16 +289,8 @@<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* firmware upload is
triggered in islpci_open */<br>
&nbsp;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Perty card model discovery
output */<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (prism54_get_card_model(ndev,
modelp)) {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s: Unable to determine specific card
model\n&quot;,<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ndev-&gt;name);<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
model = *modelp;<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s: %s driver detected card model:
%s\n&quot;,<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ndev-&gt;name, DRV_NAME, model);<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Pretty card model discovery
output */<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prism54_get_card_model(ndev);<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br>
&nbsp;<br>
diff -Naur prism54-cvs-latest/ksrc/oid_mgt.c
prism54-msw/ksrc/oid_mgt.c<br>
--- prism54-cvs-latest/ksrc/oid_mgt.c&nbsp;&nbsp; 2004-02-02
18:12:28.000000000 +0100<br>
+++ prism54-msw/ksrc/oid_mgt.c&nbsp; 2004-02-21 17:39:07.000000000
+0100<br>
@@ -384,8 +384,8 @@<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (reslen &gt;
isl_oid[n].size)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;mgt_get_request(0x%x): received data length was bigger \<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
than expected (%d &gt; %d). Memory is probably corrupted... &quot;,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;mgt_get_request(0x%x): received data length was bigger &quot;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;than expected (%d &gt; %d). Memory is probably corrupted...
&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
oid, reslen, isl_oid[n].size);<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ret;<br>
@@ -485,8 +485,8 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (rvalue) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* some request have failed. The device might be in an<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
incoherent state. We should reset it ! */<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s: mgt_commit has failed. Restart the \<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
device \n&quot;, priv-&gt;ndev-&gt;name);<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printk(KERN_DEBUG &quot;%s: mgt_commit has failed. Restart the
&quot;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;device \n&quot;, priv-&gt;ndev-&gt;name);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* update the MAC addr. As
it's not cached, no lock will be acquired by<br><br>
<br>
Margit</font></html>

--=====================_27081741==_.ALT--