Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2818712lqz; Wed, 3 Apr 2024 09:23:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWr7x6QI/kEpxNC7M+14dRF8coK53Uv69Rr72/OmmV03fhvuCdT1O+zSPMmR35xqhrsjHwbVuSdJ1myganftN7C88K9lLMgBpEillTfaQ== X-Google-Smtp-Source: AGHT+IEnli4DwMcZBsPgm7TAQQpMHZ3iEI4pzrNy12ey2PcZtNgY0X5df5BfVSB3Zz7q2LuEVnwQ X-Received: by 2002:a0c:fac1:0:b0:699:2c38:bc9b with SMTP id p1-20020a0cfac1000000b006992c38bc9bmr1328798qvo.50.1712161427352; Wed, 03 Apr 2024 09:23:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712161427; cv=pass; d=google.com; s=arc-20160816; b=YqVsDVM1IFpNQkrxWIfXjcyMnytRS9CvVZmn45w0q1z8cvpNGI1VrURm2xni0qc1rr ejdzpezbV2Uj+boWLSflY1TOsd9SQ1CImtfEB0VYtLKL1neU0uWQ5RLs2jaXiGoim2TX JybHZKuxAOZmAbvEQ3cGPNFqQu//Zq65me1vO4hiquzBlAiZWjsTfNiZshAJh/2NtwKR ogPo4kQNoLLeRyn2sLhjAt5ldF+pLu23Cjp/1m6Bjbc0eSKoIj89r8jH8R5oKOQ866oQ DEsFz4SfO5lXgnP2j7qrFIOGvWXUU7UL2n/jZ8X2oBr9Ha4wo9+Vd1Um6ydTih9a0P2g wcjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lgI+0B/FFy8UH6pkGOSVvTpmVj1c0sME7zN5qz2Kg6c=; fh=r7eJgXX5pgZ8EeStTjbkp49MlUBlB1qfTBadr4iyyI0=; b=uJvLkxpqz60VonJToE5dFLOJ8ljlQ2BEy+NG0err2utQ5fcVhDP43035Rpfo6vZ+HC Qcae6NtqAu4dhShIzDHZoIRTq4WziTmwrMJhC0JpcF60LgNkBd4JkC1ahI3qP6VD4m1d Phvq0QUJ032F7U0T/PK53hmRMIzWDrXb9OO5oaqs561QwDGr1ff0bo1TvGmh7kKuIThg wfDfhP1vX3frCksnuNJ4Yq+CD20ayEFi6jxxUXYH+nSFRBOKZfIkJMszVkygQ0BSPSbj paM5tJqEvljvWtCRziSsV3oUZnz/N2zsTAya1o+iXjFnXIag1DYvzTAqBg0XQsuk5Nnx /OWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lI4VHGPI; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b15-20020a056214114f00b00699012dd6desi8464505qvt.588.2024.04.03.09.23.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lI4VHGPI; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7FE351C22882 for ; Wed, 3 Apr 2024 16:23:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6F0014F9D2; Wed, 3 Apr 2024 16:23:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lI4VHGPI" X-Original-To: linux-wireless@vger.kernel.org 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 343EF14C5A5 for ; Wed, 3 Apr 2024 16:23:09 +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=1712161391; cv=none; b=AsjxGd2XHY2E1je/JyLU8lhCsMVfakvrG6EfLPS2u6MRBMviE0RlFMg1p2wIB+rmJQH9i6opJE+eZNqNKt8vZmTWzMLTGenNEHFeLVf2AM+eq4tkack58c3vZ9h5YMvXTqTR7WeoXv7P0LdtoXjhUFw42tss9dmErK4iEiHXOjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712161391; c=relaxed/simple; bh=qLj/ewjY5fbX9J2zurxPR1GVjjfzgFYpGTVS99c6mRw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BNon42zS8xYHvZmoJ9q0bPZ/QXg5bErJrXHiwTxc013Jl7mm6aiBuPYp8pT8Y4JaEAnhV/d4BNgTyzjpOPvysR4AhNKmDh2QnMr07kvdPsjAotB0Zm9+j6B5bBmXct57VRlkYh1L+68aQIX2H1CUuLOQOUqwid+lNLivX7vJT2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=lI4VHGPI; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 433AbnMY022474; Wed, 3 Apr 2024 16:23:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=lgI+0B/ FFy8UH6pkGOSVvTpmVj1c0sME7zN5qz2Kg6c=; b=lI4VHGPIB99QbkK9PFu7Mbs ILWjd4aqkaMI+OQC6H1tUGMGebqcEZlQJx41TbfYvlvo1FUTPgFbDRzgW53ncsHY FbmLOTvKHkzidpeziHz4sSCnR4A8arDvZ7AYm8CExGj5f2UvlCaVeTJ8oS/rdiVj 7qS8/zmFCKzNC0wLatokzRyjWWal8/M1WnjJ5ZMZTo5iY6iK1a3NTcfWasbuZRHH 7CeuqOXVS4jldYkojarT/huKpprF7gUrmhAieYQ2QYSoTWIL90l6T5m8ZYuMkeOv Sl5Extz4SYO7rXY6XPX1bRE8w+n2e+kRwtEzvRCa+/kWN6ijJh5pFDFeyZpojvQ= = Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x93pw969q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 Apr 2024 16:23:05 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 433GN4A2027445 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 3 Apr 2024 16:23:04 GMT Received: from hu-rrchinan-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 3 Apr 2024 09:23:02 -0700 From: Rathees Kumar R Chinannan To: CC: , Subject: [RFC v2 0/2] wifi: nl80211/mac80211 Handle BSS critical update Date: Wed, 3 Apr 2024 21:52:23 +0530 Message-ID: <20240403162225.3096228-1-quic_rrchinan@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 23c1QFNnY9-o9RxUt85Z4yP-8Vn9ZjZI X-Proofpoint-ORIG-GUID: 23c1QFNnY9-o9RxUt85Z4yP-8Vn9ZjZI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-03_16,2024-04-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 phishscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 malwarescore=0 bulkscore=0 impostorscore=0 mlxlogscore=734 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2404030112 When a critical update occurs to any of elements inside beacon frame, AP shall increment BSS Parameters Change Count(BPCC) subfield and set the Critical Update flag subfield of the Capability Information to notify client that the critical update occurred on AP. Refer section "35.3.10 BSS parameter critical update procedure" on IEEE P802.11be D4.0 for details. On beacon offload case, change in CU parameters should be sent to user space either before or along with probe or assoc request frame receive to ensure that user space uses latest CU values and BPCC while generating response to the received frames. So, add the critical update parameters as a new attribute to existing NL80211_CMD_FRAME command instead of sending this on a separate NL80211 event. Add an ieee80211_critical_update() API to send the parameters to cfg80211 and call it when event received from firmware to update critical parameters to user space. Driver (ath12k) changes that utilize this will be posted in the future versions. Based on the suggestion received on below link, add extended feature NL80211_EXT_FEATURE_CRITICAL_UPDATE_OFFLOAD flag if driver handles synchronization among all the links and update critical information on partner link beacon for AP MLD and user space can update critical information only on impacted link beacon template. Add this critical update attribute on NL80211_CMD_FRAME only when this flag is set by driver. Link: https://lore.kernel.org/all/df711a5978b84856a54953a32e4b05923b48870a.camel@sipsolutions.net/ Suggested-by: Johannes Berg Rathees Kumar R Chinannan (2): wifi: nl80211: Add attribute to send critical update parameters wifi: mac80211: Indicate ongoing critical update parameters include/net/cfg80211.h | 10 +++ include/net/mac80211.h | 13 ++++ include/uapi/linux/nl80211.h | 104 +++++++++++++++++++++++++++++ net/mac80211/cfg.c | 43 +++++++++++- net/mac80211/rx.c | 12 ++++ net/mac80211/tx.c | 9 +++ net/wireless/nl80211.c | 123 ++++++++++++++++++++++++++++++++++- 7 files changed, 312 insertions(+), 2 deletions(-) -- 2.34.1