Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp224945lqj; Wed, 10 Apr 2024 08:42:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTV3yZPtVQET7qPEb4Qbzvt/hQqb5Il+G97LXbd9qOe12ZDWZYIeTtFXncFBw8nlaGNojTd48t+7ujqAwbwiCe/mDRDfT1bVe2SusH8Q== X-Google-Smtp-Source: AGHT+IGFta+yzQqQ5wb0kNtOIdVPe0ygZjTuEDxmkFmjgPDb5S6JBOfcPOW4Pag0vLYeX3iBHku2 X-Received: by 2002:a50:aa93:0:b0:565:a6a4:2ecc with SMTP id q19-20020a50aa93000000b00565a6a42eccmr2905668edc.2.1712763752342; Wed, 10 Apr 2024 08:42:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712763752; cv=pass; d=google.com; s=arc-20160816; b=oIeO+KSXwrFsOukkRyb6skFdF+u5eg5/jT0Zd1TPKiLmDX+0OjCG/bmNFybg+7HBqT MsQqzeYiR/mu/kjUWRS+VdtLl2vDMB1GRj63tEMegp/i0ekZ+rFfOjyeUphky7S7IWot 6OeiOI8lFWC6QZPiVACCHInDX+Nhs6JuZnnLwq4lpY0zeDhN1P/SNWhOt0BiD3PuwpH7 q8nFBsR5pvnLEKpTC6DyLCIWYHeu1LdecACcE4dlziYWqlSUS4D2PLgfQ97gK6nTXAlG BCQisapgEwLF6Jomc0hUuoe9gUV7/527BUxIhWEs6Xm0IeaRTPGbLPSUwnpdTyLPo35v p+7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=HwTqnHnJJ2QLV1zJVZUgS64ZDJVq53r7OiGOg7qIs9Y=; fh=kZFK34qshGWGdr/ln2mAjUZtiSzsbUpdT+zqeXFEJ3U=; b=DFXyPQ7vbV3vg5ngEby8zr+esveKhP6PupMfquN6h7lSXo4DsQSq8CgFyZLx14xF+O f+8lu6rlKeVSGrht/JUOET56CVUio2CKpVAmkLGnMdcb/xB7mN6XZ8Eg6DoRQsYevZwD WQsKaC9tgUuzcvXiRVLDh7QDZ4tk4DIzz74vIePPldNUYcqobJkiGr8jZlThsuAUSiLj xKkJEjV8ilbtsIYTQk7+U9deaAvNduSU5VmYI0omCEvqDzchLUWGrPN+8VYU2t5ykC+N B7zrSIcx3UNGH0gUTj5uXfcwIshD7hTrDw4Q9ZkAF8lDvVi/n0telcql4knrhavOHce6 N1PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=GrwJowSR; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-6122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d30-20020a50cd5e000000b0056e69895978si2649137edj.117.2024.04.10.08.42.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=GrwJowSR; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-6122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 157281F219CE for ; Wed, 10 Apr 2024 15:42:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 928FE1E878; Wed, 10 Apr 2024 15:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="GrwJowSR" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 8B78A15444A for ; Wed, 10 Apr 2024 15:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712763739; cv=none; b=iTKRvDBZGeSXx01wO3M30by76BNyjFp7cEqhBfwGpwy5tCdHZriaZw7WiaEeypSMhH8E9KnZRUQEbEdLzrmaikehCFeIVQDZELNE5MK7OzVWmZJEFW/NCNmhOLIon8l6fKZt89U/7MPQww04v+o2nCNsY2LqAtpMgKUZ6c38GE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712763739; c=relaxed/simple; bh=x/M3yzOkbzwkoPErO/45O/soCl66PnndHvdAt/vqp2g=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=CovPICTMWOPfwpfpuFzP4Ql9ftDJUW7RrnW8c7CLHUeAmvbi5h+XeKdHRGPoSPWLXAYuwgV6mqGdBK2QPOdYa2ktFzpWPnc0Pd7ENE2mSVZ1pu30egchP7qHXp+kJJMc4lvjHxUF8ZsAoF/24vlqhhiBRWl+CefYerhZ/HcGSCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=GrwJowSR; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=HwTqnHnJJ2QLV1zJVZUgS64ZDJVq53r7OiGOg7qIs9Y=; t=1712763734; x=1713973334; b=GrwJowSRg+euSnctYfTBvk+tB/6VOPWPrLTfiqmdk3d8k5/ 34RVhIUQiw3uuGI3A6Wq7xNQuJcUi9geIY/gaT3KEOjX+U5K8AzM0PYiHB+cuQKDJsKbtUJhol+T9 aD8V/tGBhZM7YXkn/NBgDrdxClZmGWJkIB/QFSqZ8Sf9HfaqDCt5HGi1PEHzWdBdI2ly4kv/cSlEv N5T5JfHvhIeUB0ePyEtJMbr8y05fufLrqAfTaNhhkNjNB/qbt1kgoW+E1Cn80qT2OVFSwhuSoYtl6 gUV3VKT25ZclA3eqBb1xuAsss0zddx6624I5y/dSqJxWKYolVWa05yNXy4DZ1Rsg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rua5S-00000001VfA-2SeY; Wed, 10 Apr 2024 17:42:10 +0200 Message-ID: <614bb8a8f1d9174ad7d87cf7636f657cda7b1ef9.camel@sipsolutions.net> Subject: Re: [PATCH 01/13] wifi: cfg80211: Add provision to advertise multiple radio in one wiphy From: Johannes Berg To: Ben Greear , Vasanthakumar Thiagarajan , Karthikeyan Periyasamy , ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Wed, 10 Apr 2024 17:42:09 +0200 In-Reply-To: <20b56e52-a5e2-70cd-a62a-8c4a3526c2cf@candelatech.com> 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned 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: > > > > > >=20 > > > > > > > + * @hw_chans: list of the channels supported by every consti= tuent 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 chann= el list can be > > > > > > > + * used while describing interface combination for each of t= hem. > > > > > >=20 > > > > > > I'd expect there to be a limit on channels being within a singl= e band on > > > > > > a single "hardware"? > > > > > >=20 > > > > >=20 > > > > > There are ath12k hardware supporting multiple band which need to = be > > > > > registered under one mac80211_hw/wiphy. This design is to support= such > > > > > hardware. > > > >=20 > > > > Oh OK, that was something that I didn't have in mind any more, or n= ever > > > > knew or paid attention to. > > >=20 > > > Would it work to leave the phy reporting pretty much as it is now, bu= t add > > > a 'associated_peer_radios' list section, so that each phy could repor= t the phys > > > associated with it? Then user-space, driver, mac80211 etc could look= up the > > > other phys as needed to get a full picture? > > >=20 > >=20 > > There's not really a good way to _do_ that short of creating multiple > > wiphys, but that causes _massive_ complexity in the stack (both cfg8021= 1 > > and mac80211) so we rejected it years ago. >=20 > 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 lik= e 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. > 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 wi= ll 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. johannes