From patchwork Tue Aug 13 08:38:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Kumar Singh X-Patchwork-Id: 1971847 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=iDBAD6JF; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Hw9MfzGX; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WjlFR6Gb3z1yg6 for ; Tue, 13 Aug 2024 18:40:11 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MgkNLn26iJ7E0rIs56EwX61qOOkKbXrj1Ihuyafnato=; b=iDBAD6JF6O0s6L TOTQPcGHLjOuyMMuOOQP61kZF2lqmUomr4lluOs4DpZw6rte2kxopjQkgAUYH2mK3yseYQof2TCjM /Oz1jJ8I/XyiRbwne0a3C2xa7LhZjbDpAWffaR6NMtCs0Tk0H8D6yuPDtXDEzojzZ4l8rlDXgKT+k npE6OBu0pFx/buqKRjJxaBrRu6LTCX9IhtIfM2TcJT48l4sVIDWm1kLfVvJPQDU2bl0wx+5GWipev pxkmHh7V9iDxVXfv5/HvCIhzRioRtBFjj++DeR3ThU+zXhGSgAHEAFD6Yln6pf88sjdGx2QoWEG9+ RcbCNs1jgFK/1z3x84RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdn48-00000002wRp-3JOP; Tue, 13 Aug 2024 08:39:40 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdn3d-00000002wFg-2luN for hostap@lists.infradead.org; Tue, 13 Aug 2024 08:39:11 +0000 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 47D2f38x012774 for ; Tue, 13 Aug 2024 08:39:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=ucO2IlRGJpst/bQMRm7Hde pgzOnHJNz2IqEfj9Ekel8=; b=Hw9MfzGXmjCKkOrk+/M5SAWfydFTOvCwUKUEKA cJDbLtyL4XCHnD4uaETmfwcnTxKkvHlEEVd7rJKV7quq74FMgJRj4/YDwUmGMC1P rguWz9jElYoB3FcdNIcq8m/ZDWWLRYabuMEqHu5ALTUp5MTDpfeoNk/5ZJsbgcpD 2hPIFSiQR3OSqy70vVLBqCZefXpvMd0sE/UloAmbZwf28HLIijpeYUZOgDKfaDco rjrzH+uzaE7aIyS6LxcPe6Uaus4ePHCD8Duz2mXIcYliJJnKEXzTNo+USjgCZ6AB agn62dpINBZnExofXfE2xTVvWYgwzxw0kTPwMSlLLs03flAQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40yxwv0s30-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Aug 2024 08:39:08 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 47D8d7th007901 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Aug 2024 08:39:07 GMT Received: from hu-adisi-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 13 Aug 2024 01:39:05 -0700 From: Aditya Kumar Singh To: CC: Aditya Kumar Singh Subject: [PATCH v5 0/6] MLO control socket changes Date: Tue, 13 Aug 2024 14:08:46 +0530 Message-ID: <20240813083852.3945773-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 1nhke64OxEE_kiY2qpYy1nViPylNYcKK X-Proofpoint-ORIG-GUID: 1nhke64OxEE_kiY2qpYy1nViPylNYcKK 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-08-13_01,2024-08-13_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=726 suspectscore=0 phishscore=0 malwarescore=0 clxscore=1015 spamscore=0 adultscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408130060 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240813_013909_858773_A21AA341 X-CRM114-Status: GOOD ( 13.65 ) X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Control socket for each link BSS of MLD currently needs to be in a separate directory since interface name is same for all links in an AP MLD. Hence once the first link comes up, rest of links will no [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [205.220.180.131 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [205.220.180.131 listed in sa-trusted.bondedsender.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [205.220.180.131 listed in bl.score.senderscore.com] -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Control socket for each link BSS of MLD currently needs to be in a separate directory since interface name is same for all links in an AP MLD. Hence once the first link comes up, rest of links will not come up if using the same control interface directory. Hence, introduce link level sockets. Each link will use socket with name "_link" under given control interface directory. Also, introduce a MLD level socket with name "" in the same directory. This will help to route the commands to underlying links if required as well as it will keep backwards compatibility with other applications trying to find "" file in the control interface directory. Aditya Kumar Singh (5): ctrl_iface: MLO: introduce MLD level socket hostapd_cli: MLO: pass 'LINKID' in the command hostapd_cli: MLO: add status command for MLD socket tests: MLO: use link ID to access control sockets tests: MLO: add MLD socket connectivity test case Karthikeyan Kathirvel (1): ctrl_iface: create link based hapd control sockets --- v5: * When moving LINKID from postfix to prefix, handling the same via cli was missed, fixed that in [3]. * No changes in other patches. v4: * Moved LINKID as prefix in MLD level socket command. * os_snprintf() and os_snprintf_error() usage wherever needed. * CONFIG_IEEE8021BE guard usage changes to avoid duplicate statements. v3: * Email correction in [0] and [6]. v2: * Rebased on ToT. No conflicts in [1-4]. * Fixed newly added EHT MLO and RSN Override sim test cases. [5/6] --- hostapd/ctrl_iface.c | 384 ++++++++++++++++++++++++++++++- hostapd/ctrl_iface.h | 4 + hostapd/hostapd_cli.c | 70 +++++- hostapd/main.c | 5 + src/ap/hostapd.c | 39 ++++ src/ap/hostapd.h | 11 + src/common/wpa_ctrl.c | 63 +++++ src/common/wpa_ctrl.h | 7 + tests/hwsim/hostapd.py | 27 ++- tests/hwsim/mld.py | 36 +++ tests/hwsim/test_eht.py | 126 +++++++++- tests/hwsim/test_rsn_override.py | 2 + 12 files changed, 749 insertions(+), 25 deletions(-) create mode 100644 tests/hwsim/mld.py base-commit: 43943ea5b31fb84bcb3b01f0d85d301a28e66e4c