Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1633366lqz; Mon, 1 Apr 2024 12:05:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyx7eIG31aiM0DgwUh3VJ4X0TsSc9XFybqO7wKGc/+qmcCCq+HR4oD7qDRU6jGcUR3EwPOnFVpR3pgZhYX/mMEcYsU8lGGYLcShVCPvg== X-Google-Smtp-Source: AGHT+IFUpFQ8vRyi+SQ4/v1f4Qlc2QUCiQssvp9vWNTNqituspqlo9diDKbYsUPi8VRupYqRP0C9 X-Received: by 2002:a05:6102:4a19:b0:478:81f5:5b1c with SMTP id jw25-20020a0561024a1900b0047881f55b1cmr2387754vsb.24.1711998325002; Mon, 01 Apr 2024 12:05:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711998324; cv=pass; d=google.com; s=arc-20160816; b=xvKAaigTKv1UFGo5hc6if67+eR1jQGtuDhhNTroKonpyzkpQ3Hrj7BijIaS/yKRZhB tJchuR7T1wiRrSB5oovL+fofyoujZ5zq1FDmfLjCybRQnWH8XqDBOEcBYziOZEOSfAKh PsBHzt4O4j8HJ6etNIrJqS/iqiXviHmiPP9axt+9kebt//zHnhSwfjvAdlfOy5zo5hEV BqdapIAE/urmyp6taUcsg5mpw9Nsyax3j46nR40kDDpwglJ2WdUnXDTiQ9jhlmy937uy 3+pdwZ1IrEI/W26UvOMtAeFlj0rSPi2NNCjwSbWyw8z1SQyecoJx9/7E6SLPkSrdz8hO h7TQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=FGLusJQOCSfOOKs+6ymBHbhzYH4oVfodN0/MkusfypQ=; fh=AbPIYUmLJBwTg11YE+PxpxKzNq+ErB2KX7qIU43oOA8=; b=tEsVO6LTovEcpe8HO8LiK4LSJbIR95WYMos6zGw9DKlALUCqcb7S47YhMsWC08tkWh Xfp8CZ/Kn1lBXfKDeQ7wwirLRisJwkfD7ZiTAnA7J3GFpKa7BklXcoDfLvBIXf2LI2Cr 3miQ4iLAxMSfgfmhXETR6i2vmmJfZyLSZU9yt0MieMeHXqNLBNk7bzVjfWC2BYVKuCK8 +hJet+h8c2yr4ct1eaRPqAKIYsYvdJR3UUwh9TjEInE+GbH2/r62dE99s6EXpICVDPwy v5QRpiGDEaWZuDMIESVr/pR9uMpNxN+aEjP9TxD3ap5EGtCwkh45Mjxq2cntwqpAIDR+ vrRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IEI8IkLY; 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-5722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5722-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 j5-20020a67e3a5000000b004734200ca7csi1133447vsm.531.2024.04.01.12.05.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 12:05:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5722-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=IEI8IkLY; 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-5722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5722-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 A33781C21933 for ; Mon, 1 Apr 2024 19:05:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B100524C4; Mon, 1 Apr 2024 19:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="IEI8IkLY" 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 5EA1420DE7 for ; Mon, 1 Apr 2024 19:05:16 +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=1711998318; cv=none; b=WTVxXSBTzVQpIiX4V9lH2rJao4sXfSqV94GbYyLLEjpDdviJV50zswtRU1Wuc4HXPcedF1RLG977UIgGJtpA1/itLCENGXmKOKkxbVx+z1XnOi325hwjKMsJr+6yVVdzL5/iDzpQKKyTa0xQRooqBlL4klksbKzg6xY9etQPHqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711998318; c=relaxed/simple; bh=quSAqSKk+3DFkaF6xqwabAoCzd6IPOq89hR92uOnxqk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=h4zFrdk+7ohG+huzmX6cLCmn9uB7qJRRN+nkST2r4oeWka4fZe7uyFu/eMIGaY3g8cPx7Lpm+5M5dMiuYv0KD4T08O8PPfaWvs77Of4CbQp+DJ9BguxtfupdDjHwuzk5a+ZsOPTTYAtuB8fY7yctaWMmQBDM6bYU9aEp4lI+1pI= 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=IEI8IkLY; 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 431ATJdw020409; Mon, 1 Apr 2024 19:05:05 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-transfer-encoding:content-type; s=qcppdkim1; bh=FGLusJQ OCSfOOKs+6ymBHbhzYH4oVfodN0/MkusfypQ=; b=IEI8IkLYcbDpi9NGbCdBx+r 4aeWrrTh7R7duREPL88ByMr3f8n397w7CTd1Eot7fSvSywBcobFZ2Mkm/oSbvcBt INMgT6exJPF8z0Mk66nIog/w2RpwbqLP521lks/tMxdTAjy22tFMZumB25a8NG/u SJdkGIHXbqpSRLbu3WdL4ytF2PU4tNwdSTfnklU7wvbnIAoSX3mu7fAL9mw1ujCx jMHcVEZ7vz/kPlA7yuCRQav5vwrJD7wzV9urfuLPmJ8rnJivBtFqwwW78cX1gjWa yP7O92qeJo4sMq0l0j6GmsqM1oWrMgenu8BL8r9JIP63Tl4qnjtQBeaCdoLX81A= = Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x7u7f962n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Apr 2024 19:05:04 +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 431J54HD004683 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 Apr 2024 19:05:04 GMT Received: from hu-ramess-blr.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; Mon, 1 Apr 2024 12:04:56 -0700 From: Rameshkumar Sundaram To: CC: , Sriram R Subject: [PATCH v6 00/12] wifi: ath12k: Add single wiphy suppor Date: Tue, 2 Apr 2024 00:33:57 +0530 Message-ID: <20240401190409.2461819-1-quic_ramess@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: vHjDchS1YmsOrAHGkdtAbfX9Z2b0fKAM X-Proofpoint-ORIG-GUID: vHjDchS1YmsOrAHGkdtAbfX9Z2b0fKAM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-01_13,2024-04-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 adultscore=0 spamscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2404010134 From: Sriram R 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 bring up and operation. Note: Monitor and hw reconfig support for Single Wiphy will be done in future patchsets. --- v6: - Fixed print message typo in PATCH 05/12 - Modified ath12k_mac_assign_vif_to_vdev() of PATCH 05/12 to not have multiple jump statements. - Modified PATCH 07/12 to have whole cache allocated dynamically & fixed cache flush in case where we reuese vdev created on scan. v5: - Addressed Jeff's comments - Made arvif config cache to be dynamic in PATCH 07/12 v4: - Updated missing Signed-off details for patches. v3: - Rebased on ToT (added additional ar check in PATCH 08/12 for p2p) - Introduced iterator to loop through ars in an ah(for_each_ar()) - Addressed comments on reverse xmas tree declaration style. v2: - Rebased on ToT and dependent patchset 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 | 38 +- drivers/net/wireless/ath/ath12k/hw.h | 1 + drivers/net/wireless/ath/ath12k/mac.c | 940 +++++++++++++++++++------ drivers/net/wireless/ath/ath12k/p2p.c | 3 +- drivers/net/wireless/ath/ath12k/p2p.h | 1 + drivers/net/wireless/ath/ath12k/reg.c | 55 +- 6 files changed, 810 insertions(+), 228 deletions(-) base-commit: fe7e1b830cf3c0272aa4eaf367c4c7b29c169c3d -- 2.25.1