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>
This commit is contained in:
parent
b3f530bc6b
commit
7de4820c87
1 changed files with 4 additions and 0 deletions
4
iwinfo.c
4
iwinfo.c
|
@ -258,10 +258,14 @@ rpc_iwinfo_call_hwmodes(const char *name)
|
||||||
|
|
||||||
static void rpc_iwinfo_call_hw_ht_mode(int hwmodelist)
|
static void rpc_iwinfo_call_hw_ht_mode(int hwmodelist)
|
||||||
{
|
{
|
||||||
|
char text[32];
|
||||||
const char *hwmode_str;
|
const char *hwmode_str;
|
||||||
const char *htmode_str;
|
const char *htmode_str;
|
||||||
int htmode;
|
int htmode;
|
||||||
|
|
||||||
|
if (iwinfo_format_hwmodes(hwmodelist, text, sizeof(text)) > 0)
|
||||||
|
blobmsg_add_string(&buf, "hwmodes_text", text);
|
||||||
|
|
||||||
if (hwmodelist == IWINFO_80211_AD)
|
if (hwmodelist == IWINFO_80211_AD)
|
||||||
{
|
{
|
||||||
blobmsg_add_string(&buf, "hwmode", "ad");
|
blobmsg_add_string(&buf, "hwmode", "ad");
|
||||||
|
|
Loading…
Reference in a new issue