diff options
| author | Andre Heider | 2022-11-23 10:32:26 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2022-12-15 23:26:00 +0000 |
| 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"); |