Deleted Added
full compact
if_wi.c (159180) if_wi.c (159319)
1/* $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998, 1999
5 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 48 unchanged lines hidden (view full) ---

57 * from the HCF Light code and corresponding documentation.
58 *
59 * This driver supports the ISA, PCMCIA and PCI versions of the Lucent
60 * WaveLan cards (based on the Hermes chipset), as well as the newer
61 * Prism 2 chipsets with firmware from Intersil and Symbol.
62 */
63
64#include <sys/cdefs.h>
1/* $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998, 1999
5 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 48 unchanged lines hidden (view full) ---

57 * from the HCF Light code and corresponding documentation.
58 *
59 * This driver supports the ISA, PCMCIA and PCI versions of the Lucent
60 * WaveLan cards (based on the Hermes chipset), as well as the newer
61 * Prism 2 chipsets with firmware from Intersil and Symbol.
62 */
63
64#include <sys/cdefs.h>
65__FBSDID("$FreeBSD: head/sys/dev/wi/if_wi.c 159180 2006-06-02 19:59:33Z csjp $");
65__FBSDID("$FreeBSD: head/sys/dev/wi/if_wi.c 159319 2006-06-05 22:59:14Z avatar $");
66
67#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
68#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
69
70#define NBPFILTER 1
71
72#include <sys/param.h>
73#include <sys/systm.h>

--- 901 unchanged lines hidden (view full) ---

975 if (ni != NULL)
976 ieee80211_free_node(ni);
977 m_freem(m0);
978 continue;
979 }
980 frmhdr.wi_tx_ctl |= htole16(WI_TXCNTL_NOCRYPT);
981 }
982#if NBPFILTER > 0
66
67#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
68#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
69
70#define NBPFILTER 1
71
72#include <sys/param.h>
73#include <sys/systm.h>

--- 901 unchanged lines hidden (view full) ---

975 if (ni != NULL)
976 ieee80211_free_node(ni);
977 m_freem(m0);
978 continue;
979 }
980 frmhdr.wi_tx_ctl |= htole16(WI_TXCNTL_NOCRYPT);
981 }
982#if NBPFILTER > 0
983 if (bpf_peers_present(ic->ic_rawbpf)) {
983 if (bpf_peers_present(ic->ic_drvbpf)) {
984 sc->sc_tx_th.wt_rate =
985 ni->ni_rates.rs_rates[ni->ni_txrate];
986 bpf_mtap2(sc->sc_drvbpf,
987 &sc->sc_tx_th, sc->sc_tx_th_len, m0);
988 }
989#endif
990 m_copydata(m0, 0, sizeof(struct ieee80211_frame),
991 (caddr_t)&frmhdr.wi_whdr);

--- 2278 unchanged lines hidden ---
984 sc->sc_tx_th.wt_rate =
985 ni->ni_rates.rs_rates[ni->ni_txrate];
986 bpf_mtap2(sc->sc_drvbpf,
987 &sc->sc_tx_th, sc->sc_tx_th_len, m0);
988 }
989#endif
990 m_copydata(m0, 0, sizeof(struct ieee80211_frame),
991 (caddr_t)&frmhdr.wi_whdr);

--- 2278 unchanged lines hidden ---