From nobody Tue Oct 7 14:59:39 2025 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 DC8E11A3165 for ; Wed, 9 Jul 2025 02:35:38 +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=1752028541; cv=none; b=YFbNWVSzjy6KxEPxBsxCruc6MOBO3ndXY5CWSFXi7ht3tGu1aFAsW5/pNvt8/5NqtNayaJqAvyKwzjWXcz+MMYhWNRz5tUe5xxJcY/SUtOmMCbo8qp6nq5jyR/cF7e3rvGs8fT2ZV3n02ffLjm2H45eLzhBMbZ38BHLVzObWLRY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752028541; c=relaxed/simple; bh=tSN6YxxeeIwfNVtJUqNjYCzWvla7VBhlmPBH/aqTAKI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VrYBMa3JXO9K6HAZukR2/MvQfSwRLldIrjcTvnTXXIUlJFisAxis8rI6cMwDJMGBiuUCBtihHYsXhf7MyYVGUY5EmDd4HaUUn7OaGI6P5wPWcboLxGqH3EIuSlRo6XtEs7R7161V3eV6/81cszFBYct2IP0dBLH6W2bTu9/RruY= 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=kf1+kyAj; 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="kf1+kyAj" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 568JvZ3k008293 for ; Wed, 9 Jul 2025 02:35:32 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= LrC/7rgM5KIH+dR455FE6P08mwk11Z/ujo/JN/gT4BE=; b=kf1+kyAjDxkNDOMU kg6a4SruPw77esycZRlUOLQ6nP1pruOR+PuC2LNkv4DwlqACWt/2JAxNkBlFHYm7 CfdlH9th4Ww+tXHvxXCA6IQnmTxTJV0t+/cuIMO48OJGt126h2uDzOlYhxwk5KH7 qZL0ACh/ARBmHXoKoV1JzDsmmwE6eMJNZLm6L3F4VqaEj1XPglwkirbwZ3Oq7mua i33l518yhbgjm+n4FDY+BAO2d1mwGKs+rU1ZRNkGOilsC3yKkoY8MABvH7nnPFhQ jp4KxSto5Zp5FbYNVX9PZGKwgqKr5SnZG3ZK1R54RclvU0YBugTYns5ti+DOrieN VnEtlA== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47pucn2umy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 09 Jul 2025 02:35:31 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-b38ffb62492so4785219a12.0 for ; Tue, 08 Jul 2025 19:35:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752028531; x=1752633331; 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=LrC/7rgM5KIH+dR455FE6P08mwk11Z/ujo/JN/gT4BE=; b=Kp7VhTyMdzgGXQLGsbPbBAxtYRMjj6QFuOUIbERYRW7jg8K+B50Nz1b7axvfHGqy+c KeG56CAksHN14vIJbJUkF5o/fqCLOl4ZktNQSnML1q9Wbs2yc6PtkaWlYzsizbItA8dS bL0eb28uC0//JFUNqfvddBsANVLaknBZeOPk+SPwBZiUFzdrkPbb0MhvP4LeHU3fw3Ca +U0XhJ4KM/Y3S6kPWIC7JHparjFOiw0Wof05n9FevqqvYFwckmUjOkO7blFgf42cAMQz eQQ0dQGRq9WuHn4p6LUDYZLVv/F/ZJGXaf1cetqklahSHtf7S6JICkIquwAW290aStct eSPg== X-Forwarded-Encrypted: i=1; AJvYcCWwIfPeCvtSitZwtbsv13iClGTJqY8VwDY7knvDNl/xpVaSt8AqcUlIoCx5MTCM7GuFW3JkCKpNTGgn9Fw=@vger.kernel.org X-Gm-Message-State: AOJu0YzykBa5P7NFrsx9DHzQEKUJS0p8S6MgdMPDVr7rxBOMmX1lbj1K GF8ookWFHO5D8ftAiVL70hwiTwmkWU/8gd5zOXJ+ewSGgvCcLonBEk7PYGDojTEpbfN5jN5pZ3b MX5CL9jgPRBwAVClwPi4fvLF/fk6Ut23l4floGQCksOHXgq/99btGXnZR1aPpAes5HLw= X-Gm-Gg: ASbGncsjNFSF4HYnUtMR6P4DYdHxsiElkq7yuAGq0NL+ZtMkulu1Efdkdr7TX0KT5oS ehw1a9lEt7oFBPL3SoNcr7YEwuTco7y7IsTizJNuKDW+fTHNgV+Ex7iPyD0aM7G0s6vwpzCEI5/ vDBAxym1Rvqi5rkaFXDBw9t0aVfS6IgBBPfDLSZhp+CccmfLl27fa5zS58v01tBD826bIeH7bxD 6TS7NdDWGlt4cJRsXIsSs3fLA89rhLzi7PV6SGhiv26WEX66WR2eRAdRwKx5ot6kpuGN8b+44rA bUkrbG1e2u33vvaLBVJzhAVPrl9akKSvJBxpEWLHiqoedtmvY7fcI0CHf0HirSDXZomOcapg1a3 WG2DfMBR31OnR47rJmMoZBx06uFNbsO2gfoVwrCZrRmOCb5g= X-Received: by 2002:a17:902:db0c:b0:235:caa8:1a72 with SMTP id d9443c01a7336-23ddb2f2c2dmr11512895ad.30.1752028530649; Tue, 08 Jul 2025 19:35:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAiXM0+YO7Lp5Y+AfPt1p2QIqNQp+OFLPNYizvEHO6VeMDTvLi20N2reU0NN2eXsOgIKyofg== X-Received: by 2002:a17:902:db0c:b0:235:caa8:1a72 with SMTP id d9443c01a7336-23ddb2f2c2dmr11512635ad.30.1752028530234; Tue, 08 Jul 2025 19:35:30 -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-23c8431ef2bsm133169315ad.33.2025.07.08.19.35.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jul 2025 19:35:29 -0700 (PDT) From: Aditya Kumar Singh Date: Wed, 09 Jul 2025 08:05:18 +0530 Subject: [PATCH wireless-next 1/2] wifi: cfg80211: parse attribute to update unsolicited probe response template Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250709-update_unsol_bcast_probe_resp-v1-1-d3323ce9a7b5@oss.qualcomm.com> References: <20250709-update_unsol_bcast_probe_resp-v1-0-d3323ce9a7b5@oss.qualcomm.com> In-Reply-To: <20250709-update_unsol_bcast_probe_resp-v1-0-d3323ce9a7b5@oss.qualcomm.com> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Yuvarani V , Aditya Kumar Singh X-Mailer: b4 0.14.2 X-Authority-Analysis: v=2.4 cv=GdQXnRXL c=1 sm=1 tr=0 ts=686dd573 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=E4CoA09qZ1gvW9aZS_EA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: rVZI21KQTnHoOcpdwi8mBnoee5zZpPms X-Proofpoint-ORIG-GUID: rVZI21KQTnHoOcpdwi8mBnoee5zZpPms X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA5MDAyMyBTYWx0ZWRfX7EwQ3iJFUkKL VM3lC3Yshb2zqnRQm+gp0H+U5CLhdsBo1t9iLBNa3rZ+7D9TmG8Lj/TZsXBfhYBMwBnlEHxmD/3 vFbvr3orBTvAOEfr7M2yOZxJP8u5SLT2Jl3sSRX8CyadbEyeulw2s7o9P+8g7F0BbuBJHYogWzY 1OJYPt0c6sMAY3zi6RbcmL0h8DlPJj/v6YZXEpxz2LbnubknKKaGfH5zYLltEsDW7bfbjLkzp4a EvCS7Nn9ETo8X0cd3/RgssTnY7/6sNxkZ8tVRdtS84uGltm2DD/AoYJg+3oxtbteD7icfoThdwx JuZNvU46v6/fZJc2li8Ciu06qWYe0m1sP1p0JdE3YI5EUx4n4moxJNVgbEybKuE9dfyNK1qPfWH VMOuDjgFS0cC5QprYeOyEmKp5Z54mQNUN6mbB46FOUqDMTa+g/uZdaSkxIyFC7uI0auntYb4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-09_01,2025-07-08_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1015 spamscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 malwarescore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507090023 From: Yuvarani V At present, the updated unsolicited broadcast probe response template is not processed during userspace commands such as channel switch or color change. This leads to an issue where older incorrect unsolicited probe response is still used during these events. Add support to parse the netlink attribute and store it so that mac80211/drivers can use it to set the BSS_CHANGED_UNSOL_BCAST_PROBE_RESP flag in order to send the updated unsolicited broadcast probe response templates during these events. Signed-off-by: Yuvarani V Signed-off-by: Aditya Kumar Singh --- include/net/cfg80211.h | 4 ++++ net/wireless/nl80211.c | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 4a092da3a9de80df62e9c0e8792377a7bf65c739..0b903b4aaf877465c163fbf7ce9= 552ec9a430129 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -1526,6 +1526,7 @@ struct cfg80211_ap_update { * @n_counter_offsets_beacon: number of csa counters the beacon (tail) * @n_counter_offsets_presp: number of csa counters in the probe response * @beacon_after: beacon data to be used on the new channel + * @unsol_bcast_probe_resp: Unsolicited broadcast probe response parameters * @radar_required: whether radar detection is required on the new channel * @block_tx: whether transmissions should be blocked while changing * @count: number of beacons until switch @@ -1540,6 +1541,7 @@ struct cfg80211_csa_settings { unsigned int n_counter_offsets_beacon; unsigned int n_counter_offsets_presp; struct cfg80211_beacon_data beacon_after; + struct cfg80211_unsol_bcast_probe_resp unsol_bcast_probe_resp; bool radar_required; bool block_tx; u8 count; @@ -1555,6 +1557,7 @@ struct cfg80211_csa_settings { * @counter_offset_beacon: offsets of the counters within the beacon (tail) * @counter_offset_presp: offsets of the counters within the probe response * @beacon_next: beacon data to be used after the color change + * @unsol_bcast_probe_resp: Unsolicited broadcast probe response parameters * @count: number of beacons until the color change * @color: the color used after the change * @link_id: defines the link on which color change is expected during MLO. @@ -1565,6 +1568,7 @@ struct cfg80211_color_change_settings { u16 counter_offset_beacon; u16 counter_offset_presp; struct cfg80211_beacon_data beacon_next; + struct cfg80211_unsol_bcast_probe_resp unsol_bcast_probe_resp; u8 count; u8 color; u8 link_id; diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 70ca74a75f228d27057d0fdf4b13bd2fba3f2536..6cb3c173343301835176206976e= c2ff798ff1105 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -10988,6 +10988,15 @@ static int nl80211_channel_switch(struct sk_buff *= skb, struct genl_info *info) if (info->attrs[NL80211_ATTR_CH_SWITCH_BLOCK_TX]) params.block_tx =3D true; =20 + if (wdev->iftype =3D=3D NL80211_IFTYPE_AP && + info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP]) { + err =3D nl80211_parse_unsol_bcast_probe_resp( + rdev, info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP], + ¶ms.unsol_bcast_probe_resp); + if (err) + goto free; + } + params.link_id =3D link_id; err =3D rdev_channel_switch(rdev, dev, ¶ms); =20 @@ -16790,6 +16799,14 @@ static int nl80211_color_change(struct sk_buff *sk= b, struct genl_info *info) params.counter_offset_presp =3D offset; } =20 + if (info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP]) { + err =3D nl80211_parse_unsol_bcast_probe_resp( + rdev, info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP], + ¶ms.unsol_bcast_probe_resp); + if (err) + goto out; + } + params.link_id =3D nl80211_link_id(info->attrs); err =3D rdev_color_change(rdev, dev, ¶ms); =20 --=20 2.34.1 From nobody Tue Oct 7 14:59:39 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 542171D54F7 for ; Wed, 9 Jul 2025 02:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752028541; cv=none; b=kOJRCM+Io5CY8csh02EWwWx/tXJPSnbIuQKLMFcruuu2eIvzExgH6JEC9ol6NUHyjhb+gs0Suh/ipU8Uk3lGBYhgwfrkKGca7QNSwbLrpp+LntgmZvbaGHvJ3TqkubSUCUgujak7pL91Bly9zSEaPbuV8OT0Tdhnd8dxmXYs7E0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752028541; c=relaxed/simple; bh=TdkwTNIzAwUJoAPXjj02yqITZherri+LDBhfwYcnBn4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H7ePgEnHikVGlkfuNUrPWo1r/NL/gBfWysRqHZ2qEjs1vUrECAsCjg7YdqC5tzkmS6tq6PWhHWgeWexwmeES87fucK50dv2tsl37s6LAO0Ea3WYyZ82mKpO/aAHgrCDLnu3a+LBU47+RjL0rquvOlYvkXBbo7VpVwlNk/c2V/mQ= 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=NKy61/ff; arc=none smtp.client-ip=205.220.168.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="NKy61/ff" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 568Id4aQ025450 for ; Wed, 9 Jul 2025 02:35:34 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= c/HxZsbEcLj6/NqQ7QRrp90LaiZ00WBbmS7LhVxRCbo=; b=NKy61/ffodXz8EMY vqgJm0nwXS44TdphYdA2zc+x12LwpfbBn3UsMVnMESocqYjb6QuwPLHIR5LCJ35J YYZTbPlHkTc6HeMKsj6g67Bw2NiJx131Ene7UOIHPLdv8fAHMcAe9kf0FxrHGz7y UWAIL8NSylflfZ0JXf+7uJ76Xom9A/YdMsoYAxyKJ81VJQZ1scyO1i1Ot4L+o2VQ glCvW57m7T2wRXaZrxm3AxY/iaR1XCo6X0vaJpECMWlztMYhf7tb116K50PCVGAt BW5MYPlHWSdE9rKPINmsUU3EBfEGhNblQ0ACPUbKi4YNngFe503Cru6wMbP2TXVI CSgzUQ== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47pu0wj7js-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 09 Jul 2025 02:35:33 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-313f8835f29so8074689a91.3 for ; Tue, 08 Jul 2025 19:35:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752028533; x=1752633333; 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=c/HxZsbEcLj6/NqQ7QRrp90LaiZ00WBbmS7LhVxRCbo=; b=M4SmRauCNeTekMY3GrqDweVSBYfTnpESbmDsTwepGUX4Qr1+dExjzrwGC1/A0deZUU 02da79qhx74xudJgFDAjGfh9arLk6XoccPxUDKPQ/oyH/Ik3gQo6RgZG6DZscqr4ek8u /A4dbdUWn4hdVcbwnrC5WvyZdxwrHyUEKFVjmUfMPTBiopyehVxX1bb9lux7G679pp8I dRQImyzEcJgOI8la5mKJZDrShynRxnNjX12IlI3IM38M2KZ0bF63t3M2vNWuoRaGWbHy K6EwgTzklT1SwFgpV2npmKDLDPsLfgsbPaKsFnb9JKkMIR9iYqWt5+dJzcsq1mz82MrN hnJQ== X-Forwarded-Encrypted: i=1; AJvYcCVDPTGR0J8cel9SGtdyCctrObog9nFXDXZ4FRTLhGgtdDPjRH9aHNd0MPCnJDfWh2wMZ0EvX3X1R4iWvjg=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3A/V6j/ojIdyCo2N3PGHQkEsysHpIrRKuuFd6io1xi94rZ/Pu LonyjC5Hch1N9Y6yzevyAr0+SwIAxoc9hrBZV/DjhPLjtmaa6sxc67okRK6QvYCxNd6Xqx4MSZC XBwMJUal8fXGP95NFPEMgKMDnyk41s3uSfpAmmQBEfowrxBJHwNHv09pHRySimHCJaYU= X-Gm-Gg: ASbGncsptJp7M6JBFZlXPITha6soRAR3gIOmA7XOl/9j2mSiD427dfTiH72iJhhEE7P HFRbwIBo7YONfh3Wgcmg9ub/MEIwHiYX0TPM594QjHvVxjR/8brLdfHAere6M+VznJFNytwZdNb xvinKlxwVnWw+20tEW/boNcjb7kyknBLVes4dnHOurWaLvz+lSKCQB9ao6cY6s+r/TZjR9MP7NF eduLSWByInQrrJ9dk6aXrCRt1w5B7f4IpwzIca/jNvcZ/AlBM9mw6FJP3hPmd164JOJTur+EA4u wULf8Lmgzc76rDmUOMtGp4HPr74UG/2LlYg+OYFeAw3uZHlD3HV9m7Unjn2T4TicDbL+LhlJL8U iz/wyCNSK7xgwQRj5YWcgULnRXq+DCBxTdu0wzQOEpTuHG9M= X-Received: by 2002:a17:90b:3ec3:b0:311:e5b2:356b with SMTP id 98e67ed59e1d1-31c2fce1e72mr1527310a91.11.1752028532740; Tue, 08 Jul 2025 19:35:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF099tninrRE01bhqR4B5YPR57K8M4RtHfAmPQGM2zE5xavw2PxyYuLVylNvUkSK44dy67aHg== X-Received: by 2002:a17:90b:3ec3:b0:311:e5b2:356b with SMTP id 98e67ed59e1d1-31c2fce1e72mr1527275a91.11.1752028532290; Tue, 08 Jul 2025 19:35:32 -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-23c8431ef2bsm133169315ad.33.2025.07.08.19.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jul 2025 19:35:32 -0700 (PDT) From: Aditya Kumar Singh Date: Wed, 09 Jul 2025 08:05:19 +0530 Subject: [PATCH wireless-next 2/2] wifi: mac80211: parse unsolicited broadcast probe response data Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250709-update_unsol_bcast_probe_resp-v1-2-d3323ce9a7b5@oss.qualcomm.com> References: <20250709-update_unsol_bcast_probe_resp-v1-0-d3323ce9a7b5@oss.qualcomm.com> In-Reply-To: <20250709-update_unsol_bcast_probe_resp-v1-0-d3323ce9a7b5@oss.qualcomm.com> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Yuvarani V , Aditya Kumar Singh X-Mailer: b4 0.14.2 X-Proofpoint-ORIG-GUID: tFs3nPe_21raGfYi-xav0Vmlz9jZbH6W X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA5MDAyMyBTYWx0ZWRfX4eGbnI6spQqx xseOCChNTlLkZjnRRxjQh253wO3qr9QndAZkny9JLWxqxcOPHImnt4bIbCbUIFZA9nByP9eEAg8 MfBEl6vsl+L3dVZ5yhaVkwJ2zL5l9vMKDtU2nmayaFc6q5wB2k3WxkmsiHdtipPJiD2G9oJiy4F HgglQK6+nE8rFOXFUFuC+3SAMMlVfzpZDn7jHh2BMc0Sr9jRLBJTWQscEp0UBKw8JX02D3lQfoi qvhNisaL5EFlRsK9N8QxJkdNp2hW+8cUaUXOmeUHga8OAPvs8qAhGZHN5nxnHePsv/sxdoyB4AH kk1uh2fNbkGYESMpK80TR/DQjff3bgIS9S1JdEfdSbKIWfbSPQWiR2PPKNLJfIGCcY2mwqK3Dph J75pOS/EWARYnFNGbXTFXxYRPU8hDWS9Bw+Gvn2CIq47OVMY4wA3c4fhDvUq0ftTb3iknRCY X-Authority-Analysis: v=2.4 cv=Rd2QC0tv c=1 sm=1 tr=0 ts=686dd575 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=GDPEl8sVpxXbRvpnLXsA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: tFs3nPe_21raGfYi-xav0Vmlz9jZbH6W X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-09_01,2025-07-08_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 mlxscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 spamscore=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507090023 From: Yuvarani V During commands like channel switch and color change, the updated unsolicited broadcast probe response template may be provided. However, this data is not parsed or acted upon in mac80211. Add support to parse it and set the BSS changed flag BSS_CHANGED_UNSOL_BCAST_PROBE_RESP so that drivers could take further action. Signed-off-by: Yuvarani V Signed-off-by: Aditya Kumar Singh --- net/mac80211/cfg.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 56540c3701ed786c37f946f9c4af820c15b5922d..cdecda1bd07b31cb7d8bd76eed0= 74ecc2a828eb1 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -4173,6 +4173,12 @@ __ieee80211_channel_switch(struct wiphy *wiphy, stru= ct net_device *dev, goto out; } =20 + err =3D ieee80211_set_unsol_bcast_probe_resp(sdata, + ¶ms->unsol_bcast_probe_resp, + link_data, link_conf, &changed); + if (err) + goto out; + chanctx =3D container_of(conf, struct ieee80211_chanctx, conf); =20 ch_switch.timestamp =3D 0; @@ -5114,6 +5120,12 @@ ieee80211_color_change(struct wiphy *wiphy, struct n= et_device *dev, goto out; } =20 + err =3D ieee80211_set_unsol_bcast_probe_resp(sdata, + ¶ms->unsol_bcast_probe_resp, + link, link_conf, &changed); + if (err) + goto out; + err =3D ieee80211_set_color_change_beacon(link, params, &changed); if (err) goto out; --=20 2.34.1