mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
client: report channel if present in diag message
This commit is contained in:
parent
793228028d
commit
9f31663e21
@ -93,6 +93,7 @@ static const struct diagnostic_dict_mapping diagnostic_mapping[] = {
|
|||||||
{ "RxMCS", 'y' },
|
{ "RxMCS", 'y' },
|
||||||
{ "TxMCS", 'y' },
|
{ "TxMCS", 'y' },
|
||||||
{ "Frequency", 'u' },
|
{ "Frequency", 'u' },
|
||||||
|
{ "Channel", 'q' },
|
||||||
{ "Security", 's' },
|
{ "Security", 's' },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
@ -109,6 +110,7 @@ void diagnostic_display(struct l_dbus_message_iter *dict,
|
|||||||
while (l_dbus_message_iter_next_entry(dict, &key, &variant)) {
|
while (l_dbus_message_iter_next_entry(dict, &key, &variant)) {
|
||||||
const char *s_value;
|
const char *s_value;
|
||||||
uint32_t u_value;
|
uint32_t u_value;
|
||||||
|
uint16_t q_value;
|
||||||
int16_t n_value;
|
int16_t n_value;
|
||||||
uint8_t y_value;
|
uint8_t y_value;
|
||||||
int bytes;
|
int bytes;
|
||||||
@ -145,6 +147,14 @@ void diagnostic_display(struct l_dbus_message_iter *dict,
|
|||||||
bytes = sprintf(display_text, "%u", u_value);
|
bytes = sprintf(display_text, "%u", u_value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'q':
|
||||||
|
if (!l_dbus_message_iter_get_variant(&variant, "q",
|
||||||
|
&q_value))
|
||||||
|
goto parse_error;
|
||||||
|
|
||||||
|
bytes = sprintf(display_text, "%u", q_value);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'n':
|
case 'n':
|
||||||
if (!l_dbus_message_iter_get_variant(&variant, "n",
|
if (!l_dbus_message_iter_get_variant(&variant, "n",
|
||||||
&n_value))
|
&n_value))
|
||||||
|
Loading…
Reference in New Issue
Block a user