From d09a77a3695b9e684c74fbe66809449ad92b0e96 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Mon, 21 Nov 2022 17:50:09 +0100 Subject: 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 --- include/iwinfo/utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.1