summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-05-08 13:14:36 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-05-08 13:29:10 +0200
commit7b39bee1c62dc68c84938cda43115e4d30724d1e (patch)
treeaa0c1961e4320b6eeebf3c0169e984ef99a8c464 /include
parent9842d2507fa19cdf7d0bfd76df73609d14473b49 (diff)
downloadiwinfo-7b39bee1c62dc68c84938cda43115e4d30724d1e.tar.gz
iwinfo: add support for querying available HT modes
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'include')
-rw-r--r--include/iwinfo.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h
index 57a88e2..95020a4 100644
--- a/include/iwinfo.h
+++ b/include/iwinfo.h
@@ -66,6 +66,21 @@ enum iwinfo_opmode {
extern const char *IWINFO_OPMODE_NAMES[];
+enum iwinfo_htmode {
+ IWINFO_HTMODE_HT20 = (1 << 0),
+ IWINFO_HTMODE_HT40 = (1 << 1),
+ IWINFO_HTMODE_VHT20 = (1 << 2),
+ IWINFO_HTMODE_VHT40 = (1 << 3),
+ IWINFO_HTMODE_VHT80 = (1 << 4),
+ IWINFO_HTMODE_VHT80_80 = (1 << 5),
+ IWINFO_HTMODE_VHT160 = (1 << 6),
+
+ IWINFO_HTMODE_COUNT = 7
+};
+
+extern const char *IWINFO_HTMODE_NAMES[IWINFO_HTMODE_COUNT];
+
+
struct iwinfo_rate_entry {
uint32_t rate;
int8_t mcs;
@@ -165,6 +180,7 @@ struct iwinfo_ops {
int (*quality_max)(const char *, int *);
int (*mbssid_support)(const char *, int *);
int (*hwmodelist)(const char *, int *);
+ int (*htmodelist)(const char *, int *);
int (*ssid)(const char *, char *);
int (*bssid)(const char *, char *);
int (*country)(const char *, char *);