lib: add IWINFO_BAND_COUNT and IWINFO_BAND_NAMES
Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
aefd0ef68f
commit
1d30df1929
2 changed files with 9 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
|||
#define IWINFO_BAND_5 (1 << 1)
|
||||
#define IWINFO_BAND_6 (1 << 2)
|
||||
#define IWINFO_BAND_60 (1 << 3)
|
||||
#define IWINFO_BAND_COUNT 4
|
||||
|
||||
#define IWINFO_CIPHER_NONE (1 << 0)
|
||||
#define IWINFO_CIPHER_WEP40 (1 << 1)
|
||||
|
@ -68,6 +69,7 @@
|
|||
#define IWINFO_FREQ_NO_160MHZ (1 << 5)
|
||||
#define IWINFO_FREQ_NO_HE (1 << 6)
|
||||
|
||||
extern const char * const IWINFO_BAND_NAMES[IWINFO_BAND_COUNT];
|
||||
extern const char * const IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT];
|
||||
extern const char * const IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT];
|
||||
extern const char * const IWINFO_AUTH_NAMES[IWINFO_AUTH_COUNT];
|
||||
|
|
|
@ -22,6 +22,13 @@
|
|||
/*
|
||||
* name constants
|
||||
*/
|
||||
const char * const IWINFO_BAND_NAMES[IWINFO_BAND_COUNT] = {
|
||||
"2.4 GHz",
|
||||
"5 GHz",
|
||||
"6 GHz",
|
||||
"60 GHz",
|
||||
};
|
||||
|
||||
const char * const IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT] = {
|
||||
"NONE",
|
||||
"WEP-40",
|
||||
|
|
Loading…
Reference in a new issue