summaryrefslogtreecommitdiff
path: root/iwinfo_lib.c
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-21 17:26:19 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-16 00:09:07 +0100
commit02f433e3052a5f2ee1c26c38a8beaf7a52fff645 (patch)
tree6e1f5cbd7e8689747c1482578b03d70456258d3b /iwinfo_lib.c
parent1d30df192986dc775750d09109eb386b9ff8e83e (diff)
downloadiwinfo-02f433e3052a5f2ee1c26c38a8beaf7a52fff645.tar.gz
lib: add IWINFO_80211_COUNT and IWINFO_80211_NAMES
The same as with the other defines/enums which allow consumers to iterate over all known ones. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'iwinfo_lib.c')
-rw-r--r--iwinfo_lib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/iwinfo_lib.c b/iwinfo_lib.c
index 22c4ef6..9f787ac 100644
--- a/iwinfo_lib.c
+++ b/iwinfo_lib.c
@@ -22,6 +22,16 @@
/*
* name constants
*/
+const char * const IWINFO_80211_NAMES[IWINFO_80211_COUNT] = {
+ "a",
+ "b",
+ "g",
+ "n",
+ "ac",
+ "ad",
+ "ax",
+};
+
const char * const IWINFO_BAND_NAMES[IWINFO_BAND_COUNT] = {
"2.4 GHz",
"5 GHz",