diff options
author | Andre Heider <a.heider@gmail.com> | 2022-11-21 17:50:09 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-12-16 00:09:07 +0100 |
commit | d09a77a3695b9e684c74fbe66809449ad92b0e96 (patch) | |
tree | 92b38760edf0016ceb83b72954a818e0892a5a49 /include | |
parent | 87529770f6494189f3f21252c3a83d708f1faacf (diff) | |
download | iwinfo-d09a77a3695b9e684c74fbe66809449ad92b0e96.tar.gz |
utils: add iwinfo_htmode_is_{ht|vht|he} helpers
Small and useful functions which allow to clear up some consumers.
Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo/utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/iwinfo/utils.h b/include/iwinfo/utils.h index 6fe5785..e9b8f1d 100644 --- a/include/iwinfo/utils.h +++ b/include/iwinfo/utils.h @@ -44,6 +44,9 @@ static inline int iwinfo_mbm2dbm(int gain) } size_t iwinfo_format_hwmodes(int modes, char *buf, size_t len); +int iwinfo_htmode_is_ht(int htmode); +int iwinfo_htmode_is_vht(int htmode); +int iwinfo_htmode_is_he(int htmode); int iwinfo_ifup(const char *ifname); int iwinfo_ifdown(const char *ifname); |