diff options
| author | Kevin Lo <kevlo@FreeBSD.org> | 2007-06-29 02:43:13 +0000 |
|---|---|---|
| committer | Kevin Lo <kevlo@FreeBSD.org> | 2007-06-29 02:43:13 +0000 |
| commit | 56083486d5e776c7cf73b53d3d1c397db85e794e (patch) | |
| tree | 9ea6e9e1df3e46bb27349c13558f65579facde9c /sys/dev/ipw | |
| parent | a6a36b4cecf011860fbaf286a353c0ab68d2ef2c (diff) | |
Notes
Diffstat (limited to 'sys/dev/ipw')
| -rw-r--r-- | sys/dev/ipw/if_ipw.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c index 2dca3cdf85bfc..0f412db103a25 100644 --- a/sys/dev/ipw/if_ipw.c +++ b/sys/dev/ipw/if_ipw.c @@ -312,13 +312,14 @@ ipw_attach(device_t dev) ieee80211_media_init(ic, ipw_media_change, ipw_media_status); bpfattach2(ifp, DLT_IEEE802_11_RADIO, - sizeof (struct ieee80211_frame) + 64, &sc->sc_drvbpf); + sizeof (struct ieee80211_frame) + sizeof (sc->sc_txtap), + &sc->sc_drvbpf); - sc->sc_rxtap_len = sizeof sc->sc_rxtapu; + sc->sc_rxtap_len = sizeof sc->sc_rxtap; sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); sc->sc_rxtap.wr_ihdr.it_present = htole32(IPW_RX_RADIOTAP_PRESENT); - sc->sc_txtap_len = sizeof sc->sc_txtapu; + sc->sc_txtap_len = sizeof sc->sc_txtap; sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); sc->sc_txtap.wt_ihdr.it_present = htole32(IPW_TX_RADIOTAP_PRESENT); |
