[PATCH 09/15] Accept FILS Request Parameters elements with only the mandatory fields
Andrei-Alexandru Bleortu
me at andrei-z.com
Sun Oct 4 03:42:02 PDT 2026
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 at andrei-z.com>
---
src/common/ieee802_11_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
--
2.47.3
More information about the Hostap
mailing list