Remove the sanity test in ndis_adjust_buflen(). I'm not sure what the
nb_size field in an ndis_buffer is meant to represent, but it does not represent the original allocation size, so the sanity check doesn't make any sense now that we're using the Windows-mandated initialization method. Among other things, this makes the following card work with the NDISulator: ndis0: <NETGEAR PA301 Phoneline10X PCI Adapter> mem 0xda004000-0xda004fff irq 10 at device 9.0 on pci0 This is that notoriously undocumented 10Mbps HomePNA Broadcom chipset that people wanted support for many moons ago. Sadly, the only other HomePNA NIC I have handy is a 1Mbps device, so I can't actually do any 10Mbps performance tests, but it talks to my 1Mbps ADMtek card just fine.
This commit is contained in:
parent
70ad6c2190
commit
f123dd84fb
@ -1707,8 +1707,6 @@ ndis_adjust_buflen(buf, len)
|
||||
ndis_buffer *buf;
|
||||
int len;
|
||||
{
|
||||
if (len > buf->nb_size)
|
||||
return;
|
||||
buf->nb_bytecount = len;
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user