Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1421780rdd; Wed, 10 Jan 2024 20:51:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFs1KMLkk9f8ItLuBgGNTyEcoAHj8BW0bzJHWGxB8RCzG3UeVUyHF8UnNJOHxyKySWuMwK0 X-Received: by 2002:a05:620a:19aa:b0:783:428f:526d with SMTP id bm42-20020a05620a19aa00b00783428f526dmr249510qkb.121.1704948693553; Wed, 10 Jan 2024 20:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704948693; cv=none; d=google.com; s=arc-20160816; b=AGpBHviFnpGUF5uiE3JIA2HlANQssebQ5K9QCm8KYHa60Ev0Z79+W3p3ZAvhxpKXTU Ci4S4c3FaIIOCd85bYehBJnKtTq4b69Q8wtUxq87cwuAucVbR+8QsjSX74ERHDVcW+o6 JoBzOchy5cAiS/GDTTCLUTiYtu8W2XseAXeDd/4iodR7igGcU5VxVtbJvBUoCCVDSp+C ba9lRkIaqp9SIcjT2P4IUBL2If4Bwk34KjYTJSV04K1Me9nweK4Flivm+7xbAymy22R8 L0mcOsrMLy8YQzhFC7zmV5phLaSHK7/tEqk3qkrAGHi618Be/IlsV6be9GmbXfdKEJ1A 71DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=6FErVX5W/bUm/MFm/7oAeQOzrBCMaMPj+fJTtWpP9ZE=; fh=AbPIYUmLJBwTg11YE+PxpxKzNq+ErB2KX7qIU43oOA8=; b=ujvJerA8tlUheJYZ03n8QxWAdY5O80/rTMKW9QFitEbb44SWawF/oejT6KRdV+INER Oj9myxkGzNJYpiLO516mIwKcKz+cI0zLkRe9h0JE51IvVtgKtqCrfrwk1GYeF17AaD7I dryavxVOpQ1vH7w+GWNeftf0ZykvnTFyI85uXr6CzpKas12mKTLwJlbd/b8YlsPpO8LY gsX38llXqnnYChHjTue97KktX3udwpIB5uPDbElc7rrvbO0MW1/rB1izLW7Po1nTOxAm GCz3llVreLsaUlgHBjpJtzAVWkcxu11paPTwTrmBFXh4L4znCtl6X3v7XYYYmDac9me8 mNDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EoT+3U8d; spf=pass (google.com: domain of linux-wireless+bounces-1686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1686-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. [147.75.199.223]) by mx.google.com with ESMTPS id de33-20020a05620a372100b0078321fc9bd9si243953qkb.367.2024.01.10.20.51.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 20:51:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EoT+3U8d; spf=pass (google.com: domain of linux-wireless+bounces-1686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1686-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 40FC31C231B0 for ; Thu, 11 Jan 2024 04:51:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 200E71C31; Thu, 11 Jan 2024 04:51:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="EoT+3U8d" 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 46433184D for ; Thu, 11 Jan 2024 04:51:28 +0000 (UTC) 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40B40F1m026249; Thu, 11 Jan 2024 04:51:20 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=6FErVX5W/bUm/MFm/7oAeQOzrBCMaMPj+fJTtWpP9ZE=; b=Eo T+3U8dLsa8zSUHWKtvjMaNHtSaD3tM0XtJ2JW5KDiWCoU0P7ANe7pJXd/RSb1Ksi 1nVdHVIXAcIdTUbBujBW9eMaGlt7ePonFIpvybnbHXGZyDkxJHsfsdb+VyOqcKjq g6JpdupE97uq97Q3vpI7R7Cwtw28wEC+pWk3PdtPoXoOatvtD0R3nwdhbsLUovIE PIP3ElogMwxrPOcv9FqHknaNgemRESC7wlHyVffYtF2PHeGRJSibiNmJ1EZbWahD Q4msghhu4Ia/5gD+1YA0+Hwk4CSed2WCdRSL0cQR6LxSP/bO76yRJTZWjw0MFuB2 x55/WNAo2oaSMNDrvY4g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vhvwx1nks-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 04:51:20 +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 40B4pJTc017245 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 04:51:19 GMT Received: from srirrama-linux.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.1118.40; Wed, 10 Jan 2024 20:51:17 -0800 From: Sriram R To: CC: , Sriram R Subject: [PATCH 00/12] wifi: ath12k: Add single wiphy support Date: Thu, 11 Jan 2024 10:20:33 +0530 Message-ID: <20240111045045.28377-1-quic_srirrama@quicinc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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-GUID: qnM-VZMhey66zJ3ycxBSd1Sh8FK1EXX6 X-Proofpoint-ORIG-GUID: qnM-VZMhey66zJ3ycxBSd1Sh8FK1EXX6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 clxscore=1011 phishscore=0 mlxscore=0 impostorscore=0 adultscore=0 mlxlogscore=642 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401110035 With the introduction of Multi Link Operation (MLO) support in IEEE802.11be, each EHT AP/non AP interface is capable of operating with multiple radio links. cfg80211/mac80211 expects drivers to abstract the communication between such Multi Link HW and mac80211/cfg80211 since it depends on different driver/HW implementation. Hence the single wiphy abstraction with changes in datastructures were introduced in "wifi: ath12k: Introduce hw abstraction" This patchset extends the implementation to allow combination of multiple underlying radios into a single composite hw/wiphy for registration. Since now multiple radios are represented by a single wiphy, changes are required in various mac ops that the driver supports since the driver now needs to learn on how to tunnel various mac ops properly to a specific radio. This patchset covers the basic mac80211 ops for an interface bringup and operation. Note: In addition to sanity on single radio QCN9274 and WCN7850 the single wiphy changes are tested over "wifi: ath12k: QCN9274 dualmac bring up" where multiple radios in the dualmac SoC are combined and tested. Monitor and hw reconfig support for Single Wiphy will be done in future patchsets. This patchset is dependent on "[PATCH 0/2] wifi: ath12k: Introduce hw abstraction" Karthikeyan Periyasamy (1): wifi: ath12k: add multiple radio support in a single MAC HW un/register Sriram R (11): wifi: ath12k: Modify add and remove chanctx ops for single wiphy support wifi: ath12k: modify ath12k mac start/stop ops for single wiphy wifi: ath12k: vdev statemachine changes for single wiphy wifi: ath12k: scan statemachine changes for single wiphy wifi: ath12k: fetch correct radio based on vdev status wifi: ath12k: Cache vdev configs before vdev create wifi: ath12k: Add additional checks for vif and sta iterators wifi: ath12k: modify regulatory support for single wiphy architecture wifi: ath12k: Modify set and get antenna mac ops for single wiphy wifi: ath12k: Modify rts threshold mac op for single wiphy wifi: ath12k: support get_survey mac op for single wiphy drivers/net/wireless/ath/ath12k/core.h | 40 +- drivers/net/wireless/ath/ath12k/hw.h | 3 +- drivers/net/wireless/ath/ath12k/mac.c | 1014 +++++++++++++++++++----- drivers/net/wireless/ath/ath12k/reg.c | 62 +- 4 files changed, 886 insertions(+), 233 deletions(-) -- 2.17.1