Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 11/16/2007 23:51:02
Module Name:	src
Committed By:	dyoung
Date:		Fri Nov 16 23:51:02 UTC 2007

Modified Files:
	src/sys/dev/ic: atw.c atwvar.h

Log Message:
Count received frames, Rx PLCP errors, Rx FCS (CRC32) errors, and
Rx ICV errors using evcnt(9).

In promiscuous mode, and when scanning (hmm), ask the NIC for bad
packets (e.g., those that do not pass CRC32).  Pass bad packets to
radiotap listeners.  Pass packets to radiotap listeners before
stripping FCS.  Re-order operations in atw_rxintr() to accomplish
all of this without passing bad packets up to net80211.

Set radiotap channel once in atw_tune() instead of in atw_rxintr().

Fix an endianness bug: it_len is little-endian, but bpf_mtap2()'s
argument needs to be in host order.


To generate a diff of this commit:
cvs rdiff -r1.133 -r1.134 src/sys/dev/ic/atw.c
cvs rdiff -r1.25 -r1.26 src/sys/dev/ic/atwvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.