diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/if_wi_hostap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi_hostap.c b/sys/dev/ic/if_wi_hostap.c index 71c3b5a9776..0d6f069c2b1 100644 --- a/sys/dev/ic/if_wi_hostap.c +++ b/sys/dev/ic/if_wi_hostap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_hostap.c,v 1.24 2003/02/15 17:49:39 millert Exp $ */ +/* $OpenBSD: if_wi_hostap.c,v 1.25 2003/05/16 02:30:40 millert Exp $ */ /* * Copyright (c) 2002 @@ -329,7 +329,8 @@ static __inline int addr_cmp(u_int8_t a[], u_int8_t b[]) { return (*(u_int16_t *)(a + 4) == *(u_int16_t *)(b + 4) && - *(u_int32_t *)(a ) == *(u_int32_t *)(b)); + *(u_int16_t *)(a + 2) == *(u_int16_t *)(b + 2) && + *(u_int16_t *)(a ) == *(u_int16_t *)(b)); } /* wihap_sta_movetail(): move sta to the tail of the station list in whi */ |