diff mbox series

[v2,09/15] Accept FILS Request Parameters elements with only the mandatory fields

Message ID 20261016190823.2617767-10-me@andrei-z.com
State New
Headers show
Series AP: WNM/MBO, OCE AP, ESP and RRM additions and fixes | expand

Commit Message

Andrei-Alexandru Bleortu Oct. 16, 2026, 7:08 p.m. UTC
The FILS Request Parameters element has two mandatory fields after the
Element ID Extension, Parameter Control Bitmap and Max Channel Time
(IEEE Std 802.11-2024, 9.4.2.176), but the parser required three
octets, so it dropped the element as wpa_supplicant and other STAs send
it when no optional field is present.

Assisted-by: LLM
Signed-off-by: Andrei-Alexandru Bleortu <me@andrei-z.com>
---
 src/common/ieee802_11_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index 0a1e9a67b..c8e1067e9 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -323,7 +323,8 @@  static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
 		elems->assoc_delay_info = pos;
 		break;
 	case WLAN_EID_EXT_FILS_REQ_PARAMS:
-		if (elen < 3)
+		/* Parameter Control Bitmap and Max Channel Time fields */
+		if (elen < 2)
 			break;
 		elems->fils_req_params = pos;
 		elems->fils_req_params_len = elen;