Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3048311lqt; Tue, 23 Apr 2024 09:01:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiym5OXt84dAaRiwRpFnc2liffpaT1jXRbHV/QZJ+5TAxFfb+8aop1X/Jr0a1q1tlfYm4LmvhrP9acViDEj2143OOfQJyShlVhLs8KPA== X-Google-Smtp-Source: AGHT+IFL4DdJPcWzohIsq2KzncIU0MjWxT28pzy39kj1YyRGjA4oEmcTfcRoIdftftHxntfHKUFI X-Received: by 2002:a05:620a:49:b0:78f:ff6:f743 with SMTP id t9-20020a05620a004900b0078f0ff6f743mr15200618qkt.22.1713888105532; Tue, 23 Apr 2024 09:01:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713888105; cv=pass; d=google.com; s=arc-20160816; b=ISlZcElhlSdg6SJfDMN6jDZ6q4+hmkVikwwl9tts7Xmil6Tx2izlkD7PkOPnNxTnUr x5mPmq92cmNx6j+R63DYo/gpaTUEIp7tCHQ4GyKhvge5r9KtFrTtfZ5fGIMddYBUF8Cr jRAx6RBzm/UKzJB5kpvWGTwcvslRpAA2MNo8Fz+kD/x0vv9ZJTCRql0WOO2tl//ZUmRM V1H4zIMIf1d4eVzcKu32IddFSUWWcrhICMkDDxIj7WwGnjeMkRfqAUKWnKaiiC9u7XKD lowfyCtJ9tm3ZbFcV2xoYjWaz7BqDyf5wwC8z13HTpKSi44Li9XiykPAoh/XAKUNFL8u CFBg== 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=Ra7+mEfUpCtR0s5cPk0OFG/Py5B9+cSpYZgM96IxNV4=; fh=ee+FZxnLGfIVuGYvmQpnIeb+S0sSrcSchgWdzcNf1qo=; b=E5puYwuCMX8Sia5jdS0iXN3bRYOe/YqzHYtWpyo5KzOCIcKS9L4coAKJj1C5CTgt9E 5N1zgaD7ptlK240UvOHqn76dvPQ0oepW5K0ocQMJc26JoL4/1xokLR+Np+faIYGPMC2T SsRhS8IZZ1n8TBUi1nrXhchnDNkS2w8hiL9m+G3H0YoZbBur1cfr6ySpaqX327Q6a8PI v9K9TeXtbjG17z8KvnsOU0W8rCOROuoVzs69SXEix2hYIujdXeevDwUvAV10JKj0xgRl QPW7iTf5Vcl8DBhXKbt1elXw2X1ebxJ4uG/x7wntDFjG/txo7VjfVUrKUAXwui4E79Rn 5XCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CrmphLDQ; 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-6733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o1-20020ae9f501000000b0078d5fd6acf3si12862246qkg.403.2024.04.23.09.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CrmphLDQ; 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-6733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6733-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 45FE51C22219 for ; Tue, 23 Apr 2024 16:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E59E1350F2; Tue, 23 Apr 2024 16:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CrmphLDQ" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 5CDFA13CA97 for ; Tue, 23 Apr 2024 16:01:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713888089; cv=none; b=KTKBZzdjuDqWON4tvwcywef9q7mhxPCHNR1d+CYqBc7pxtBCsXUZKNRulLOyk81B7PeKOSkQfknox1YkG9X1Xy88+Yc1jfimhbC65DACy/OOJ9KVV6vpx+caeJB9x4oHacLTNR9J8DF5LGbzKspScnM3aOfQ5aQAArrqdwYEWAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713888089; c=relaxed/simple; bh=dj3jOKCrGIkNVnYDB28AtFbkH3umjF7XlfVkhD4h5fU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=L1A2lpZ8Pe7heRaIYEuDdahWnG5Q/r6+L3pEObb2LBGUV7kbI4K27zawyDQlLAQjP5xqFHB8xgBkupJveHc5xK4CiYSteOVhuxVv2pUhZhBLbLav7fnNgc4sLTe7i2CXZ8q5c1uEoZLM0nQYR2PPtEpJvtiVelhQCojISac1OOg= 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=CrmphLDQ; arc=none smtp.client-ip=205.220.180.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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43N7uKGC007932; Tue, 23 Apr 2024 16:01:14 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=Ra7+mEfUpCtR0s5cPk0OFG/Py5B9+cSpYZgM96IxNV4=; b=Cr mphLDQMDYT+rLotkOvJzl603cl46EEv0GUUNyOPwOgONzOf9AiPA96CB2ClJEV32 4qO1x1O1B5V5DbZkOcxScqIsoPkkjGLEt5cfaAQOWrgR7I+KLxdzp6JbX/Lyne8A Cf0BCM+LhmHMgIhi++5nMtrM0DVdzdAJS0Y7sWsiIFldnv5sZUeT4hb6o0GFTFJ+ y+hnMPmmIRpEyhAGv2fdaFaMr5DHLppuiOZizNduF5bb6JN3i3jHNuCo/BofGFOV 9vdACIp70eYK6ts2w/L81CDD19IxbfySdaVGpLerPaIW0u3pFSSi66x1FEFszJpg Z1VvxFdznF+nHznw2KSQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xp91fhdaa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 16:01:13 +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 43NG1CqY007531 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 16:01:12 GMT Received: from [10.50.9.167] (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, 23 Apr 2024 09:01:10 -0700 Message-ID: Date: Tue, 23 Apr 2024 21:31:07 +0530 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 11/13] wifi: mac80211: Add multi-hardware support in the iface comb helper To: Johannes Berg , CC: , Vasanthakumar Thiagarajan References: <20240328072916.1164195-1-quic_periyasa@quicinc.com> <20240328072916.1164195-12-quic_periyasa@quicinc.com> Content-Language: en-US From: Karthikeyan Periyasamy In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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: fEMo4wzjnc4vQ5BlJvJTI7q5plZHfMqh X-Proofpoint-ORIG-GUID: fEMo4wzjnc4vQ5BlJvJTI7q5plZHfMqh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-23_13,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 impostorscore=0 phishscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1011 malwarescore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404230037 On 3/28/2024 8:11 PM, Johannes Berg wrote: > On Thu, 2024-03-28 at 12:59 +0530, Karthikeyan Periyasamy wrote: >> From: Vasanthakumar Thiagarajan >> >> Currently, iface combination param supports single physical hardware. >> To support multi physical hardware, add hardware specific checks on the >> channel context creation and populate hardware specific parameters from >> the channel definition for which the interface combination need to check. > > I haven't gone through this patch in detail, but again like on patch 9, > I'm not so sure about the implementation of the XOR behaviour of > checking global and per-HW limitations. > > I probably wrote on the other patch that it seems it should check both, > but I realize now that doesn't make sense: After all, the top-level > combinations data must encode something that's supported _regardless_ of > channels, so likely only a subset of the combinations supported across > the different HW. > > But that doesn't mean that I'm yet convinced that the design in patch 9 > is actually good, with how it checks that depending on the 'chandef' > parameter. I'd like to explore other possibilities such as a different > function for that, for example. It could use the same underlying helpers > and mechanics, but it seems that might be better overall. > > Or probably better yet: explore an approach where mac80211 doesn't even > have to _know_ about the cfg80211_get_hw_idx_by_chan() and all that, but > just prepares the information in a way that encodes enough data to > handle that, which really means going from > > int num_different_channels; > int iftype_num[...]; > > to > > struct { > enum nl80211_iftype iftype; > u32 freq; > } interfaces[]; > > or something like that. > > > I was almost going to write "links" instead of "interfaces" there, which > reminds me that none of this really even works well for MLO yet. Not > sure if that's better addressed as a separate first step? > Sure, will post this change as a separate RFC patch. -- Karthikeyan Periyasamy -- கார்த்திகேயன் பெரியசாமி