summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_proto.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-03-07 04:35:07 +0000
committersam <sam@FreeBSD.org>2007-03-07 04:35:07 +0000
commit24d9d9d38048472a526ad8fd061b7e5d587ac709 (patch)
tree8ddcbf3d0c8406ac622a50ae8b0f9e2de844a2a9 /sys/net80211/ieee80211_proto.c
parentbf24ed1972b3a8bf807a8951aa39f776db4aeba0 (diff)
downloadFreeBSD-src-24d9d9d38048472a526ad8fd061b7e5d587ac709.zip
FreeBSD-src-24d9d9d38048472a526ad8fd061b7e5d587ac709.tar.gz
add ieee80211_opmode_name array for mapping the opmode to a string
for printing diagnostic msgs MFC after: 2 weeks
Diffstat (limited to 'sys/net80211/ieee80211_proto.c')
-rw-r--r--sys/net80211/ieee80211_proto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c
index 4fa970b..de2db52 100644
--- a/sys/net80211/ieee80211_proto.c
+++ b/sys/net80211/ieee80211_proto.c
@@ -69,6 +69,16 @@ const char *ieee80211_ctl_subtype_name[] = {
"reserved#8", "reserved#9", "ps_poll", "rts",
"cts", "ack", "cf_end", "cf_end_ack"
};
+const char *ieee80211_opmode_name[IEEE80211_OPMODE_MAX] = {
+ "IBSS", /* IEEE80211_M_IBSS */
+ "STA", /* IEEE80211_M_STA */
+ "#2",
+ "AHDEMO", /* IEEE80211_M_AHDEMO */
+ "#4", "#5",
+ "HOSTAP", /* IEEE80211_M_HOSTAP */
+ "#7",
+ "MONITOR" /* IEEE80211_M_MONITOR */
+};
const char *ieee80211_state_name[IEEE80211_S_MAX] = {
"INIT", /* IEEE80211_S_INIT */
"SCAN", /* IEEE80211_S_SCAN */
OpenPOWER on IntegriCloud