diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-01-06 04:05:37 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-01-06 17:38:07 +0000 |
commit | 0702f322949bb276ae42b77c8c0cd89d8a5d0318 (patch) | |
tree | d789bf6190b19a060e781b6b5163637e0e441dc6 /include | |
parent | 618c1e86f039b815e3c6b79e91ea706a830716a0 (diff) | |
download | iwinfo-0702f322949bb276ae42b77c8c0cd89d8a5d0318.tar.gz |
iwinfo: improve center channel handling
- Improve iwinfo center channel struct position
- Prevent read beyond buffer on malformed data
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h index 5799c02..40ef3a7 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -255,6 +255,8 @@ struct iwinfo_ops { int (*probe)(const char *ifname); int (*mode)(const char *, int *); int (*channel)(const char *, int *); + int (*center_chan1)(const char *, int *); + int (*center_chan2)(const char *, int *); int (*frequency)(const char *, int *); int (*frequency_offset)(const char *, int *); int (*txpower)(const char *, int *); @@ -283,8 +285,6 @@ 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); |