Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3682514rwb; Tue, 20 Sep 2022 03:14:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pXi1hGR86nYmFVspfj9Vu08W+WNzaaG1D2qEBdL93lVt7YA24sqlY9IyjcCKZNmHxG88q X-Received: by 2002:a17:907:c15:b0:775:df03:3f06 with SMTP id ga21-20020a1709070c1500b00775df033f06mr15959270ejc.89.1663668857214; Tue, 20 Sep 2022 03:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663668857; cv=none; d=google.com; s=arc-20160816; b=NJ7vA227UTxKX7ODROhtk6IZiK/yhRyM5P8+qgMEkRYMBq/9m1ra7Gpx7rt/r4Mofx Q/tpaIgDyafdbw5jBWivXn70X+BkVK/mfmIwi3OwPJTQxTsQ8tpObsuJMp9ugYoPcXzK Hv0m0nLUlka1CN/I6sqJBFClN7EFJNIBjqGm8d/s8yiv+rG9bMMPNkd6d2tD9pYqv6N2 DBeKrJTxn40PGTDlDKn5RoSvYQBYzOLk4QUKOiYDuWvaBWspzzElgSdIAVXb22p2VQmj daCYxVxDV9SgjqIAnL/WqSvVkArbg0JM+DtUo4rHgiclBgTsO5KGzkXHsONzEDSAa0m3 WlmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=8H4nC73LoJ4Ax2XLXp/WsymmXkb/FvEhbXuD3IIf+4M=; b=y4bdYm4O1vKPjVTj0NP83udPhs7gr8y7umSwjg8Hl5GLcXlW700SwQLE30XmlFRy22 CUjWYNH7k65j5vyGoMR0pU8arxqVJ2JXKL4UR17TK9xiD8TmLd3osj+TjhcUwGdyobv7 AOh02xRBqWWun0Q4biHA85knYbfI0rB75vPb54pg5SzCF1/czzar1MkE+hvbTFiAKbTG rK8BmfW3t3kx0jCwZ9WcWVfy0FcVlKu6zCYQoNnU96QsJbn+Wdov8xUBrJ5TsqOji90U 7kcI/8cFy7cRCZ7FFVzv/GXgoV34KB+8AXzaz0VUA0Y/BhMU4g4M7OXxUFgVYq+jENAv q2qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=M9j3wUGg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a05640212ce00b00447f4482f9asi1045227edx.443.2022.09.20.03.14.01; Tue, 20 Sep 2022 03:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=M9j3wUGg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbiITKLD (ORCPT + 63 others); Tue, 20 Sep 2022 06:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbiITKKw (ORCPT ); Tue, 20 Sep 2022 06:10:52 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A31AF696D8 for ; Tue, 20 Sep 2022 03:10:44 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28K7xnfu003508; Tue, 20 Sep 2022 10:10:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=8H4nC73LoJ4Ax2XLXp/WsymmXkb/FvEhbXuD3IIf+4M=; b=M9j3wUGglzzaSOHQnMyLmj8X7WYhF6xTXNlbVSJ+ufrMSuusKDw1T3PmWZtHARk8BauZ TNWoAqP9SOCGzaYDX4LYSmhPHGHuM27AdENHvcoayD5X0224kIJso5E4rKHswNH2ild3 tM/hNBQ3GZkGFkzMtlfe57VNRqYjwDXho0xtju8KtwIvjjU6Eqp8qnk0YKu2c6aM3/l0 +aMZC9Us2h8cU7XMxQNeV0ZRbPZMtr+E53FLUObzM1ja2galseghRxfcL6zBY0PBigYD 2yfwMHXXZJGGPOZvaRSZNewojfbkIF4+aqh5fwWMefMk6AOPElpUzBxTRCIirlY+CDS8 rA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jpw78anq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 10:10:41 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28KA5eF2029178 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 10:05:40 GMT Received: from CDCCSTEX0180100-LIN.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.986.29; Tue, 20 Sep 2022 03:05:39 -0700 From: Vasanthakumar Thiagarajan To: CC: Subject: [RFC 0/4] wifi: cfg80211/mac80211: capability advertisement infra for multi-hw abstraction under one wiphy Date: Tue, 20 Sep 2022 15:35:14 +0530 Message-ID: <20220920100518.19705-1-quic_vthiagar@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain 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: xXHI-WkKOZjwekPcW12SuIWYvngfm1ad X-Proofpoint-GUID: xXHI-WkKOZjwekPcW12SuIWYvngfm1ad X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-20_02,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=2 mlxlogscore=163 lowpriorityscore=0 spamscore=2 impostorscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 mlxscore=2 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209200062 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org There may be hardware design (ath12k as of now) supporting MLO across multiple discrete hardware each acting as a link in the MLO operation. Since the prerequisite for MLO support in cfg80211/mac80211 is that all the links participating in MLO must be from the same wiphy/ieee80211_hw, driver needs to handle the discreate hardware abstraction under single wiphy. Though most of the hw specific abstractions can be handled with in the driver, there are some capabilities like interface combination which can be specific to each constituent physical hardware. This patch set tries to add an infrastructure to advertise underlying hw specific capabilities like channel and interface combinations. Some of the todos - Make runtime iface combination validation logic be aware of this extension - More than one concurrent monitor mode support each operating on different channels under one ieee80211_hw - Mechanism for each underlying radio specific configurations like txpower, channel, etc. - Should we make the capability advertisement changes to mac80211_hwsim? - Should we enable some of concurrent operations like allow scan on each physical hardware concurrently? Vasanthakumar Thiagarajan (4): wifi: cfg80211: Add provision to advertise multiple radio in one wiphy wifi: nl80211: send underlying multi-hardware channel capabilities to user space wifi: cfg80211/mac80211: extend iface comb advertisement for multi-hardware dev wifi: nl80211: send iface combination to user space in multi-hardware wiphy include/net/cfg80211.h | 130 +++++++++++++++++ include/uapi/linux/nl80211.h | 78 +++++++++- net/mac80211/main.c | 54 +++++++ net/wireless/core.c | 275 +++++++++++++++++++++++++++++------ net/wireless/nl80211.c | 118 +++++++++++++++ net/wireless/util.c | 18 +++ 6 files changed, 629 insertions(+), 44 deletions(-) -- 2.17.1