diff options
author | 2013-04-05 05:39:46 +0000 | |
---|---|---|
committer | 2013-04-05 05:39:46 +0000 | |
commit | 10c7bb96208bd5894d4611ce0e50c64d3d483c37 (patch) | |
tree | 5d0b53bcde18f5b3cadc5c734f7608f203f3f038 /sys | |
parent | Grammar tweaks. (diff) | |
download | wireguard-openbsd-10c7bb96208bd5894d4611ce0e50c64d3d483c37.tar.xz wireguard-openbsd-10c7bb96208bd5894d4611ce0e50c64d3d483c37.zip |
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@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_athn_usb.c | 4 |
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 |