Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp271051lqj; Wed, 10 Apr 2024 09:54:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdpwC2sIJT1LUu8QU2B8ys05h1Pjhv1jpNdGaWnUC1f27HfnCuTBQeQNmmP3V5eNY8vN2e/D56gjLhWvxgj8w0OAmEKIJ+6TyRjUwfWQ== X-Google-Smtp-Source: AGHT+IHPinyZHSW1pTOeLxMmTuhIiAIu2WFT6g4UkRffxIWSNqovJVY4OUJrAdgUveYqoOzt1OcV X-Received: by 2002:a17:907:33d3:b0:a51:e5b1:6d4a with SMTP id zk19-20020a17090733d300b00a51e5b16d4amr1829653ejb.64.1712768079511; Wed, 10 Apr 2024 09:54:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768079; cv=pass; d=google.com; s=arc-20160816; b=Zk8XwBE4m4AscKzxI7RqqulNUiRgLDhdjQA0E+GH5NohbcjXEKKzbxY1q6ZJ20+LO8 VkajIdsC7SeUmlEbp4JI6jIe3pgEOEbWPNbi3rF3XycU/pnotXjJvcQL2Wkgbtywm1Hq AIxUY4S2JsEfvqlefnqgaqLvnsM83SO/dHDFgJOZwUSt1F0RoZgK9o3pXU/6eRuWikDx Tl7FpP5y9VSgIGNWdjJqmuYwvshPHzD7zSVkF/6MoEiHr2OjVt5DF/eGU1UrLyb0ky8t i3k3FPhXSA8cb0Xg4w5etl1b9SbT/RMBAvimBeycg73MpTEWz2i8Zb5bFjbZ8QbsQeSU qFjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=DVcdRZ6eqz+T3w22YHI59T7kAHIRAD7xVI8539GYqXI=; fh=CTjrZ2B2Ce2FM8K5p1J/xDxD4J7j1wfoyqDMqGBwZb4=; b=Vr+Raer6DQoEQnl91AeboKHhySppDUJCxG1NuKs0IHk07Z89kURE4KNvjaW9+zE1DV dgoUSxUqSb8NqTEmRLPkKKtg9P6Xlm12jCvmYC9FNOddFV/OavN4WF/lTyOlAEaPnnkB PbXb8fXUhzNwKPqI8I/Sk/Rebl2wz75A9Hi5dk349nxwM/tsXMSN4d6wo7vTCTjJHKOW tmhP0cQOhH9Jjmz3S9b1TJox5fEe1AeZS/PYH/fgtiH/OWKlNZccx+/0a7nL9s0DhTN2 ujR8F5TxacPJi0J1ugD0dWAOQ3IK9Vnn8ohPGwkMlKF+If942ywec+4RbxsyfTHvvlBv KPbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pQlmwK6d; 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-6126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g15-20020a170906594f00b00a4741fede8asi5979884ejr.159.2024.04.10.09.54.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pQlmwK6d; 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-6126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6126-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 40D8B1F283C8 for ; Wed, 10 Apr 2024 16:44:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E91A17BB02; Wed, 10 Apr 2024 16:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="pQlmwK6d" 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 5CB5B17B50C for ; Wed, 10 Apr 2024 16:44:44 +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=1712767486; cv=none; b=PPd+rJLAEuo0kOybiJ4+CS8hOl1a3KYxgc3LCwPBn7Xvi5j5MOJFJM+yKIGiNvwkYtZUoe0fVGHg47KaIqaW/euklkE7KVHKMWXIMd8uWdVdHqp1XZmi6aLAznhAW5Z9ccDFJ0rwX+yJFMpA0AZHPOraFpFD5+ZaiWzlRv08GjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712767486; c=relaxed/simple; bh=7AfnkYRRdGWP5zy0kZZAOE6zwhGmSCl/vGVNYc/0bL4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=QYDM4gl+Yugoa3B4jS+hCRsEsB8Ha+UH3VfzsMFzSJagsq8DFkdmdDZszEmCN6kxisMGZAnzCZsXW0B789Ri3FGSAWM70/EdJuWApIUS/QHuWl5t5fEegM8pIKD1LnqDBoxcG9oA7BvugQZFOHIEySnHSZXxY9mTNw6T4YHwie0= 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=pQlmwK6d; 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43ABqRqV026347; Wed, 10 Apr 2024 16:44:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=DVcdRZ6eqz+T3w22YHI59T7kAHIRAD7xVI8539GYqXI=; b=pQ lmwK6decJ2Npp0PDXMh3/PJsO82k+/9NVgW7yRL0HH8bAf6uRE1/y2sOG72Shmtn 03hc2YKWw5hdhDJl3gyJ/wIS2/0W4aKXo2HMJq2gjnxSAFC13nLg4eglSxPi7vFG XXgm14zlIMf6q/OqnCTY0sDBM8GRYXY0PGDDccR277zGP1MmIeuSaH+c0PXr19Cw Ss/JeleuZc3SeinUODbsNqJwY2nxNzzeJFQf/Ku6QHx1oL9LtiERVptb0sOOQT7j BI9kj1AAW+lhytNN9pIgqktF29LFkepkQ27v95Vfpi1ILEuHoEFbXjQd8ILpgoqu 5O+dDaNk0ETiPV0biNag== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xdjtmv41x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 16:44:36 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43AGi0IB018974 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 16:44:00 GMT Received: from [10.110.37.144] (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.4; Wed, 10 Apr 2024 09:44:00 -0700 Message-ID: <0cfe990b-182b-4ceb-b5b4-2989fefedb2f@quicinc.com> Date: Wed, 10 Apr 2024 09:43:59 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/13] wifi: cfg80211: Add provision to advertise multiple radio in one wiphy Content-Language: en-US To: Ben Greear , Johannes Berg , Vasanthakumar Thiagarajan , Karthikeyan Periyasamy , CC: References: <20240328072916.1164195-1-quic_periyasa@quicinc.com> <20240328072916.1164195-2-quic_periyasa@quicinc.com> <033185b0-f878-a50b-d0d9-57fa79439bdf@quicinc.com> <80fe5786-f764-455d-ac44-22adf7aeaf94@candelatech.com> <31f30c0e318904f3a082c7f213576ceb1f407141.camel@sipsolutions.net> <20b56e52-a5e2-70cd-a62a-8c4a3526c2cf@candelatech.com> <614bb8a8f1d9174ad7d87cf7636f657cda7b1ef9.camel@sipsolutions.net> From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-GUID: B91KCFTd9RwWLgkAcKdn3SK7FDjhGDo4 X-Proofpoint-ORIG-GUID: B91KCFTd9RwWLgkAcKdn3SK7FDjhGDo4 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-10_04,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 spamscore=0 bulkscore=0 phishscore=0 mlxlogscore=783 mlxscore=0 priorityscore=1501 suspectscore=0 adultscore=0 lowpriorityscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404100123 On 4/10/2024 9:23 AM, Ben Greear wrote: > On 4/10/24 08:42, Johannes Berg wrote: >> On Wed, 2024-04-10 at 07:37 -0700, Ben Greear wrote: >>> On 4/10/24 00:56, Johannes Berg wrote: >>>> On Fri, 2024-03-29 at 07:47 -0700, Ben Greear wrote: >>>>> On 3/29/24 07:30, Johannes Berg wrote: >>>>>> On Fri, 2024-03-29 at 19:41 +0530, Vasanthakumar Thiagarajan wrote: >>>>>>>> >>>>>>>>> + * @hw_chans: list of the channels supported by every constituent underlying >>>>>>>>> + * hardware. Drivers abstracting multiple discrete hardware (radio) under >>>>>>>>> + * one wiphy can advertise the list of channels supported by each physical >>>>>>>>> + * hardware in this list. Underlying hardware specific channel list can be >>>>>>>>> + * used while describing interface combination for each of them. >>>>>>>> >>>>>>>> I'd expect there to be a limit on channels being within a single band on >>>>>>>> a single "hardware"? >>>>>>>> >>>>>>> >>>>>>> There are ath12k hardware supporting multiple band which need to be >>>>>>> registered under one mac80211_hw/wiphy. This design is to support such >>>>>>> hardware. >>>>>> >>>>>> Oh OK, that was something that I didn't have in mind any more, or never >>>>>> knew or paid attention to. >>>>> >>>>> Would it work to leave the phy reporting pretty much as it is now, but add >>>>> a 'associated_peer_radios' list section, so that each phy could report the phys >>>>> associated with it? Then user-space, driver, mac80211 etc could look up the >>>>> other phys as needed to get a full picture? >>>>> >>>> >>>> There's not really a good way to _do_ that short of creating multiple >>>> wiphys, but that causes _massive_ complexity in the stack (both cfg80211 >>>> and mac80211) so we rejected it years ago. >>> >>> I thought the problem ath12k is trying to fix is that there are currently multiple phys (radios) that needed to be made to >>> look like a single phy? >> >> Correct. >> >>> For dual and tri-concurrent radios, I think we will need them to look like 3 individual radios for non-MLO use >>> cases >> >> No, I don't see why, and if you want that we wouldn't support it anyway, >> you'd have to have a module option or something to decide which way to >> go. >> >> But it really ought to not be needed - the point of these patches is to >> give userspace enough information to know how to (and where) to create >> separate BSSes, with or without MLO between them. > > If phy0 told user-space that phy1 and phy2 were 'mlo peers', and phy1 and phy2 > gave similar mapping, couldn't user-space just notice the peer group and then > have all the info it needed without the bulk of the patch set in question? > > So then if hostapd wants to have 3 radios in an mlo grouping, it can do so. > > And if instead it wants three old-style wifi-6 AP interfaces, it could do that > as well. I don't see why it would need any module option, and I also do not > see why it could not do both behaviours concurrently (one BSSID being MLO, second one > being non MLO, for instance). > >>> For instance, mt7996 currently reports 3 single-band wiphys, and each can be used independently. >>> But assuming it starts supporting MLO, then those 3 single band wiphys will need to start acting >>> at least somewhat like a single entity >> >> Yes. >> >>> (while also concurrently being able to act as individual >>> wiphys so that one can do a mix of MLO and non MLO sta/AP.) >> >> No. > > How will you allow all three bands/phys to host bssids that can talk to > wifi-6 and earlier stations if there is only a single phy seen by hostapd? > > I definitely want to put STA vdevs on the three individual 7996 phys and have them > be able to talk to non MLO APs. This currently works. > > I suspect other use cases, such as meshing with non MLO APs may also want > this sort of ability. > > Thanks, > Ben > Ben, the patches we have posted so far allow ath12k to either have each phy assigned to a separate wiphy (legacy operation) or have multiple phys assigned to a single wiphy (required for MLO operation). In an upcoming patch we'll introduce a DT-driven mechanism to perform the mapping of phys to wiphys. So the goal is to be able to support both modes of operation. /jeff /jeff