diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-23 23:07:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-23 23:07:22 +0000 |
commit | 966245262d251c90f443a47761efa2715e8dd997 (patch) | |
tree | f4aa603af5aede31d9dfa8c0803a5469dec2a780 /sys | |
parent | f75b9fc5324b92893cd3961e09583fa91c25e2f0 (diff) |
make use of ether_input_mbuf, easy
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/awi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ic/awi.c b/sys/dev/ic/awi.c index ab6a27f7d15..80f36915bfa 100644 --- a/sys/dev/ic/awi.c +++ b/sys/dev/ic/awi.c @@ -1221,9 +1221,6 @@ awi_input(sc, m, rxts, rssi) { struct ifnet *ifp = sc->sc_ifp; struct ieee80211_frame *wh; -#ifndef __NetBSD__ - struct ether_header *eh; -#endif /* trim CRC here for WEP can find its own CRC at the end of packet. */ m_adj(m, -ETHER_CRC_LEN); @@ -1284,9 +1281,7 @@ awi_input(sc, m, rxts, rssi) #ifdef __NetBSD__ (*ifp->if_input)(ifp, m); #else - eh = mtod(m, struct ether_header *); - m_adj(m, sizeof(*eh)); - ether_input(ifp, eh, m); + ether_input_mbuf(ifp, m); #endif break; case IEEE80211_FC0_TYPE_MGT: |