diff options
author | Andre Heider <a.heider@gmail.com> | 2022-11-23 11:32:26 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-12-16 00:26:00 +0100 |
commit | 7de4820c87437033f6b7716018f3bfa60a3f7b12 (patch) | |
tree | 4fa748dfdc913d6d30be1287ef6f5f3100f5392c | |
parent | b3f530bc6b3368daedd0af7e76438265f960cc56 (diff) | |
download | rpcd-7de4820c87437033f6b7716018f3bfa60a3f7b12.tar.gz |
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 <a.heider@gmail.com>
-rw-r--r-- | iwinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |