summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-04-05 05:39:47 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-04-05 05:39:47 +0000
commit599d3119cf732372e3e5460db7200c85af1a0e8c (patch)
treec27b2e3aa85e91b1dabd24ae781cf253bd18a966
parent94071db2c901621500a406289e0a895ae65efb2e (diff)
Fix USB athn(4) to be able to build on the RAMDISK. RAMDISK has SMALL_KERNEL
so there is no HostAP. athn_usb_newassoc() would return if not in HostAP mode so just stub out the function and don't build the callback function for the RAMDISK. ok deraadt@
-rw-r--r--sys/dev/usb/if_athn_usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/if_athn_usb.c b/sys/dev/usb/if_athn_usb.c
index d93aa3c2dee..c03234a286b 100644
--- a/sys/dev/usb/if_athn_usb.c
+++ b/sys/dev/usb/if_athn_usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_athn_usb.c,v 1.13 2013/03/28 04:12:12 deraadt Exp $ */
+/* $OpenBSD: if_athn_usb.c,v 1.14 2013/04/05 05:39:46 brad Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
@@ -1079,6 +1079,7 @@ void
athn_usb_newassoc(struct ieee80211com *ic, struct ieee80211_node *ni,
int isnew)
{
+#ifndef IEEE80211_STA_ONLY
struct athn_usb_softc *usc = ic->ic_softc;
if (ic->ic_opmode != IEEE80211_M_HOSTAP || !isnew)
@@ -1101,6 +1102,7 @@ athn_usb_newassoc_cb(struct athn_usb_softc *usc, void *arg)
(void)athn_usb_create_node(usc, ni);
ieee80211_release_node(ic, ni);
splx(s);
+#endif
}
void