add ieee80211_opmode_name array for mapping the opmode to a string
for printing diagnostic msgs MFC after: 2 weeks
This commit is contained in:
parent
fe49f061b4
commit
49aa47d6c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167283
@ -61,6 +61,7 @@ enum ieee80211_opmode {
|
||||
IEEE80211_M_HOSTAP = 6, /* Software Access Point */
|
||||
IEEE80211_M_MONITOR = 8 /* Monitor mode */
|
||||
};
|
||||
#define IEEE80211_OPMODE_MAX (IEEE80211_M_MONITOR+1)
|
||||
|
||||
/*
|
||||
* 802.11g protection mode.
|
||||
|
@ -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 */
|
||||
|
@ -228,6 +228,7 @@ void ieee80211_beacon_miss(struct ieee80211com *);
|
||||
void ieee80211_print_essid(const u_int8_t *, int);
|
||||
void ieee80211_dump_pkt(const u_int8_t *, int, int, int);
|
||||
|
||||
extern const char *ieee80211_opmode_name[];
|
||||
extern const char *ieee80211_state_name[IEEE80211_S_MAX];
|
||||
extern const char *ieee80211_wme_acnames[];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user