summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2020-12-06 02:11:16 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-01-05 22:19:43 +0000
commit4e22953eb171d432afd394af03423cee70ec8858 (patch)
tree804e898398d72d0e537f05559a4a4b5d22ceeef5 /include
parentea28dfb5f9578294919ca4087f281cbdd45f68a9 (diff)
downloadiwinfo-4e22953eb171d432afd394af03423cee70ec8858.tar.gz
iwinfo: export center_chan info for local wifi
Iwinfo already export the htmode but there is no way to know where the channel expan in case a 40Mhz+ channel width is used. Export the center channels used by the driver to better know the channel utilizzation of the wifi. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/iwinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h
index 676db91..680f384 100644
--- a/include/iwinfo.h
+++ b/include/iwinfo.h
@@ -282,6 +282,8 @@ struct iwinfo_ops {
int (*survey)(const char *, char *, int *);
int (*lookup_phy)(const char *, char *);
void (*close)(void);
+ int (*center_chan1)(const char *, int *);
+ int (*center_chan2)(const char *, int *);
};
const char * iwinfo_type(const char *ifname);