From patchwork Tue May 13 03:56:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Kumar Singh X-Patchwork-Id: 890136 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F30B1DFD8B for ; Tue, 13 May 2025 03:57:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747108632; cv=none; b=JeY9yNTOiVklaXAT/NC9AH+gspj0pjUMQjHYrBA947c6JbkPW89tZi1zQiELClg7tz6/5ni+7LY8OIT+qUoTv2a8D2mbYcN2p3hbeaoTjZs7NaWjZXIE2odxIIRPiIU1j8IyxOX1qwwmkJmFvF4TgBvyqDHvi53yDxoQvw5t434= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747108632; c=relaxed/simple; bh=xcTsYTCq4hhPRXLgmxGlk3MoAihakw6GcR8Vycz3644=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eu+VSUkIfZ5aSEnwbcp0Y1lN6jeNKuuihmbdbKmL0V0KL6BDsKCSQqLFdxgjRB9We/4aStxIYUhZqLZNfhSsP4X/Fxym6uPbjGXnY3AxoDV1J5Am5xuUX0/FwP8XCvRn5n8EbOYJyrJZt8N18lfyXDAqJmmo7Sw3vFoWhxw8AnE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=FN9T0fXL; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="FN9T0fXL" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54CHPGj8023765 for ; Tue, 13 May 2025 03:57:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gas3VfMriPFBCDRSn8xWRu/z+ynx4x/EVCs6vj6wClY=; b=FN9T0fXLKw4FUHrJ ivSqRDcgP+pYvUeoNPARGHZIQqlifZKF5c9ctAromcEFedN3eQTRkKw5eAqhLdq8 IB/Qv30O0OCjpL8C1vUX9Z4eebv1TZWBlD7P9rNaPKedkmJ3va79WU30WTzOtib+ Mr9Gw+NCDBS9rwYUwZ35lxgyPBCSb+7xx8P0ogGjBkSSJs1owZC7KxEAPHiq7ozt KPsrrmgrgJOEGNO2yu9VOWkzKsz9AWkvWttRofcG3msq7l5FGwlZh1UJP+BIK+BW NPSNczwqVv8nfOTUoqD2rYgsQI35qcTFJxyAcTLYHfXodUkjyMw+Bg1h90StVUbc MmFYJQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46kdsp2j94-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 13 May 2025 03:57:08 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-22e6c82716dso39172235ad.0 for ; Mon, 12 May 2025 20:57:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747108627; x=1747713427; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gas3VfMriPFBCDRSn8xWRu/z+ynx4x/EVCs6vj6wClY=; b=l8+q+L3+mmyvIL+kY1H9dpStTZKhGLP1SLtEFcIbnG1CK8weA1JL2cYt/ZXIl05WCo YpdXCs97z4ciP0X54oAsB+rvMPWYcYMFovYjDyMYFYbxIa5+ywNp2luWL9MgnOGi963S HJQ3SRjkSLvHITEg4r7tWoXtobhW7IoS6semBQ5qGbQuElj/ldQwqw7b1MtoHBZx6IYC zuXV2tIAtizw6QZ5SL6wgOtJI0HJt4JBBSJGOkp/nS++GBmbbrcNBL9SsCkHlsrntV+n M+oQoKsgqMMCiUQQOA7OSZR8/xDOzssoMgffUruJmw7bZjhnvXwMb7y693OlIIKfL5fk Q3mg== X-Gm-Message-State: AOJu0Yz2mhnfYCbjbTUutdZRzXtYv8uldw0lZgeoYlTWwDq8s87sNlUF DkREXzwvvs7NVTfORxOX6xoHUiO4x8HO1rT4dmm341wN+gKMjmUc7ewuST9rP3InG2xlB6maRTu sKMpwqXNS3e2I24Db1kiuIFjQJXQDjZUUkoOviG1Qcs1ZsdKSuDOaw2cHV+RDpSB22Q== X-Gm-Gg: ASbGncvmEGco9GPejSVro2+hjfGc7HBk03NVyaBtJIks658Phi+gaeSWh/FuxC+9V1c 5UeReFeZLlOFzaeykTCVxa/sxIrmu0IIy6dTJo+RjiDhJKq2c41i82sAeNl2FmKGWOuS1o22k8a zD/KmJaTWcV71ctvPZ3BIXZAynwnQyVhZljYw3AXAXSlp3b/7Lw1FyA7YNBvgzxGyfoBhSNgQM+ c6IUF8o2NoGebCvf+duzOa4GK4Z/ExjE7V9AYYcAr2KU424qvjbB1OEniRNMEIDXRx+GXKWS6ua uzGL4eKVRiMTxKLcq+J3aebqyk04P0DiZvmKNrY66jJAZughVPg4Du8aXFcn5qQmw12mJsTFlhB ppgifwv7wQS3+hxbyouzYxKW9Kq7H9cbKqXaW X-Received: by 2002:a17:903:230e:b0:22e:5406:4f62 with SMTP id d9443c01a7336-2317cb62f61mr25969495ad.24.1747108626760; Mon, 12 May 2025 20:57:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IET+2QgCIvchjWzWfnbIUJNGg9YbjqrllZx4sUGIyUvjL6xQ+0ysYQGnvprJUzEJI7ZZsTbxA== X-Received: by 2002:a17:903:230e:b0:22e:5406:4f62 with SMTP id d9443c01a7336-2317cb62f61mr25969235ad.24.1747108626355; Mon, 12 May 2025 20:57:06 -0700 (PDT) Received: from hu-adisi-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22fc8271d98sm70236515ad.154.2025.05.12.20.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 20:57:05 -0700 (PDT) From: Aditya Kumar Singh Date: Tue, 13 May 2025 09:26:51 +0530 Subject: [PATCH wireless-next 1/2] wifi: mac80211: validate SCAN_FLAG_AP in scan request during MLO Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250513-bug_fix_mlo_scan-v1-1-94235bb42fbe@oss.qualcomm.com> References: <20250513-bug_fix_mlo_scan-v1-0-94235bb42fbe@oss.qualcomm.com> In-Reply-To: <20250513-bug_fix_mlo_scan-v1-0-94235bb42fbe@oss.qualcomm.com> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Aditya Kumar Singh X-Mailer: b4 0.14.2 X-Proofpoint-GUID: QUrc1Otg8GquuS8mDQnPP--yR6B7V-rv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTEzMDAzNCBTYWx0ZWRfX+EmWbwnFL93P 7F7sIrbumUpEb7XARMxomkIaNTlu9Jo7gqqYiBycl0D9RY1l8l0gmXE176RM4GLyTA0C/EX9D1N V+k13sPB5ZCTvMoko+klDG6TTyEUkJTMgtkTJcAC6Od/IKW3jsEkxrOzEoKrJWSRWmkgdtoMFnf HwIDcpp5VuokEDzrsNfqcm1rYNQT2M6nrR4QCzL+TiZzGZA714NKeq/uKDbv+pANmYf8+7MrTed Fm1TOm9/t1jVSiklfyR7P+raLd6SKRRmV1fgkl87H10r3yIhgl7H4nXpHVqw80/WmaLFQ1EFl34 XUdl1LaiyylMzGMXhQM4PYXhkPOqoyvbiI5x3U5BTVKtbXihKItFkYh8Sk/N/w3jWAgfzXUTaLs lp5MjSl2tfErPXy0eVaG3JspfdvQB5zHptS73yJvk6N7GjtRVCP4SxeHjKhKsMxSorl+Fqm+ X-Authority-Analysis: v=2.4 cv=TrfmhCXh c=1 sm=1 tr=0 ts=6822c314 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=dt9VzEwgFbYA:10 a=EUspDBNiAAAA:8 a=DDi9Blm5zKVmG00JEVUA:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-ORIG-GUID: QUrc1Otg8GquuS8mDQnPP--yR6B7V-rv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-12_07,2025-05-09_01,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 spamscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 impostorscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505130034 When an AP interface is already beaconing, a subsequent scan is not allowed unless the user space explicitly sets the flag NL80211_SCAN_FLAG_AP in the scan request. If this flag is not set, the scan request will be returned with the error code -EOPNOTSUPP. However, this restriction currently applies only to non-ML interfaces. For ML interfaces, scans are allowed without this flag being explicitly set by the user space which is wrong. This is because the beaconing check currently uses only the deflink, which does not get set during MLO. Hence to fix this, during MLO, use the existing helper ieee80211_num_beaconing_links() to know if any of the link is beaconing. Signed-off-by: Aditya Kumar Singh --- net/mac80211/cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 2cd8731d8275b2f67c1b1305ec0bafc368a4498a..9da2c9398c855b9c6f40a234469f21dd361e486b 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -2924,7 +2924,8 @@ static int ieee80211_scan(struct wiphy *wiphy, * the frames sent while scanning on other channel will be * lost) */ - if (sdata->deflink.u.ap.beacon && + if ((sdata->deflink.u.ap.beacon || + ieee80211_num_beaconing_links(sdata)) && (!(wiphy->features & NL80211_FEATURE_AP_SCAN) || !(req->flags & NL80211_SCAN_FLAG_AP))) return -EOPNOTSUPP; From patchwork Tue May 13 03:56:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Kumar Singh X-Patchwork-Id: 889857 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B488F1E3762 for ; Tue, 13 May 2025 03:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747108633; cv=none; b=UiNoA800yPT80aWTLyHLzfRsOAhCtYxVh+x9StZiTfYEprF49VQjfvjur76DD6EedG4SdLnVdth5mquMMK7JcTHPyhD0QVLM3jJjGuwT+1QEKMSFHCtxSaKBhgr0JOtXLgmymNM0krHWx0mzNXyCkFStlc751XeCLZ0nLIvGmMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747108633; c=relaxed/simple; bh=2aCYsID7h6PKzoWsDWjEbsYtZRpxTQpf8z0Sn6LvenY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KcHy7DzL3v3Pox15sijcr2gLEwSTsVn7rHgMPws25O+horb/FMFGH+pXELWLC9FSZx4TT+FuQOgoCDzbKzEJPH5ny2ZPOfb9h7pbmLfd8aSaG4n0K7oFKRqJ6MMPIvhrwg+tJ1WAQZ3vkS1lloI9opb7LZ0bqz3lSy0AYMUZFhY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=J3gWvTkj; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="J3gWvTkj" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54CIW1K7007509 for ; Tue, 13 May 2025 03:57:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5DlwmdNmedCKJPdbWIvXijFc/3cbsfXTmrrSp5SO3l0=; b=J3gWvTkjeC41C3g3 vXGl5y6f2QrIORcM4lazgkzTALowgwk+7+DZs1SjUk/ezjZcEt85ZXgDGbJdGTGl rT/SDCXKEy+tpljW6ErsUvy0L0dSKayIDCHqtKgwnllvBq9L34LSKtsBY4OaTmmz CUhT2GOyBNoeZtfO/B7yrt1Me/talScAM7WvyzQayw8S78bB3SWVC0/9Joe5lbC2 LrCa8B4pzlJyQAgBjxX4+tjlJC35WkAD2cbux72KYmrt2feTW655Q+OBrhYUjw1c GSOgE1GBnLqiGNSZf+cY5HHTMnWzX/saNmD5fP1EBr6fM/aJbd/58fiTWNLfdzVQ sV+0Cg== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46hv5qemnt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 13 May 2025 03:57:10 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-b2002bcaa55so2934128a12.1 for ; Mon, 12 May 2025 20:57:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747108629; x=1747713429; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5DlwmdNmedCKJPdbWIvXijFc/3cbsfXTmrrSp5SO3l0=; b=XAAMngkbdb5eyF9El9UrrcGZ8r8T4zetTmjBTU7kccY2nctNiKCuUPhbw1jFUNOqXP +bZ+lN6RAXKZhqmqlQtu8o752PteZuiHwxSAhTF4Tg5F/8ddbNaNCwK2aurpJRgPEzyU Ah0ahGVJRBaTv+OSILkIqbtrORYgnVZ4K8hj+G9t+YQ+3LHCMo4WxdQC4knPXOwX91ry on6DauCrmEunghCZlyVFAtyassUbFRoQzrkUEmNYPFX/B/mlHs57CSF6DsJX0PnVRxMK bpoqKFEnkWBs/9O8doi7SNqNqI71YprIGV5RIsRQCutp3gcgWSvw9RrfFuPwD9Vz2NzW tS3w== X-Gm-Message-State: AOJu0YxepCk732ZB02E9vKXbTbVHIv//PThOqykpbwTQVtC3HSFyYrpj g0cmP2ZDsKqURSm0kJrkFL/dmW+DuI2AJUr/BtwX6UXvbb26mCDcljc0WVL4GPyJl2RMU7lVo01 kZlNrKVMFKtYVVGXV8kip1EfuY+nqJCS83mp3aYyeqvmyG0f9Geba5c0wNjSfnQAIxA== X-Gm-Gg: ASbGncsceL9jnQCkfI2SiUt1mbfiTPjyN3GoT1Cby4llmThjvJP3FrmUwn48t8USpIV xIgfebXKkmizVjTGQRENwNrHGpFpdSC395/7aODJqqD97JBdsKSqZ3k7EjE3MfTa3NYicqbzLnd 3v7uoCW8+sLf9A174WhTWNzO5TEvpkrTzCcmonNooo08aJLjn8qyCM2KwYbQOWSprCJyhd4PgfO z7VUscJCO+V2ERtTjWYbJBfGfDri+CX0kmm+UhyI/6wfRsqBuCR3C8LUxgyypadvHzDHKym9n0O aKxhd0YhHMSWH/vruhFm5VwAu/TWaKoQoaZfa7y//Hg7EFom1tOxLK/yV3N23lSUDb/4eURCwSu WdpHI/W6BFW+D850T+GfqcL0ap8x32WI//P6D X-Received: by 2002:a17:903:2f8e:b0:22f:b69f:e7fc with SMTP id d9443c01a7336-22fc91aed27mr231332145ad.49.1747108629165; Mon, 12 May 2025 20:57:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYx9rPWYpCahLURbksqyMGB16+552UoK0wJFPuqnnX9kUYEP1Xof27IXrnXei37iJfIHAIuA== X-Received: by 2002:a17:903:2f8e:b0:22f:b69f:e7fc with SMTP id d9443c01a7336-22fc91aed27mr231331955ad.49.1747108628790; Mon, 12 May 2025 20:57:08 -0700 (PDT) Received: from hu-adisi-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22fc8271d98sm70236515ad.154.2025.05.12.20.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 20:57:08 -0700 (PDT) From: Aditya Kumar Singh Date: Tue, 13 May 2025 09:26:52 +0530 Subject: [PATCH wireless-next 2/2] wifi: mac80211: accept probe response on link address as well Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250513-bug_fix_mlo_scan-v1-2-94235bb42fbe@oss.qualcomm.com> References: <20250513-bug_fix_mlo_scan-v1-0-94235bb42fbe@oss.qualcomm.com> In-Reply-To: <20250513-bug_fix_mlo_scan-v1-0-94235bb42fbe@oss.qualcomm.com> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Aditya Kumar Singh X-Mailer: b4 0.14.2 X-Authority-Analysis: v=2.4 cv=DqtW+H/+ c=1 sm=1 tr=0 ts=6822c316 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=dt9VzEwgFbYA:10 a=EUspDBNiAAAA:8 a=kffUEhMhicqf5g7Do04A:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-ORIG-GUID: mdRkaSNCaUZzX3upgp6Pl6Ehn28ys76L X-Proofpoint-GUID: mdRkaSNCaUZzX3upgp6Pl6Ehn28ys76L X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTEzMDAzNCBTYWx0ZWRfX5/BJDR6LrAbL 6sneVMsm3O5KLSiao6GJZdF+EYXlg/42QKk6Bwwe50jqLSQSJEMZV9F8E7WTJ8CSYPIKizPVTM9 vxWwzZ3GG8foBLQgc/08GokbxaULUIcZPp7RV45cKJ8ZOnU8A2g+Vz9fOHcpkU63Ik9/fPqHghe s0LJo+uwJ5qeEEAwUPqNaOTH2CFuuh4uATlYrHVEyAjE0zT8+02mqvgradkqfNFY/B0gVc2LDWO My2S+jWwg0tT+RhRz6LlcGRvvpdlCDKDyk5Sc+vtCUF44LWj/xUGhk3YzZP+Sir7IKiVjoVQb+l 0uX6gFpqr2E3rqZwsHYsLcaRRxME/eVsBHM22CnKxhf3B05rOA+p9K7VBA7UyUjJjsmhJwIHQJm kampiunycEJLukq6rwEFQG0lN9AOnVqZwxtgfG5l5xPEaZEDQ0CMDJSqZOJEqPGIRlZSTvU0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-12_07,2025-05-09_01,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 phishscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 suspectscore=0 priorityscore=1501 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505130034 If a random MAC address is not requested during scan request, unicast probe response frames are only accepted if the destination address matches the interface address. This works fine for non-ML interfaces. However, with MLO, the same interface can have multiple links, and a scan on a link would be requested with the link address. In such cases, the probe response frame gets dropped which is incorrect. Therefore, add logic to check if any of the link addresses match the destination address if the interface address does not match. Signed-off-by: Aditya Kumar Singh --- net/mac80211/scan.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index cb707907188585d6874bf290874bdb0ca33bb399..7b8da40a912d020f229a74c67bd5a57fb513a72d 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -240,6 +240,9 @@ static bool ieee80211_scan_accept_presp(struct ieee80211_sub_if_data *sdata, struct ieee80211_channel *channel, u32 scan_flags, const u8 *da) { + struct ieee80211_link_data *link_sdata; + u8 link_id; + if (!sdata) return false; @@ -251,7 +254,20 @@ static bool ieee80211_scan_accept_presp(struct ieee80211_sub_if_data *sdata, if (scan_flags & NL80211_SCAN_FLAG_RANDOM_ADDR) return true; - return ether_addr_equal(da, sdata->vif.addr); + + if (ether_addr_equal(da, sdata->vif.addr)) + return true; + + for (link_id = 0; link_id < IEEE80211_MLD_MAX_NUM_LINKS; link_id++) { + link_sdata = rcu_dereference(sdata->link[link_id]); + if (!link_sdata) + continue; + + if (ether_addr_equal(da, link_sdata->conf->addr)) + return true; + } + + return false; } void ieee80211_scan_rx(struct ieee80211_local *local, struct sk_buff *skb)