CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2019/09/18 17:52:32

Modified files:
        sys/dev/pci    : if_ipw.c if_iwi.c if_iwm.c if_iwn.c if_wpi.c 

Log message:
don't hand roll bpf_mtap_hdr functionality, just use bpf_mtap_hdr.

the radiotap code prepends a big struct to the packets, and wires
them up with the packet by putting an mbuf on the stack and using
that as the head of an mbuf chain. bpf_mtap_hdr does the chain head
thing for us, so shrink this code by calling the bpf function.

there's some other drivers that do this too, so if anyone wants a
free commit they should go looking in the other wireless drivers
and do the same change.

ok claudio@

Reply via email to