Skip to contentSkip to conversation

doc: add Frequency to station diagnostics

PATCH In review James Prestwood 2 participants 4 messages Feb 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 doc: add Frequency to station diagnostics

---
 doc/station-diagnostic-api.txt | 2 ++
 1 file changed, 2 insertions(+)
doc/station-diagnostic-api.txt +2 -0
index 78f08ac1..af82229b 100644
@@ -21,6 +21,8 @@ Methods		dict GetDiagnostics()
 
 			ConnectedBss - MAC address of currently connected BSS.
 
+			Frequency - Frequency of currently connected BSS.
+
 			RSSI [optional] - The RSSI of the currently connected BSS.
 
 			RxMode [optional] -	The phy technology being used
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/3 station: add Frequency to diagnostics dictionary

---
 src/station.c | 2 ++
 1 file changed, 2 insertions(+)
src/station.c +2 -0
index aee90c23..df7140c0 100644
@@ -3557,6 +3557,8 @@ static void station_get_diagnostic_cb(
 
 	dbus_append_dict_basic(builder, "ConnectedBss", 's',
 					util_address_to_string(info->addr));
+	dbus_append_dict_basic(builder, "Frequency", 'u',
+				&station->connected_bss->frequency);
 
 	diagnostic_info_to_dict(info, builder);
 
Signature · 1 line
2.26.2
#2 lore raw

PATCH 3/3 client: add Frequency to station show

In reply to James Prestwood
---
 client/diagnostic.c | 1 +
 1 file changed, 1 insertion(+)
client/diagnostic.c +1 -0
index 9d6b599d..c94178d6 100644
@@ -87,6 +87,7 @@ static const struct diagnostic_dict_mapping diagnostic_mapping[] = {
 	{ "RSSI", 'n', "dBm" },
 	{ "RxMCS", 'y' },
 	{ "TxMCS", 'y' },
+	{ "Frequency", 'u' },
 	{ NULL }
 };
 
Signature · 1 line
2.26.2