summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-01-07 01:07:04 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-01-07 01:07:04 +0000
commit78eb48162a5435cd91287852474c56af807c478c (patch)
treebeb4d659618714541b93a020fba565752618d7f2
parent06ae4361eb71df2c7b71b1ab90769ecdfafc0826 (diff)
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