diff options
Diffstat (limited to 'freebsd/sbin/ifconfig/ifieee80211.c')
-rw-r--r-- | freebsd/sbin/ifconfig/ifieee80211.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifieee80211.c b/freebsd/sbin/ifconfig/ifieee80211.c index 13406f36..3dcd926e 100644 --- a/freebsd/sbin/ifconfig/ifieee80211.c +++ b/freebsd/sbin/ifconfig/ifieee80211.c @@ -1,5 +1,9 @@ #include <machine/rtems-bsd-user-space.h> +#ifdef __rtems__ +#include "rtems-bsd-ifconfig-namespace.h" +#endif /* __rtems__ */ + /* * Copyright 2001 The Aerospace Corporation. All rights reserved. * @@ -59,6 +63,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifdef __rtems__ +#include <machine/rtems-bsd-program.h> +#endif /* __rtems__ */ #include <rtems/bsd/sys/param.h> #include <sys/ioctl.h> #include <sys/socket.h> @@ -95,6 +102,9 @@ #include <lib80211/lib80211_regdomain.h> #include <lib80211/lib80211_ioctl.h> +#ifdef __rtems__ +#include "rtems-bsd-ifconfig-ifieee80211-data.h" +#endif /* __rtems__ */ #ifndef IEEE80211_FIXED_RATE_NONE #define IEEE80211_FIXED_RATE_NONE 0xff @@ -3448,7 +3458,11 @@ printmimo(const struct ieee80211_mimo_info *mi) static void list_scan(int s) { +#ifndef __rtems__ uint8_t buf[24*1024]; +#else /* __rtems__ */ + static uint8_t buf[24*1024]; +#endif /* __rtems__ */ char ssid[IEEE80211_NWID_LEN+1]; const uint8_t *cp; int len, ssidmax, idlen; @@ -5693,7 +5707,11 @@ static struct afswtch af_ieee80211 = { .af_other_status = ieee80211_status, }; +#ifndef __rtems__ static __constructor void +#else /* __rtems__ */ +void +#endif /* __rtems__ */ ieee80211_ctor(void) { int i; |