diff options
author | 2003-01-21 16:26:40 +0000 | |
---|---|---|
committer | 2003-01-21 16:26:40 +0000 | |
commit | 7ba418155c39db3d16af03911c98a4162356d78c (patch) | |
tree | 5028e93ec5960bf76e69a1876335c547d9610926 | |
parent | do not need explicit match on intel; from alexander.guy@andern.org (diff) | |
download | wireguard-openbsd-7ba418155c39db3d16af03911c98a4162356d78c.tar.xz wireguard-openbsd-7ba418155c39db3d16af03911c98a4162356d78c.zip |
Stub out hostap bits #ifdef SMALL_KERNEL to free up space on the
floppies; OK mickey@ deraadt@
-rw-r--r-- | sys/dev/ic/if_wi.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/if_wi_hostap.c | 41 |
2 files changed, 44 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index f5debc609f4..9ceceafd417 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.89 2003/01/10 21:38:02 millert Exp $ */ +/* $OpenBSD: if_wi.c,v 1.90 2003/01/21 16:26:40 millert Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.89 2003/01/10 21:38:02 millert Exp $"; + "$OpenBSD: if_wi.c,v 1.90 2003/01/21 16:26:40 millert Exp $"; #endif /* lint */ #ifdef foo @@ -265,7 +265,9 @@ wi_attach(sc) case WI_INTERSIL: sc->wi_flags |= WI_FLAGS_HAS_ROAMING; if (sc->sc_sta_firmware_ver >= 800) { +#ifndef SMALL_KERNEL sc->wi_flags |= WI_FLAGS_HAS_HOSTAP; +#endif sc->wi_flags |= WI_FLAGS_HAS_IBSS; sc->wi_flags |= WI_FLAGS_HAS_CREATE_IBSS; } diff --git a/sys/dev/ic/if_wi_hostap.c b/sys/dev/ic/if_wi_hostap.c index 2441e57909b..111d642df87 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.21 2003/01/14 23:29:50 millert Exp $ */ +/* $OpenBSD: if_wi_hostap.c,v 1.22 2003/01/21 16:26:40 millert Exp $ */ /* * Copyright (c) 2002 @@ -94,6 +94,7 @@ void wihap_sta_disassoc(struct wi_softc *sc, u_int8_t sta_addr[], void wihap_disassoc_req(struct wi_softc *sc, struct wi_frame *rxfrm, caddr_t pkt, int len); +#ifndef SMALL_KERNEL /* * take_hword() * @@ -1261,3 +1262,41 @@ wihap_ioctl(struct wi_softc *sc, u_long command, caddr_t data) return (error); } + +#else +void +wihap_init(struct wi_softc *sc) +{ + return; +} + +void +wihap_shutdown(struct wi_softc *sc) +{ + return; +} + +void +wihap_mgmt_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m) +{ + return; +} + +int +wihap_data_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m) +{ + return (0); +} + +int +wihap_ioctl(struct wi_softc *sc, u_long command, caddr_t data) +{ + return (EINVAL); +} + +int +wihap_check_tx(struct wihap_info *whi, u_int8_t addr[], u_int8_t *txrate) +{ + return (0); +} +#endif |