summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-01-21 16:26:41 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-01-21 16:26:41 +0000
commit7b841ea6b6ed98010da6a1e71ebb165af297a70d (patch)
tree4165dbc5528decf95469765c2f8480470346a8e8 /sys/dev
parentd672c83742cab7cd65ac91e8cf87275981ecd565 (diff)
Stub out hostap bits #ifdef SMALL_KERNEL to free up space on the
floppies; OK mickey@ deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/if_wi.c6
-rw-r--r--sys/dev/ic/if_wi_hostap.c41
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