summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-12-23 21:58:51 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-12-23 21:58:51 +0000
commit58f9d79dc4f0d05f2385409ae6ec23480cd74152 (patch)
treea0ef7ccff68bd9b5106fbb5607da5d4ca60daaa6 /sys/dev/ic
parentfe9b864820d9566580019858eb267aded59fa152 (diff)
Define HAL_OPCODE using enum ieee80211_opmode to prevent clang from warning
about an implicit enum conversion. ok stsp@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ar5xxx.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h
index 511a4c12292..89a403814ca 100644
--- a/sys/dev/ic/ar5xxx.h
+++ b/sys/dev/ic/ar5xxx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5xxx.h,v 1.57 2016/12/18 14:34:20 kettenis Exp $ */
+/* $OpenBSD: ar5xxx.h,v 1.58 2016/12/23 21:58:50 kettenis Exp $ */
/*
* Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -100,12 +100,12 @@ typedef enum {
HAL_ANT_MAX = 3,
} HAL_ANT_SETTING;
-typedef enum {
- HAL_M_STA = 1,
- HAL_M_IBSS = 0,
- HAL_M_HOSTAP = 6,
- HAL_M_MONITOR = 8,
-} HAL_OPMODE;
+typedef enum ieee80211_opmode HAL_OPMODE;
+
+#define HAL_M_STA IEEE80211_M_STA
+#define HAL_M_IBSS IEEE80211_M_IBSS
+#define HAL_M_HOSTAP IEEE80211_M_HOSTAP
+#define HAL_M_MONITOR IEEE80211_M_MONITOR
typedef int HAL_STATUS;