summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2009-01-07 01:07:03 +0000
committerjsg <jsg@openbsd.org>2009-01-07 01:07:03 +0000
commit4be1db0de44c2e63f0bab1b3a727800f1c081c75 (patch)
treef9afbb453421d735abe1588c57de3b49cff912d5
parentDon't attempt to use gcc __builtin_abs, abs is not used (diff)
downloadwireguard-openbsd-4be1db0de44c2e63f0bab1b3a727800f1c081c75.tar.xz
wireguard-openbsd-4be1db0de44c2e63f0bab1b3a727800f1c081c75.zip
declare bwi_modtype enum before it is used in function prototypes.
-rw-r--r--sys/dev/ic/bwi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index c584fccf396..e0513a889cc 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.83 2008/11/26 18:01:43 dlg Exp $ */
+/* $OpenBSD: bwi.c,v 1.84 2009/01/07 01:07:03 jsg Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -124,6 +124,13 @@ struct ieee80211_ds_plcp_hdr {
uint16_t i_crc;
} __packed;
+enum bwi_modtype {
+ IEEE80211_MODTYPE_DS = 0, /* DS/CCK modulation */
+ IEEE80211_MODTYPE_PBCC = 1, /* PBCC modulation */
+ IEEE80211_MODTYPE_OFDM = 2 /* OFDM modulation */
+};
+#define IEEE80211_MODTYPE_CCK IEEE80211_MODTYPE_DS
+
/* MAC */
void bwi_tmplt_write_4(struct bwi_mac *, uint32_t, uint32_t);
void bwi_hostflags_write(struct bwi_mac *, uint64_t);
@@ -574,13 +581,6 @@ const struct {
static const uint8_t bwi_zero_addr[IEEE80211_ADDR_LEN];
-enum bwi_modtype {
- IEEE80211_MODTYPE_DS = 0, /* DS/CCK modulation */
- IEEE80211_MODTYPE_PBCC = 1, /* PBCC modulation */
- IEEE80211_MODTYPE_OFDM = 2 /* OFDM modulation */
-};
-#define IEEE80211_MODTYPE_CCK IEEE80211_MODTYPE_DS
-
/* CODE */
int