From patchwork Tue Jul 2 12:45:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Youzwak, Jason A \(PERATON LABS\)" X-Patchwork-Id: 809310 Received: from mx0b-00317001.pphosted.com (mx0b-00317001.pphosted.com [148.163.142.166]) (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 0651915575B for ; Tue, 2 Jul 2024 12:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=148.163.142.166 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719924320; cv=fail; b=ax5xJIdnf3H86FuCHpnnZxu3qkR1T23JdAQphCfebxK0+LEp0KaYz7iv+jlKEevPabbiiA+a3ljT+dzyljjIS+D0B/Dk3WqwprCa6n1XXL06fvrAcUhMGbes2wZos9xrKeaW0zuulgSESD5Akb3rg17SDLmwNu/s1LyI/abjngk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719924320; c=relaxed/simple; bh=iltPyotwh2SGl1uqDqaD2EaWSqT8hqZ7+ugV5wcgfMg=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=s8HJoawf75sd+kraa7BIYTLNUdRRrG/L9DcBRZQP7iXkRURDufb6gQtG3JQ5YGRXozefkblAcksQom6QVz3ICg4qbWlc98T9xcC/tjjRzflqttQ5JAQbCroCrvznRBhGvI6mzn8N50Pguk0EgSLbhEGlpX+6jav9ZJGlcYbJ4OQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=peratonlabs.com; spf=pass smtp.mailfrom=peratonlabs.com; dkim=pass (2048-bit key) header.d=peratonlabs.com header.i=@peratonlabs.com header.b=qqsyeNZl; arc=fail smtp.client-ip=148.163.142.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=peratonlabs.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=peratonlabs.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=peratonlabs.com header.i=@peratonlabs.com header.b="qqsyeNZl" Received: from pps.filterd (m0149018.ppops.net [127.0.0.1]) by mx0b-00317001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4628ToWD022764 for ; Tue, 2 Jul 2024 08:45:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peratonlabs.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=POD01092023PLABS; bh=cpPWgD5xbQHQkPU EUhnFSPqaX4Kl7+aW3vIiRfml6bo=; b=qqsyeNZlvMQDkDbeSubh660c4Umjphc QaxhOlrTx1MMG9ovAdiNnvBKg3BULnKv9iIfOwW5alqL5P7IE7T4sb6aEcHTfBA7 O0pHhwWjU8U4fLyPUSdM0F16hc6bapfq+lW4tdseOKYJYLgtYs9GkU5K7CKKDWa1 F/gnjj7ZpVndguDNwy3SzdPpNI9kA1ZyOVW0N1YPrYGmSXbY1lsSTjCj3Rbt28PS wi89dCazktJV9OhdarOLnxr94Mi8Xp6XaCsszo1EUbAHGQEDVUmlrzkhY+tPnxVY oIIJ0XsxJWnr698bGhhRwDP41+L00PVYRtfo0xgv4V3iSLiSjFxZhVA== Received: from usg02-cy1-obe.outbound.protection.office365.us (mail-cy1usg02lp0181.outbound.protection.office365.us [23.103.199.181]) by mx0b-00317001.pphosted.com (PPS) with ESMTPS id 402bax4bkf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 02 Jul 2024 08:45:15 -0400 (EDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=0pqQ6A2jt/rRTCsoWJYGSR7SbRXsDLsqmmz1SuhkLN93zhUR3lS66TBiTZ1OfV8Wy5EdnXQvxIznJdk6r69T6v7XJNmjL1dKkFqCQaxD/CEsUpN1gxrg/IKTzvFDL4Uql75xmWYTxmaiecLvgeho/9AydQgKSFAffmBP1xalRXlV04Z2okKCt+N17KsyzGHNdZcWxu0o7OBSGO+gpnaQtpYy/8k1xIdwqt466RH8JR3fEi6qz+Dd6dZ2uPBSlrfycdNzWhQapsBkkAM2NIANOfHt313mVlpNRXsqfAU3xS++3tkc0F1DGs0KnUV8IH5+GDkJwHg2M7W/LN4KIHfg6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cpPWgD5xbQHQkPUEUhnFSPqaX4Kl7+aW3vIiRfml6bo=; b=hwDJdMEd6DLGjwCQGoKYxP587OEqNsz9ObyeD58jM/COarbcUnMp1EJ3qKllDLFZwGruv9KhLR/dZz8JGxeH3/LuNkaJXspgh7ZaIrwBLomo1+nzzwjIS6/6XNeJi8h52EeMLachYSFCT9B2szHRdtkq2xPh7k7KQFrpPdo9V0BodO5ak4EBpwJTDJRC/pSCOCSVQCcvnY8Lb/q3As3nrYrWzpXCQta2elLgjOdrsrngMB5ex96m7ceB2q909jh03hSHGeyRPc4uL0WcTOL+xJT5CX+H3R4D3DhsRkbvHV/Sz+TuyUO4v11BiOqq5qgit2mQHgnguKPF6EKpWkSXXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=peratonlabs.com; dmarc=pass action=none header.from=peratonlabs.com; dkim=pass header.d=peratonlabs.com; arc=none Received: from BN0P110MB1210.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:181::22) by BN0P110MB2225.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:19a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.33; Tue, 2 Jul 2024 12:45:13 +0000 Received: from BN0P110MB1210.NAMP110.PROD.OUTLOOK.COM ([fe80::195f:fd46:5d40:e25c]) by BN0P110MB1210.NAMP110.PROD.OUTLOOK.COM ([fe80::195f:fd46:5d40:e25c%4]) with mapi id 15.20.7719.029; Tue, 2 Jul 2024 12:45:13 +0000 From: "Youzwak, Jason A (PERATON LABS)" To: "linux-wireless@vger.kernel.org" Subject: Adding EPCS Support Thread-Topic: Adding EPCS Support Thread-Index: AQHay/c/68w81c+Vn0q7oPfEApoewQ== Date: Tue, 2 Jul 2024 12:45:13 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_d9be401e-98d6-42b6-bec6-0ceb84895e69_Enabled=True; MSIP_Label_d9be401e-98d6-42b6-bec6-0ceb84895e69_SiteId=2a6ae295-f13d-4948-ba78-332742ce9097; MSIP_Label_d9be401e-98d6-42b6-bec6-0ceb84895e69_SetDate=2024-07-02T12:45:13.507Z; MSIP_Label_d9be401e-98d6-42b6-bec6-0ceb84895e69_Name=Unrestricted; MSIP_Label_d9be401e-98d6-42b6-bec6-0ceb84895e69_ContentBits=0; MSIP_Label_d9be401e-98d6-42b6-bec6-0ceb84895e69_Method=Standard; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN0P110MB1210:EE_|BN0P110MB2225:EE_ x-ms-office365-filtering-correlation-id: 6e0d8c42-2229-4da2-17f1-08dc9a94d144 x-ms-reactions: disallow x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?windows-1252?q?dUa7n5yXewxyR/GnMhz2doKl?= =?windows-1252?q?HB22nFITRF5u++wVLK2a/EzdB8GNv8vyzLZqLhvutYOeexK/oDJYYSaMwp?= =?windows-1252?q?ZRnS/g2xcuHlXSnjGUZyaKGaNAlGQbInpWhbdDAj5iqCGnnVzqhoHrOFS3?= =?windows-1252?q?iGhDPp+VcV5dbhMf+F5S7pY/wZcVtjOJH3bC5jKBjZ+vKhJhe394YRUo3e?= =?windows-1252?q?wxbldLQE04Miih1A+znMrZIfCEcsM7yFwuD/g6N9zv0tRCfsJ08/ZDTOXx?= =?windows-1252?q?W+wqFwTecvpTBIBcq6BwXX3EevZWpHGObmdlCTt0pVvfIHDd5uoNjnCu/4?= =?windows-1252?q?9VsAjPxdS8z0XOR4+dgTUWgX3JTQ+BgJ+GChEoplsyMRWFEqHDmLy8hDk5?= =?windows-1252?q?IHNSHbdWpB8SMKIZA98FwiJFO8/QY4QA8v0lfkH/IsobJ0nb3FsLKl6hAA?= =?windows-1252?q?rYaH56uTupwKLmZrB1reHSu1BzEcZXFuMO0V2kjqgzGSzH12BBhdDLppHD?= =?windows-1252?q?xBUE3+ochWdUF8NmDNv1rXEEvB3H0Flq7pH3FhTryIyPQ2OoJS9K2nWyRM?= =?windows-1252?q?qBSxtVij69BPkapfYgMdcWC7q5XNA15ydkW2eX47hIZz41tgX8yQoJrr3M?= =?windows-1252?q?Bf12BACas28iPrad/JTp8Bx9gZ32a3b7uZGtsyt3S0zjlaD/0qfGPZGSVW?= =?windows-1252?q?p4SxPOoBpfVcAPPoto537KwZWZjc783D9ABFh/VvGtQlcc/uB5tLlL4AbM?= =?windows-1252?q?LmUiSV5i6gT4w9BbHNxt7j2Ox587NoQBkjmhtu2TGL01j0+OXO6IMICgTW?= =?windows-1252?q?qmTKmgX9qqkRme+SkB87j2HRbdF9FKYgFIlWmEy4n8WFgXMy+ECYxex1/7?= =?windows-1252?q?qgeigg9KRF6x1jSRAfDK8WveL2+QFWVxGGadxmnhIdQWrrYOUoPb4gJiP0?= =?windows-1252?q?qvfYgig9if0tlhT9KAgs5xVtVQT23bFpsYaJPTVSRXdf/Yf6X9tIzmmnOH?= =?windows-1252?q?c7knea37foPBiuXQP5L5vhErcvHA3a2wQ3C/qMVrgu/xCqj4SXQblVG/1s?= =?windows-1252?q?xaWo88jjoCINf6fO3POGM5YWkmhwUcgCfWjaK/QwvKESC+Px6Tl2xADacw?= =?windows-1252?q?V2uNWJRRCZQN4LdI+chSjoMB82mvqdq8Hj/fj3zoMS46w7id7r9VSvmlMr?= =?windows-1252?q?XM0Cm+wROJ+Ytmev17+oo60resJ7oZPvrXwXt/Aj7KpwomISSTW59s75qc?= =?windows-1252?q?27yMWQENv4sg543WUIb9IpahZFP61K1ZrpGrhD3rCE2O4jaAf/jDb+weEk?= =?windows-1252?q?I+pC2ernbCa4qwmMNzwsZP7tJ0v3vwGTPCEyas+ylNVxQYclFt1RZp0tAr?= =?windows-1252?q?vvrR0T+ibTHIYaDm2E8ce32BaEVZJq/05z1FVcOmK2mQwMqyyHFddrcFii?= =?windows-1252?q?Ztm1Eqik3wap4Js3VBuDltZYiKS+pZZIaz8LiepdhKgynFOfpYx2wMXowT?= =?windows-1252?q?9+0B7L7neP5Zqw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN0P110MB1210.NAMP110.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?windows-1252?q?sRcknXaGuqq1H+l6UFuLx?= =?windows-1252?q?RaNbCZuqExUatnnfvSlcFsHnHppe+f4qaqEYAC1kL0eD58xpadiRaARiBe?= =?windows-1252?q?GnGw0sfpUv7jsCsV22uGLyjRgXHXUNCfTjDgT0Py3sZQsFJd8sw/IIjBS+?= =?windows-1252?q?7t7xMmDDfbOCl3gKu5fW2RUUc+MPkT+12JOa4qSLqJ/V2s2DsI3KfN19kK?= =?windows-1252?q?oNpDgTofhUsPn3ZBGOz+HLHf5BXGx8tWcTlQeJcUvZxT+1pU9sLxZ5B0Ke?= =?windows-1252?q?s6B8bRaKTCYGVbTNZ7tIjPzymU1XJtc3RI/Dw9lplNuNJUebu79kdwkZjH?= =?windows-1252?q?2zqrG1bv1Lk9E2p/H2oQruS1PoF8UrxfypQ+ngVXhw8wdJi6X192xRfwa2?= =?windows-1252?q?uBEExu4gaoHM0/bH7oFhyEgwkYMtvTr9lOjRk14DYkM2t9YgjHHaTl1ais?= =?windows-1252?q?5vDn5p8OCmR47supWgWB3ei3WwbwOFJzdmcrrHI6kWKNFeEqNuUpLEX9WT?= =?windows-1252?q?+IQKCzVyiu6JE0+p4cDpRaG3rEtEGmYq1x3V4hrEKFmi0JjkmbukWzJEGh?= =?windows-1252?q?frjRM8H/UO7YrmLgCulcwoHxlffr7hjojJdGnrcg3HbbypAYot14RTp8PJ?= =?windows-1252?q?//m7ybA3IxcfOqR/DrL5muUtFTx5vK8VZBaAdKYVI2/CSwdPdoZFAG5giW?= =?windows-1252?q?+dX461Q2qhWhw5cx3JytJgcbFn8NMfBDuHrrsGNkpy+idECwia36BXvXJp?= =?windows-1252?q?F7WDvQu2E2IG/QEhvrM6g5TAEYvomXUvIBkI5lTVvwe/E/bbbKONVqxOj9?= =?windows-1252?q?BnaEnHtUPXEADYBcj6XyXFKMR1HGbK4RnNhmfej033gvzmclVCU/plxN/A?= =?windows-1252?q?CRJkV7Ca9epaOQS9ltNzcDAKYVVelfaIjslbRvEDWr53TCiNKrgecw9BQw?= =?windows-1252?q?hEi0GJVVxqjb51KmM5HjyrbNNYIYYQ8hLwvrBZi5orMfx3oEErDZ2NnqJn?= =?windows-1252?q?RHwNDXE7YnADHwj9/lh1S0wK2gaJ5MRp1/gG88D9LBoCpjb9dhSZgrabTK?= =?windows-1252?q?hb5WTWJNDwWA5M7T5M7/xl+BXwQRrlruUER8W3MS/I0CwcDo9k18tjddiS?= =?windows-1252?q?q2sZ844a4oHnTeI69wRhtS3vSo7Y7QOWr0m6TILy/a7UMMZDRlWQR3LjnT?= =?windows-1252?q?J4SIe4r6u+g1KsjmJfjgv1d7Wt/E6b1T3EnVOlHTayKgckYgYVXmkZgHuu?= =?windows-1252?q?5pNhPfyffGZp/4pAvec7/MBNiBvXG+5fCs+1E8XWbuHrafdWJ68/NLAmrk?= =?windows-1252?q?e1pZ3WpxRp+Qy4vswrxKSDuoWuFiDzLsL1QG6yQAmntAoYtIbWLG6krj6Z?= =?windows-1252?q?htbukAUiLj8cSBVts4/Znx8aS8EAwfU+Wi1zO9WdZl9OiyoLP5IXHX1lKi?= =?windows-1252?q?luJdvvLV0u47hoK3AHQBzWYYIoNYyCD+d1YI0pn7fAKaqXrHEfg426YiX3?= =?windows-1252?q?Ba/pxlweTmzFhTIZfrfsgUHldkkVv7sVYbj1f6/dAwFpzm1nvQRqE0/hy+?= =?windows-1252?q?be1rzN7Shj8K+b0gkAICfkSbKsseCQg8EPTP2htH/G5E=3D?= Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: peratonlabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN0P110MB1210.NAMP110.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 6e0d8c42-2229-4da2-17f1-08dc9a94d144 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2024 12:45:13.6279 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2a6ae295-f13d-4948-ba78-332742ce9097 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0P110MB2225 X-Proofpoint-ORIG-GUID: KVDKUQAcV0FJBQp8v6xSMsaMXNWhlMj9 X-Authority-Analysis: v=2.4 cv=S7eLw5sP c=1 sm=1 tr=0 ts=6683f65b cx=c_pps a=pj3U7PEmHrmn+1j25+pYxA==:117 a=pj3U7PEmHrmn+1j25+pYxA==:17 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=N659UExz7-8A:10 a=4kmOji7k6h8A:10 a=HFUoU3P_DP0A:10 a=rDd1SCgFB-YEiFBF15kA:9 a=pILNOxqGKmIA:10 X-Proofpoint-GUID: KVDKUQAcV0FJBQp8v6xSMsaMXNWhlMj9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-02_08,2024-07-02_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 mlxscore=0 adultscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2406140001 definitions=main-2407020095 Hello, We are implementing a Wi-Fi 7 feature called Emergency Preparedness Communication Services (EPCS) that provides priority to Stations (STAs) that are authorized to receive National Security and Emergency Preparedness (NSEP) Communication Services. This feature is part of Wi-Fi 7 certification, detailed in IEEE 802.11be Draft 6.0. We have started implementation efforts for the Linux operating system (specifically Arch Linux). We have successfully implemented and tested the over-the-air behavior per Wi-Fi Alliance defined test cases by modifying the ‘hostapd’ and ‘wpa_supplicant’. However, we are facing challenges making kernel modifications related to applying EDCA parameters for channel access. Specifically, we need to modify the nl80211, mac80211, and cfg80211 components in the Linux kernel to accommodate the following behavior at the STA per IEEE 802.11be specification (Draft 6.0, Clause 35.16.3.2): "While EPCS priority access is enabled, the STA affiliated with an EPCS non-AP MLD shall   - follow the contention-based channel-access procedures defined in 10.2.3.2 (HCF contention-based channel access (EDCA)) using the EDCA parameter set stored in the dot11EDCATable as described earlier in this subclause, and - ignore the part of the procedures defined in 10.2.3.2 (HCF contention-based channel access (EDCA)) that concerns the update of the EDCA parameters that are sent by the corresponding AP in its Beacon and Probe Response frames - if the per-STA profile of the EPCS Priority Access Multi-Link element is present in the EPCS Priority Access Enable Request or the EPCS Priority Access Enable Response frame received by a STA affiliated with the EPCS non-AP MLD and the per-STA profile contains an MU EDCA Parameter Set element: - follow the rules defined in 26.2.7 (EDCA operation using MU EDCA parameters) using the MU EDCA parameters stored in the dot11MUEDCATable as described earlier in this subclause, except that - if the MUEDCATimer[AC] of the STA reaches 0, either by counting down or due to a reset following the reception of an MU EDCA Reset frame, the STA affiliated with EPCS non-AP MLD shall update CWmin[AC], CWmax[AC], and AIFSN[AC] to the values stored in the dot11EDCATable as described earlier in this subclause - ignore the part of the procedures defined in 26.2.7 (EDCA operation using MU EDCA parameters) that concerns the update of the MU EDCA parameters that are sent by the corresponding AP in its Beacon and Probe Response frames  After the EPCS priority access is torn down, the STA affiliated with an EPCS non-AP MLD   - shall update its CWmin[AC], CWmax[AC], AIFSN[AC], and TXOP Limit [AC] state variables following the procedures in 10.2.3.2 (HCF contention-based channel access (EDCA)).  - shall update the dot11MUEDCATable following the procedures in 26.2.7 (EDCA operation using MU EDCA parameters)." We took the following approach:  - Define new nl80211 commands: NL80211_CMD_EPCS_ENABLE and NL80211_CMD_EPCS_TEARDOWN  - Define new STA flag: WLAN_STA_EPCS_ENABLED  - In net/mac80211/mlme.c, in ieee80211_mgd_set_link_qos_params(), if the WLAN_STA_EPCS_ENABLED flag is set, ignore the EDCA parameters from the Beacon and apply Priority EDCA parameters. Despite our efforts, we encountered several challenges:  1. Sending EPCS Enable/Teardown commands to the kernel (mac80211) from userspace (hostapd) via netlink.  The response was "Operation not supported on transport endpoint (-EOPNOTSUPP) (-95)". 2. Receiving, parsing and propagating the message via nl80211 and cfg80211.  Specifically, we would like guidance on storing parameters received in the NL80211_CMD_EPCS_ENABLE message and retrieving them in the net/mac80211/mlme.c module.  3. Applying the new EDCA parameters in mac80211 module.  We are seeking help from experts in the community who have worked with these components. Specifically, we would appreciate responses to the following questions:  - Is the kernel the right place to implement this or are there user-space solutions that we can leverage?  - If kernel modifications are needed, does our proposed approach make sense, or are there better alternatives we should consider?  - Is there documented guidance on how to add such features to the kernel?  Please see our initial work to provide basic support for EPCS messaging in Linux kernel 6.9.5 on Arch Linux in the patch below. Note: this is a proof of concept and not a full implementation – Priority Parameters are hardcoded in the net/mac/80211/mlme.c module.  A full implementation would accept priority parameters via the “NL80211_CMD_EPCS_ENABLE” command.  Patch to Kernel 6.9.5 ----------------------    Thanks in advance,  Jason diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h  index 1e09329ac..33c123b1d 100644  --- a/include/net/cfg80211.h  +++ b/include/net/cfg80211.h  @@ -4855,6 +4855,10 @@ struct cfg80211_ops {  int (*del_tx_ts)(struct wiphy *wiphy, struct net_device *dev,       u8 tsid, const u8 *peer);     +    /* JY: PLABS ADDED */  +    int (*epcs_enable)(struct wiphy *wiphy, struct wireless_dev *wdev);  +    int (*epcs_teardown)(struct wiphy *wiphy, struct wireless_dev *wdev);  +  int (*tdls_channel_switch)(struct wiphy *wiphy,         struct net_device *dev,         const u8 *addr, u8 oper_class,  diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h  index f23ecbdd8..69ddd2092 100644  --- a/include/uapi/linux/nl80211.h  +++ b/include/uapi/linux/nl80211.h  @@ -1592,6 +1592,9 @@ enum nl80211_commands {  NL80211_CMD_SET_TID_TO_LINK_MAPPING,     /* add new commands above here */  +    /* JY: PLABS ADDED */  +    NL80211_CMD_EPCS_ENABLE,  +    NL80211_CMD_EPCS_TEARDOWN,     /* used to define NL80211_CMD_MAX below */  __NL80211_CMD_AFTER_LAST,  diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c  index 07abaf782..a3d979909 100644  --- a/net/mac80211/cfg.c  +++ b/net/mac80211/cfg.c  @@ -4347,6 +4347,32 @@ static int ieee80211_set_ap_chanwidth(struct wiphy *wiphy,  return ret;  }     +/* JY: PLABS BEGIN */  +  +static int ieee80211_epcs_enable(struct wiphy *wiphy, struct wireless_dev *wdev)  +{  +    struct ieee80211_sub_if_data *sdata = IEEE80211_WDEV_TO_SUB_IF(wdev);  +    struct sta_info *sta;  +  +    sta = sta_info_get_bss(sdata, sdata->deflink.u.mgd.bssid);  +    set_sta_flag(sta, WLAN_STA_EPCS_ENABLED);  +  +    return 0;  +}  +  +static int ieee80211_epcs_teardown(struct wiphy *wiphy, struct wireless_dev *wdev)  +{  +    struct ieee80211_sub_if_data *sdata = IEEE80211_WDEV_TO_SUB_IF(wdev);  +    struct sta_info *sta;  +  +    sta = sta_info_get_bss(sdata, sdata->deflink.u.mgd.bssid);  +    clear_sta_flag(sta, WLAN_STA_EPCS_ENABLED);  +  +    return 0;  +}  +  +/* JY: PLABS END */  +  static int ieee80211_add_tx_ts(struct wiphy *wiphy, struct net_device *dev,         u8 tsid, const u8 *peer, u8 up,         u16 admitted_time)  @@ -5165,4 +5191,7 @@ const struct cfg80211_ops mac80211_config_ops = {  .del_link_station = ieee80211_del_link_station,  .set_hw_timestamp = ieee80211_set_hw_timestamp,  .set_ttlm = ieee80211_set_ttlm,  +    /* JY: PLABS ADDED */  +    .epcs_enable = ieee80211_epcs_enable,  +    .epcs_teardown = ieee80211_epcs_teardown,  };  diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c  index 1e9389c49..100e26729 100644  --- a/net/mac80211/debugfs_sta.c  +++ b/net/mac80211/debugfs_sta.c  @@ -80,6 +80,8 @@ static const char * const sta_flag_names[] = {  FLAG(PS_DELIVER),  FLAG(USES_ENCRYPTION),  FLAG(DECAP_OFFLOAD),  +    /* JY: PLABS ADDED */  +    FLAG(EPCS_ENABLED),  #undef FLAG  };     diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c  index 497677e3d..aba87d1d4 100644  --- a/net/mac80211/mlme.c  +++ b/net/mac80211/mlme.c  @@ -2720,7 +2720,30 @@ void ieee80211_mgd_set_link_qos_params(struct ieee80211_link_data *link)  struct ieee80211_tx_queue_params *params = link->tx_conf;  u8 ac;     +    /* PLABS JY: Changes BEGIN */  +    bool epcs_enabled = false;  +    struct sta_info *sta = NULL;      +        +    /* New flag lives in the Station Info */  +    sta = sta_info_get(sdata, sdata->vif.cfg.ap_addr);  +  +    /* Get result 0 or 1 */  +    epcs_enabled = test_sta_flag(sta, WLAN_STA_EPCS_ENABLED);  +    +    mlme_dbg(sdata, "JY: PLABS mac80211 module changes\n");  +    mlme_dbg(sdata, "EPCS Enabled=%s\n", epcs_enabled ? "true" : "false");  +  for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {  +        if (epcs_enabled) {  +            mlme_dbg(sdata, "JY: PLABS We are entering priority mode!\n");  +            // Setting EDCA parameter to Voice  +            params[ac].aifs = 3;  +            params[ac].cw_min = 4;  +            params[ac].cw_max = 5;  +            params[ac].txop = 65;  +            params[ac].acm = 0;  +          }  +  mlme_dbg(sdata,   "WMM AC=%d acm=%d aifs=%d cWmin=%d cWmax=%d txop=%d uapsd=%d, downgraded=%d\n",   ac, params[ac].acm,  diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h  index a52fb7638..ac2a39d57 100644  --- a/net/mac80211/sta_info.h  +++ b/net/mac80211/sta_info.h  @@ -104,6 +104,8 @@ enum ieee80211_sta_info_flags {  WLAN_STA_PS_DELIVER,  WLAN_STA_USES_ENCRYPTION,  WLAN_STA_DECAP_OFFLOAD,  +    /* JY: PLABS ADDED */  +    WLAN_STA_EPCS_ENABLED,     NUM_WLAN_STA_FLAGS,  };  diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c  index 65c416e8d..8be612b49 100644  --- a/net/wireless/nl80211.c  +++ b/net/wireless/nl80211.c  @@ -2641,6 +2641,8 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev,  if (rdev->wiphy.features &  NL80211_FEATURE_SUPPORTS_WMM_ADMISSION)  CMD(add_tx_ts, ADD_TX_TS);  +            // PLABS Added  +            CMD(epcs_enable, EPCS_ENABLE);  CMD(set_multicast_to_unicast, SET_MULTICAST_TO_UNICAST);  CMD(update_connect_params, UPDATE_CONNECT_PARAMS);  CMD(update_ft_ies, UPDATE_FT_IES);  @@ -15299,6 +15301,30 @@ static int nl80211_set_qos_map(struct sk_buff *skb,  return ret;  }     +/* JY: PLABS ADDED */            +static int nl80211_epcs_enable(struct sk_buff *skb, struct genl_info *info)  +{  +    struct cfg80211_registered_device *rdev = info->user_ptr[0];  +    struct net_device *dev = info->user_ptr[1];  +    struct wireless_dev *wdev = dev->ieee80211_ptr;  +        +    rdev_epcs_enable(rdev, wdev);     +                                                                                                                                          +    return 1;                    +}   +        +/* JY: PLABS ADDED */            +static int nl80211_epcs_teardown(struct sk_buff *skb, struct genl_info *info)  +{       +    struct cfg80211_registered_device *rdev = info->user_ptr[0];  +    struct net_device *dev = info->user_ptr[1];  +    struct wireless_dev *wdev = dev->ieee80211_ptr;  +  +    rdev_epcs_teardown(rdev, wdev);   +                                                                                                                                          +    return 1;  +}  +  static int nl80211_add_tx_ts(struct sk_buff *skb, struct genl_info *info)  {  struct cfg80211_registered_device *rdev = info->user_ptr[0];  @@ -17488,6 +17514,24 @@ static const struct genl_small_ops nl80211_small_ops[] = {  .flags = GENL_UNS_ADMIN_PERM,  .internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP),  },  +    /* JY: PLABS ADDED */  +    {  +        .cmd = NL80211_CMD_EPCS_ENABLE,  +        // PLABS: If we encounter issues, remove validate  +        .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,  +        .doit = nl80211_epcs_enable,  +        .flags = GENL_UNS_ADMIN_PERM,  +        .internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP | NL80211_FLAG_MLO_UNSUPPORTED),  +    },  +    /* JY: PLABS ADDED */  +    {  +        .cmd = NL80211_CMD_EPCS_TEARDOWN,  +        // PLABS: If we encounter issues, remove validate  +        .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,  +        .doit = nl80211_epcs_teardown,  +        .flags = GENL_UNS_ADMIN_PERM,  +        .internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP | NL80211_FLAG_MLO_UNSUPPORTED),  +    },  };     static struct genl_family nl80211_fam __ro_after_init = {  @@ -17504,7 +17548,9 @@ static struct genl_family nl80211_fam __ro_after_init = {  .n_ops = ARRAY_SIZE(nl80211_ops),  .small_ops = nl80211_small_ops,  .n_small_ops = ARRAY_SIZE(nl80211_small_ops),  - .resv_start_op = NL80211_CMD_REMOVE_LINK_STA + 1,  +    // PLABS Changed  + //.resv_start_op = NL80211_CMD_REMOVE_LINK_STA + 1,  + .resv_start_op = NL80211_CMD_MAX + 1,  .mcgrps = nl80211_mcgrps,  .n_mcgrps = ARRAY_SIZE(nl80211_mcgrps),  .parallel_ops = true,  diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h  index 43897a526..8aec66206 100644  --- a/net/wireless/rdev-ops.h  +++ b/net/wireless/rdev-ops.h  @@ -637,6 +637,17 @@ static inline void rdev_rfkill_poll(struct cfg80211_registered_device *rdev)  trace_rdev_return_void(&rdev->wiphy);  }     +/* JY: PLABS ADDED */            +static inline void rdev_epcs_enable(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev)  +{  +    rdev->ops->epcs_enable(&rdev->wiphy, wdev);  +}  +   +/* JY: PLABS ADDED */  +static inline void rdev_epcs_teardown(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev)  +{  +    rdev->ops->epcs_teardown(&rdev->wiphy, wdev);  +}     #ifdef CONFIG_NL80211_TESTMODE  static inline int rdev_testmode_cmd(struct cfg80211_registered_device *rdev,