From: Andre Heider Date: Wed, 23 Nov 2022 10:32:26 +0000 (+0100) Subject: iwinfo: add "hwmodes_text" to the info output X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7de4820c87437033f6b7716018f3bfa60a3f7b12;p=project%2Frpcd.git 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 --- 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");