All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netdev: fix bug setting OWE IE length
@ 2022-02-03 17:24 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-02-03 17:24 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

The length was being set to whatever the last nl80211 attribute was,
not the length for the RESP_IE iteration.
---
 src/netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/netdev.c b/src/netdev.c
index 4dc9ce94..cda0c7fc 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -2830,7 +2830,7 @@ process_resp_ies:
 					continue;
 
 				owe_dh = data;
-				owe_dh_len = len;
+				owe_dh_len = ie_tlv_iter_get_length(&iter);
 
 				break;
 
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] netdev: fix bug setting OWE IE length
@ 2022-02-03 17:41 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-02-03 17:41 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

Hi James,

On 2/3/22 11:24, James Prestwood wrote:
> The length was being set to whatever the last nl80211 attribute was,
> not the length for the RESP_IE iteration.
> ---
>   src/netdev.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-03 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 17:41 [PATCH] netdev: fix bug setting OWE IE length Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2022-02-03 17:24 James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.