From 7de4820c87437033f6b7716018f3bfa60a3f7b12 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 23 Nov 2022 11:32:26 +0100 Subject: [PATCH] iwinfo: add "hwmodes_text" to the info output This is a preformatted string like "ac/ax/b/g/n" for presentation. Signed-off-by: Andre Heider --- iwinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iwinfo.c b/iwinfo.c index cdbb870..c93982f 100644 --- a/iwinfo.c +++ b/iwinfo.c @@ -258,10 +258,14 @@ rpc_iwinfo_call_hwmodes(const char *name) static void rpc_iwinfo_call_hw_ht_mode(int hwmodelist) { + char text[32]; const char *hwmode_str; const char *htmode_str; int htmode; + if (iwinfo_format_hwmodes(hwmodelist, text, sizeof(text)) > 0) + blobmsg_add_string(&buf, "hwmodes_text", text); + if (hwmodelist == IWINFO_80211_AD) { blobmsg_add_string(&buf, "hwmode", "ad"); -- 2.30.2