[PATCH 4/4] station: print security of network when connecting

James Prestwood <[email protected]>
Newsgroups dev.linux.lists.iwd
Message-ID <[email protected]>
After removing the debug log in wiphy_select_akm we still should
log this information. Now it will just be logged once per connection
attempt.
---
 src/station.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/station.c b/src/station.c
index 5403c332..bb6debb9 100644
--- a/src/station.c
+++ b/src/station.c
@@ -3809,11 +3809,15 @@ int __station_connect_network(struct station *station, struct network *network,
 	}
 
 	iwd_notice(IWD_NOTICE_CONNECT_INFO, "ssid: %s, bss: "MAC", "
-					"signal: %d, load: %d/255",
+					"signal: %d, load: %d/255, "
+					"security: %s",
 					network_get_ssid(network),
 					MAC_STR(bss->addr),
 					bss->signal_strength / 100,
-					bss->utilization);
+					bss->utilization,
+					diagnostic_akm_suite_to_security(
+								hs->akm_suite,
+								hs->wpa_ie));
 
 	station->connected_bss = bss;
 	station->connected_network = network;
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.