From nobody Mon Jun 8 08:32:13 2026 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BE5E3BB669 for ; Fri, 5 Jun 2026 05:43:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780638209; cv=none; b=oxJnnc59VPD0z9DuelPyk7Mp5KeSQI8L439pU07Xsnf+r8E1sOZdSf/Ol0LXI5o10R7TPREofVmN9ZC0v+6Xv9Yz0ZOJkxl8FtqsNQuKFORNbQajpawk1UqgUhLVgomiOnA1tTZ7a+GY4gryYEibEJ48lrh91ncAEOhYmybU1oY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780638209; c=relaxed/simple; bh=gGUvHyvzHMsGpAbJTZd2UDW79of12UPb0DK/PTb2shw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f9sJVIb/qN4ItEeb9tn1E0uVDe7gjcePvsf9zWRRtqn0bvsvZTvd9RJc2nbY6NAweY9aQvMUqSjPJq7V4wWhQljPWj0jHsFN3xBVSdKLJZuWfz/n9yYkb5Srzdyu3kI4/Ckkw5AVu3rDnTH4MqwEd/PJwM+kieyQQAhEfbtEo9w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aerlync.com; spf=pass smtp.mailfrom=aerlync.com; dkim=fail (0-bit key) header.d=aerlync.com header.i=@aerlync.com header.b=XkYZRVdq reason="key not found in DNS"; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aerlync.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aerlync.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=aerlync.com header.i=@aerlync.com header.b="XkYZRVdq" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2bf20f6be6bso11381955ad.3 for ; Thu, 04 Jun 2026 22:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aerlync.com; s=google; t=1780638206; x=1781243006; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rr3uHyRr40Kradp7b17MtfEThEXSmT+CiVoEre+5jfE=; b=XkYZRVdqs75Ghy9l9WEoUabe8+2zdRqT8UwxFhUuSABXYRPve5Paj3/c33Fkml1lqs mt26QKKBfPF3jl2XI1o92J9XnppBkZBIrMbpoAx8NvqSPWYHQIZj9D8QS1k0OXYTy49c XvVQ4TCFWOE3C2C07hjjFcqupTUer3gH3lRxz5IAuj11FOEuVpC1FNmYj93nW2pChAkI ks9d4NMiHCqIQRSUhGI/CCn93nQgknZH6kwzGSzgjyjF2HDBH2r6H3ajFt+KzYnnVdI0 rxnEc8KhHpTYOHc1l7okGELjZ7nHFG8ZJH5F7tz8q9KPW3xkpelITsp/+CjKjEBovdyj iruw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780638206; x=1781243006; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rr3uHyRr40Kradp7b17MtfEThEXSmT+CiVoEre+5jfE=; b=i8yLOVfgoWBnIStulKBqbwsoSIxTMqtRepKJ9EVghIBWrZeuClTWJ8yeAP53Iotegf 1XW5zw3RpPSX5RmaSuWBFxGMispeDng3bLcU5oGEFxjdTpwAlLOXMRkVANBGQYSvzFp9 WthLeaS+EnYZNiDIN+HSNGMP/HNKpvRmTOaR+s1tS2lSYnG/U4qgOhdW5bJl9DdSUZ1s Ux3me3Um+jC6R6hr3jQh8O9m2Lmek9JZCAvlLd5WIy5krPYGutX53AAbOJADt55RN/o1 OFYbvJjrAhiwsF+Gi+oxjBhZzxE8XOPPidpEKTj55FmGHNSdmaVmaA8fRpyiPRmYuQRL vYXg== X-Gm-Message-State: AOJu0YwQ0Ry0Oz8GtLi3qJXYo9+pNL5AASPG7YfxhFHyg1vtYmglZqLZ +oLNc9fjhdD/fDsJLG1wDap1lpCpKqn8QgeZT2NjbAcaTHho+l3X8qBADdXAIkFDsFpw63frlxm J/cqJ X-Gm-Gg: Acq92OFjtwG0uZVRSwb0E+35W7vtFkbD9NIntk30hgjxAeAgwrFnHz5eGJ0t2Lp+CVb 8ygIhuKQrI7VfJAnb/vc9mIR4dRR0lKI4TkIXqW4SHoFmYLPz9KtkH9Tgtr+q4oT7IpKfFghoLa sJDW/E1EVjI82kSLwBlYWidmUGesuKVSSMl+4J7HokF36EuUjEjHDXVX8RHSCz6Ol3SnZIUheao z2XJCDDKkhMnJ+8Sqfs7GVvr456roKUepNd7lpGEYD/M/cUdaEGRDuXKKomr/tcVmUOzl6X7MMU 358m062WkBIP0ksZ24aSyg07RxZt91KFjybuUZLdndqSkOCEPgSkUWUr6Z4OsGd5FpCQzM0dBi4 AloG+WdYr+P4Oi8WaFqpULIsq3xjn9bzTY4Ki0qx2ZbdnNP6+l/oaimgCaGqpKDM4NvZ9belCWy e8ViFfn6Jl1W111/oKl8xpb75tqKKcPtY2ZH2Ol3zAtBzSvumwnEo= X-Received: by 2002:a17:903:2348:b0:2c1:ee75:56bb with SMTP id d9443c01a7336-2c1ee755854mr10393355ad.20.1780638206576; Thu, 04 Jun 2026 22:43:26 -0700 (PDT) Received: from localhost.localdomain ([60.243.50.177]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164f8792bsm78231815ad.23.2026.06.04.22.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 22:43:25 -0700 (PDT) From: Thiyagarajan Pandiyan To: johannes@sipsolutions.net Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Thiyagarajan Pandiyan Subject: [PATCH] wifi: nl80211: Increase ie_len size to prevent truncated IEs in new peer notifications Date: Fri, 5 Jun 2026 11:13:07 +0530 Message-ID: <20260605054307.427874-1-thiyagarajan@aerlync.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Currently, ie_len in cfg80211_notify_new_peer_candidate is defined as 1-byte field, capping the maximum IE list size at 255 bytes. When a large beacon is received, the IE list is truncated, passing incomplete data to wpa_supplicant. This causes supplicant to fail parsing the IEs. Increasing the size of ie_len to allow the full length of the IE list to be forwarded properly. Signed-off-by: Thiyagarajan Pandiyan --- include/net/cfg80211.h | 2 +- net/wireless/nl80211.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 9d3639ff9c28..36af36533cac 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -8445,7 +8445,7 @@ void cfg80211_ibss_joined(struct net_device *dev, con= st u8 *bssid, * cfg80211 then sends a notification to userspace. */ void cfg80211_notify_new_peer_candidate(struct net_device *dev, - const u8 *macaddr, const u8 *ie, u8 ie_len, + const u8 *macaddr, const u8 *ie, size_t ie_len, int sig_dbm, gfp_t gfp); =20 /** diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 7db9cd433801..0d97a47c35fb 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -20958,7 +20958,7 @@ void nl80211_send_ibss_bssid(struct cfg80211_regist= ered_device *rdev, } =20 void cfg80211_notify_new_peer_candidate(struct net_device *dev, const u8 *= addr, - const u8 *ie, u8 ie_len, + const u8 *ie, size_t ie_len, int sig_dbm, gfp_t gfp) { struct wireless_dev *wdev =3D dev->ieee80211_ptr; --=20 2.43.0