From 0f7d15dd389e0965f9235f31f168ac14d3deddee Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 21 Nov 2023 01:51:17 +0200 Subject: [PATCH] ieee802_11_defs: Fix EHT_ML_PRES_BM_PROBE_REQ_AP_MLD_ID This Presence Bitmap field is B4..B15 of the Multi-Link Control field and the value used here is for that full 16-bit field, not just within the Presence Bitmap field. Signed-off-by: Johannes Berg Signed-off-by: Andrei Otcheretianski --- src/common/ieee802_11_defs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index 8cdf76bd4..1267c10eb 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -2698,9 +2698,11 @@ struct ieee80211_eht_per_sta_profile { u8 variable[]; } STRUCT_PACKED; -/* IEEE P802.11be/D2.0, 9.4.2.312.3 - Probe Request Multi-Link element */ +/* IEEE P802.11be/D4.0, 9.4.2.312.3 - Probe Request Multi-Link element + * Presence Bitmap field is B4..B15 of the Multi-Link Control field, i.e., + * B0 in the presence bitmap is B4 in the control field. */ -#define EHT_ML_PRES_BM_PROBE_REQ_AP_MLD_ID 0x0001 +#define EHT_ML_PRES_BM_PROBE_REQ_AP_MLD_ID 0x0010 struct eht_ml_probe_req_common_info { u8 len;