* [PATCH v2] handshake: add more debugging around PMKSA caching
@ 2025-01-06 15:34 James Prestwood
2025-01-06 15:39 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2025-01-06 15:34 UTC (permalink / raw)
To: iwd; +Cc: James Prestwood
Instead of just printing the PMKSA pointer separate this into two
separate debug messages, one for if the PMKSA exists and the other
if it does not. In addition print out the MAC of the AP so we have
a reference of which PMKSA this is.
---
src/handshake.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/handshake.c b/src/handshake.c
index f73f91d1..bee31beb 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -1272,10 +1272,12 @@ void handshake_state_cache_pmksa(struct handshake_state *s)
{
struct pmksa *pmksa = handshake_state_steal_pmksa(s);
- l_debug("%p", pmksa);
-
- if (!pmksa)
+ if (!pmksa) {
+ l_debug("No PMKSA for "MAC, MAC_STR(s->aa));
return;
+ }
+
+ l_debug("Caching PMKSA for "MAC, MAC_STR(s->aa));
if (L_WARN_ON(pmksa_cache_put(pmksa) < 0))
l_free(pmksa);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] handshake: add more debugging around PMKSA caching
2025-01-06 15:34 [PATCH v2] handshake: add more debugging around PMKSA caching James Prestwood
@ 2025-01-06 15:39 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2025-01-06 15:39 UTC (permalink / raw)
To: James Prestwood, iwd
Hi James,
On 1/6/25 9:34 AM, James Prestwood wrote:
> Instead of just printing the PMKSA pointer separate this into two
> separate debug messages, one for if the PMKSA exists and the other
> if it does not. In addition print out the MAC of the AP so we have
> a reference of which PMKSA this is.
> ---
> src/handshake.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-06 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06 15:34 [PATCH v2] handshake: add more debugging around PMKSA caching James Prestwood
2025-01-06 15:39 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox