[PATCH] ne2k-pci module doesn't recognize params in 2.4.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,
Here is a patch that fixes the module parameter recognition
problem for the ne2k-pci driver.  At the top of ne2k_pci_init_one(), 
fnd_cnt is incremented but it is used later to index the 
parameter arrays.  With this patch, the full_duplex option 
is recognized and the register is written.  The ne2k-pci-diag 
utility still says my RTL8029 is in half duplex mode, though.

Thomas

--- linux-2.4.1/drivers/net/ne2k-pci.c  Thu Feb  8 20:20:47 2001
+++ linux/drivers/net/ne2k-pci.c        Thu Feb  8 22:38:12 2001
@@ -329,8 +329,10 @@
        ei_status.word16 = 1;
        ei_status.ne2k_flags = flags;
        if (fnd_cnt < MAX_UNITS) {
-               if (full_duplex[fnd_cnt] > 0  ||  (options[fnd_cnt] & FORCE_FDX))
+               if (full_duplex[fnd_cnt - 1] > 0  ||  (options[fnd_cnt - 1] & FORCE_FDX)) {
                        ei_status.ne2k_flags |= FORCE_FDX;
+                       printk("%s: Full duplex operation specified\n",dev->name);
+               }
        }
 
        ei_status.rx_start_page = start_page + TX_PAGES;


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux