cvs commit: src/sys/compat/ndis kern_ndis.c ndis_var.h subr_ndis.c
src/sys/dev/if_ndis if_ndis.c
Bill Paul
wpaul at FreeBSD.org
Thu Jan 8 22:53:51 PST 2004
wpaul 2004/01/08 22:53:49 PST
FreeBSD src repository
Modified files:
sys/compat/ndis kern_ndis.c ndis_var.h subr_ndis.c
sys/dev/if_ndis if_ndis.c
Log:
The private data section of ndis_packets has a 'packet flags' byte
which has two important flags in it: the 'allocated by NDIS' flag
and the 'media specific info present' flag. There are two Windows macros
for getting/setting media specific info fields within the ndis_packet
structure which can behave improperly if these flags are not initialized
correctly when a packet is allocated. It seems the correct thing
to do is always set the NDIS_PACKET_ALLOCATED_BY_NDIS flag on
all newly allocated packets.
This fixes the crashes with the Intel Centrino wireless driver.
My sample card now seems to work correctly.
Also, fix a potential LOR involving ndis_txeof() in if_ndis.c.
Revision Changes Path
1.25 +1 -0 src/sys/compat/ndis/kern_ndis.c
1.14 +4 -0 src/sys/compat/ndis/ndis_var.h
1.32 +7 -0 src/sys/compat/ndis/subr_ndis.c
1.25 +2 -4 src/sys/dev/if_ndis/if_ndis.c
More information about the cvs-all
mailing list