All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ft: remove frame type check in FT
@ 2022-05-23 18:16 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-05-23 18:16 UTC (permalink / raw)
  To: iwd

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

A user reported that IWD was failing to FT in some cases and this was
due to the AP setting the Retry bit in the frame type. This was
unexpected by IWD since it directly checks the frame type against
0x00b0 which does not account for any B8-B15 bits being set.

IWD doesn't need to verify the frame type field for a few reasons:
First mpdu_validate checks the management frame type, Second the kernel
checks prior to forwarding the event. Because of this the check was
removed completely.
---
 src/ft.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/ft.c b/src/ft.c
index 2b41ae18..2285a86f 100644
--- a/src/ft.c
+++ b/src/ft.c
@@ -122,16 +122,11 @@ static bool ft_parse_authentication_resp_frame(const uint8_t *data, size_t len,
 				uint16_t *out_status, const uint8_t **out_ies,
 				size_t *out_ies_len)
 {
-	const uint16_t frame_type = 0x00b0;
 	uint16_t status = 0;
 
 	if (len < 30)
 		return false;
 
-	/* Check FC == Management Frame -> Authentication */
-	if (l_get_le16(data + 0) != frame_type)
-		return false;
-
 	if (memcmp(data + 4, addr1, 6))
 		return false;
 	if (memcmp(data + 10, addr2, 6))
-- 
2.34.1

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

* Re: [PATCH] ft: remove frame type check in FT
@ 2022-05-23 18:01 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-05-23 18:01 UTC (permalink / raw)
  To: iwd

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

Hi James,

On 5/23/22 13:16, James Prestwood wrote:
> A user reported that IWD was failing to FT in some cases and this was
> due to the AP setting the Retry bit in the frame type. This was
> unexpected by IWD since it directly checks the frame type against
> 0x00b0 which does not account for any B8-B15 bits being set.
> 
> IWD doesn't need to verify the frame type field for a few reasons:
> First mpdu_validate checks the management frame type, Second the kernel
> checks prior to forwarding the event. Because of this the check was
> removed completely.
> ---
>   src/ft.c | 5 -----
>   1 file changed, 5 deletions(-)
> 

Applied, thanks.

Regards,
-Denis

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

end of thread, other threads:[~2022-05-23 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 18:16 [PATCH] ft: remove frame type check in FT James Prestwood
  -- strict thread matches above, loose matches on Subject: below --
2022-05-23 18:01 Denis Kenzior

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.