diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-04-06 22:21:57 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-04-06 22:21:57 +0000 |
| commit | b9d311049e19f5e29329637cd5a4f359dea66786 (patch) | |
| tree | 6ff8bcea5cc7f71fc9eb755f157f31b35f2de6a4 /sys/dev/wi | |
| parent | 85d6297f466b2e74ea5c5815f0dcf9eee88b1986 (diff) | |
Notes
Diffstat (limited to 'sys/dev/wi')
| -rw-r--r-- | sys/dev/wi/if_wi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 2cbaa5815503..8a527beab889 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -578,7 +578,7 @@ static void wi_rxeof(sc) (char *)&eh->ether_shost, ETHER_ADDR_LEN); } bcopy((char *)&rx_frame.wi_type, - (char *)&eh->ether_type, sizeof(u_int16_t)); + (char *)&eh->ether_type, ETHER_TYPE_LEN); if (wi_read_data(sc, id, WI_802_11_OFFSET, mtod(m, caddr_t) + sizeof(struct ether_header), @@ -1832,7 +1832,7 @@ void wi_cache_store (struct wi_softc *sc, struct ether_header *eh, * keep multicast only. */ - if ((ntohs(eh->ether_type) == 0x800)) { + if ((ntohs(eh->ether_type) == ETHERTYPE_IP)) { sawip = 1; } |
