Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1882165lqb; Sun, 26 May 2024 23:58:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtQlR0diSqMeqmoH5iOG7OQH2VzhbpEV/g3n1oYvt58CuThsj09NNIQeOOFr/sInEBENHnxDleN87QKZ4IYrq+22eRa+o4SU3WU+kngQ== X-Google-Smtp-Source: AGHT+IHCgycXiO5ixzOqjWdJxJngDl9MHP2CM1nkdjqaTqZa4bJC5YW4cuqo1HxtINj59262WMsZ X-Received: by 2002:a17:902:e5c3:b0:1f4:7bf1:71f8 with SMTP id d9443c01a7336-1f47bf1759amr37782015ad.5.1716793123932; Sun, 26 May 2024 23:58:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716793123; cv=pass; d=google.com; s=arc-20160816; b=FiaeXwuTtMHTc1oKhgR4kJrEPWPXbMinYQtDx21fbsa6hU0g2SZeinkEGBELkO1qJ/ Bprqsji0f/IjRY53yWT9fSqp4/IhSLwRBY9bZfUJdMm+gS3i9t0pHfoM6T5CjnwAtynp dFgBipK2+4YhEB3CqpXkx38hB76TBGPYpQV7NmqtI47uG9CIWy+YmH5N4jvmtYjoz95u pT6fGFjJSGh7jlRiZ/ZYZONZIXkJiusBfaccNiOe8h/AQT21oJkxdQ3PrOEt4ftZlUZ5 Cqmo+UH+cDDuzdofx1rxWiMKWFCW/ptA8iKS5K6pwdU1i+ok7v8iVwup6hsHTrhmoSk3 vCpg== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=qbWT0OYBL0sXmYs9/6wOU9J+1siBBa0oeVWQYv48oR4=; fh=3QTCeCrt4cn224ZwlRdcltKr4IdW+HjzHmb8lUXpN70=; b=AUFghgzGPwgu4oARigrUbouM0DX+3vU1dxALa2luDNY5df1fBQrXQ66wTjCJ7Un5go E0/ZszwM30NkCfn8z0xQze/KQfnCut2rtPNAqg3AQmNJhSuU6IRWigkevpawH1aRfzo6 PfuJipKTL7wSrY3P+iLPplg5QywpUhJw+r1cy5i5y5b7IuFNhrI57P+IqVfZ6tU8iwtV CrN7Jge2QAXamxXCkMn+2WLULKwAotiw46TpiuQC9uuQ1inkQ+tO6wqd2/WYtqbp8QvR ExPo/rrFR7/0vt9k4h2gkN7D3XfYqS5Noxq88vxpnH+PAY5AGHDyQdx0bZ98Qgs0ROoj VbyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hGUQ0lkB; 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-8074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9e7e2bsi55885915ad.578.2024.05.26.23.58.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 23:58:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hGUQ0lkB; 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-8074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8074-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 886F52812B6 for ; Mon, 27 May 2024 06:58:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CAA7179A8; Mon, 27 May 2024 06:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hGUQ0lkB" 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 7B1F322318 for ; Mon, 27 May 2024 06:58:33 +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=1716793115; cv=none; b=CqN7vf4d2V/8JJm9a9S1kQNbUFuhJCxLga28qzaAH1kuJlBRU95pVkjr7bOF1FWo3VgeNMrrJWTR4zZGAjcRvFBD7Ys7RINzl1EGQ4XEMegkHpu2guxfU94e70f7kPFyKU2FCO3EINuTw2G5fj3VH3dZjFSI9T9WXn8SlKzpe2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716793115; c=relaxed/simple; bh=AsvJeoAUbLdLnnVT7Lb1OpYCEygIux051IDIi31sn64=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=nmwYK0INbFZwHkrUsd8Y+qb+JvOYDb6gPubFLcqt6e2Kj2cO7hhELbLpfmipXYA+vH7RJydeWQ45vmnzn1p7AGdFNk49GOepZTwliaQ1wrQ0rBg8eEwQIA1fDmbgvgH4jpGolgsEGWI4k050mPyCf0jr6KHLT1G98w2mJZWDjPs= 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=hGUQ0lkB; 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 (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44R0j27f024686; Mon, 27 May 2024 06:58:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= qbWT0OYBL0sXmYs9/6wOU9J+1siBBa0oeVWQYv48oR4=; b=hGUQ0lkBnGF8JLM2 29iB6HSmCjDluakcMpJQEjxsm67id5yeMyObVqa3cBAaZXCiTBrXcStEo/uCHNxe FcZ+snFYv2PMrOBkSaU754ds2QmpAv5GZIJqfWXClLZc7WN6ETwof3POOaH6oJdH NxQCUMc1wjNqDxvMhyrUIjm2BFIoPCPUY88GkckSmlqfynmdwUs+3g5TLBs3a1ZB uXDvbEseSg7pL+VHNEEQqf/Oodj9r2tyLBHFlCNwhp9LSaU5PZh5sHGqexA+KcTz 8zJfUnIFyPVAVOCw8l+j67d+Un5UriY5VNEtPPZ+J4QQ9pjabmsfqRc39oQSsOdz ryqr9A== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba2natrj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 May 2024 06:58:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44R6wMBM024443 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 May 2024 06:58:22 GMT Received: from [10.152.202.18] (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; Sun, 26 May 2024 23:58:20 -0700 Message-ID: <72b97a7b-7d8a-46a6-a613-8461b5480e3f@quicinc.com> Date: Mon, 27 May 2024 12:28:17 +0530 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 00/13] wifi: Add multi physical hardware iface combination support To: Johannes Berg , Felix Fietkau , Karthikeyan Periyasamy , CC: References: <20240328072916.1164195-1-quic_periyasa@quicinc.com> <0dcc9afc-98ed-4f58-a368-79a5242a5bec@nbd.name> Content-Language: en-US From: Aditya Kumar Singh In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-ORIG-GUID: YVSDR1laGjAGjpklA7lR03YLssag6r6X X-Proofpoint-GUID: YVSDR1laGjAGjpklA7lR03YLssag6r6X X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-26_09,2024-05-24_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 spamscore=0 phishscore=0 suspectscore=0 mlxlogscore=657 malwarescore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405270055 On 5/23/24 22:11, Johannes Berg wrote: > On Wed, 2024-05-22 at 16:55 +0200, Felix Fietkau wrote: >> >> The key differences are: >> - Only band bitmask and optionally frequency ranges are provided, so no >> per-radio channel list >> This is easier to track and vastly reduces the amount of data sent to >> user space in the wiphy dump > > That makes sense, though in your RFC I'd probably remove the band bitmap > thing, and make the frequency range not be optional. Perhaps in the > kernel it could be filled in by cfg80211 via a band enum (taking > lowest/highest frequency in the band's channels that are there), but I > don't know if I'd want to have to check with this all optional > throughout the kernel and the userspace advertising API. > Agree on that band bitmap thing. >> - No integration with ifcomb. I don't really see the need for that one >> at this point. It can easily be added later if it's actually needed. > > I mean, sure? But I think that's being lazy, I think everyone else > thinks it's actually needed. I just got a question about interface > combinations being broken on iwlwifi because we advertise AP interface > type in a combination with two channels, which can't be right. I'm > fixing that, but actually it _would_ be good to know for hardware that > actually does physically have the capability to operate on two channels, > and then have the bands etc. > > So I do think (some) integration with interface combinations is needed. Yes! At least for radar detection, some changes are required. Grouping 5 GHz radio with any other radio, we will need it or else current interface combination check will fail to register the single wiphy hardware. We have a check like this in wiphy_verify_combinations() - /* DFS only works on one channel. */ if (WARN_ON(c->radar_detect_widths && (c->num_different_channels > 1))) return -EINVAL; And if the proposal is to keep c->num_different_channels advertised as 1 only from the driver then in [RFC 2/2], this change - + if (ieee80211_num_chanctx(local) >= ieee80211_max_num_channels(local)) + return false; will never allow to create a channel ctx in any of the other radios except the one which is brought up first right? ieee80211_max_num_channels() uses the interface combination advertised value from driver, so that will be 1 and hence if you bring up on 5 GHz after 2 GHz, that will lead to 2 >= 1 and hence if condition will be true and it will return false. Then 5 GHz bring up will fail. So not so clear on this approach. Considering above points, feels like under any situation without making interface combination changes, simply it can not be done. Some or other issue might pop up later once we try to enable all features in MLO as well which currently exist in non-MLO case. :)