From patchwork Thu Mar 28 18:16:52 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: 1917545 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=UtjPsWc0; 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=cZUYLMX7; 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 4V5Bfk6qQCz1yYM for ; Fri, 29 Mar 2024 05:20:30 +1100 (AEDT) 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:References:In-Reply-To: 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: List-Owner; bh=MI1/qzpLLMvQjnx1t4nQ/Bnvfl9xLvymlkATUSx6S0s=; b=UtjPsWc0xhSuKa qb062VFhXlUiQY9+DoxLE4HrgrdUr6XgU2nnNn8KSafh/16ezZN/9/aNOhyBNkcZJkwLvM4vQa27T NJb4ubB9Ou/i44zFbXQUz4J8SU1FuMVRYXF1SQ0TRwzQjxbsmw6/9FHxvQgAIYW13yC+yFfmor9Xp A/3R3WrTZEetuJjXJs2I+fmpxmqVZz1WYTHCIIkAnfPe6le1PZXbOXJ8gZUlqBLhutl0medtQwFqP G4al6PkTgno9CVeDuAlHvMMjpETsNSBEJdet5X73pAeeZaDCLlPZp9d0AKL6qy93sbXlxVEWh4qC/ nxt9KuwKqcd5D4kara9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpuMG-0000000F8ya-0SGk; Thu, 28 Mar 2024 18:20:12 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpuK4-0000000F7Ht-3ep6 for hostap@lists.infradead.org; Thu, 28 Mar 2024 18:18:12 +0000 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 42SI9l2B012559 for ; Thu, 28 Mar 2024 18:17:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=wlk2yHQAcKWJ9nI9qRoaj5m2wG+VxeXJlRqlwufWWNU=; b=cZ UYLMX74loRDdCgSjLakURJcooYDK1HiRP3wsq3pJBEsx3tKVH5nT6xX2RwPin/KE qk028xonh3arm4GfWiPXFqsrgCeU6XKaBdl3OWXkD9fD50ORSMEGzqbCZjyv/KW9 /cxMp+v+K1xW0P6OBU2Ajn+Un8M9jnwl/MbpkMQjgz8CUOBSGaAA3aCAna6aJa7P 2+DgDnCTTGH0fa4CJfUTxU+z11hQi6gwinA6GbeMx6uvpL0CRH4jB+0T4LHX3/Yf O4OHcx+AJvLjD/YaBLxYuXBB+50pF44wReovlOEMJGUQBb/rPOHIJ2WhqJjFRBEl TaAV2hZsqTJojbBraIrA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x575m97ej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 28 Mar 2024 18:17:55 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42SIHsiU019193 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 28 Mar 2024 18:17:54 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.1118.40; Thu, 28 Mar 2024 11:17:53 -0700 From: Aditya Kumar Singh To: CC: Aditya Kumar Singh Subject: [PATCH 22/22] tests: MLO: add cohosted MLDs connectivity testing Date: Thu, 28 Mar 2024 23:46:52 +0530 Message-ID: <20240328181652.2956122-23-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240328181652.2956122-1-quic_adisi@quicinc.com> References: <20240328181652.2956122-1-quic_adisi@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: x7DJ5dNmxTebFc2K5l8E1bjHDbPovhhb X-Proofpoint-GUID: x7DJ5dNmxTebFc2K5l8E1bjHDbPovhhb 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-03-28_17,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 mlxlogscore=740 lowpriorityscore=0 malwarescore=0 clxscore=1015 impostorscore=0 phishscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403280128 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_111759_046146_CC8264AA X-CRM114-Status: GOOD ( 11.36 ) X-Spam-Score: -0.2 (/) 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: Add test case 'eht_mld_cohosted_connectivity' which creates two 2 link AP MLDs and connect 2 links MLD client to each one of them and test data traffic. Signed-off-by: Aditya Kumar Singh --- tests/hwsim/test_eht.py | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -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 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 Add test case 'eht_mld_cohosted_connectivity' which creates two 2 link AP MLDs and connect 2 links MLD client to each one of them and test data traffic. Signed-off-by: Aditya Kumar Singh --- tests/hwsim/test_eht.py | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py index 732406219e5c..f09d3187855c 100644 --- a/tests/hwsim/test_eht.py +++ b/tests/hwsim/test_eht.py @@ -2053,3 +2053,45 @@ def test_eht_mld_cohosted_discovery(dev, apdev, params): def test_eht_mld_cohosted_discovery_with_rnr(dev, apdev, params): """EHT 2 AP MLDs discovery (with co-location RNR)""" eht_mld_cohosted_discovery(dev, apdev, params, rnr=True) + +def test_eht_mld_cohosted_connectivity(dev, apdev, params): + """EHT 2 AP MLDs with 2 MLD clients connection""" + with HWSimRadio(use_mlo=True, n_channels=2) as (hapd_radio, hapd_iface), \ + HWSimRadio(use_mlo=True) as (wpas_radio, wpas_iface), \ + HWSimRadio(use_mlo=True) as (wpas_radio1, wpas_iface1): + + wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5') + wpas.interface_add(wpas_iface) + + wpas1 = WpaSupplicant(global_iface='/tmp/wpas-wlan5') + wpas1.interface_add(wpas_iface1) + + hapds = get_mld_devs(hapd_iface=hapd_iface, count=2, prefix=params['prefix'], + rnr=False) + + passphrase = "qwertyuiop-" + ssid = "mld-" + + # Connect one client to first AP MLD and verify traffic on both links + wpas.set("sae_pwe", "1") + wpas.connect(ssid+"0", sae_password=passphrase+"0", scan_freq="2412", + key_mgmt="SAE", ieee80211w="2") + + eht_verify_status(wpas, hapds[0], 2412, 20, is_ht=True, mld=True, + valid_links=3, active_links=3) + eht_verify_wifi_version(wpas) + + traffic_test(wpas, hapds[0]) + traffic_test(wpas, hapds[1]) + + # Connect another client to second AP MLD and verify traffic on both links + wpas1.set("sae_pwe", "1") + wpas1.connect(ssid+"1", sae_password=passphrase+"1", scan_freq="2437", + key_mgmt="SAE", ieee80211w="2") + + eht_verify_status(wpas1, hapds[3], 2437, 20, is_ht=True, mld=True, + valid_links=3, active_links=3) + eht_verify_wifi_version(wpas1) + + traffic_test(wpas1, hapds[3]) + traffic_test(wpas1, hapds[2])