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");