Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1299770lqm; Thu, 2 May 2024 10:23:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpoflGGJlDaCiOTdBOWtTZWnwnsza3dJm5D4yVQHmY9YVBmfKQLLbypa7do9LFvEhv7itWaaabwXHHGQrRsX/O/YT3HOwptXDJ1rw4zA== X-Google-Smtp-Source: AGHT+IF1gdP7p56d/Opu6jOrjTep1jk3/nVdMdIFwwrDFM1sg+yIf2by3+72NZ9rD6RnVvkpxGbe X-Received: by 2002:a17:903:11d1:b0:1e3:f27c:457d with SMTP id q17-20020a17090311d100b001e3f27c457dmr357329plh.65.1714670585866; Thu, 02 May 2024 10:23:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714670585; cv=pass; d=google.com; s=arc-20160816; b=r3mPDOwE454IVO2Z/DNYm4QDn4vMuBcCtQ/TUq8/EV9IAK7Iw0rgFPausx3t9KeR9n ZbYLWrVV14faNcBC9hf+3jtuiw4G0rjl+TBprlN1ONYPJKJJcFaSUQNaf4epJDoIHvct VrgLG/DJH+TSwJzexagpBEtMG7OqXwyrcKxe/fNOnwHM90iem/c8IIcYbAhm/XMb+UBa X9XLz+ddaqjBNCE28m/LrV2wzpga9XoLOouCcA2724P3odnA4v53M9L9H+D3vInelAa/ yeihv4u4z8DkCly5VRuMnMBAzwPjDJIYK8CQ4BZ7/iE7l52rvk/yce0WuOF/mqcF+JVR 22rQ== 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=K8xVd/U4u50AnhxZsSwFUZGn1XoKcHQlGRW10kowWd8=; fh=AbPIYUmLJBwTg11YE+PxpxKzNq+ErB2KX7qIU43oOA8=; b=Xcn8wY1IRb7ug3pSeopNwtgWdFjHeVSFn58PW+a5TUmXh2th5ZpMC2m//mHUjH8ZLT jKHyiBqC/3PgKY6zLN9lYTQRevd0jzze4L5LGU9p4TIUz0adOdv4/Sadzh0X6SZlt/ls EzEQ32uy6TabxZgiYIpL7xZaZPFTKWKlrqdEQ9IZEmrnoUBT18YndVt9FnGjr7eR09M/ cFYsS8gKYJVS4DoFsAP3e+WwZrM0Oc/sLSBGu6b7lx+DO7CbGyZZyVjVdtfAGecvfkwG dAIutI80UCUuPV1sAgMzaE74PiV0q42YCzrn6xe1MVedRzapHkvl2wcnU9kfjy6TcV+r cIdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LEaTXK5N; 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-7118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p11-20020a170902e74b00b001ec9b4f7ab4si1376251plf.30.2024.05.02.10.23.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 10:23:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LEaTXK5N; 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-7118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7118-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 31998B20BF3 for ; Thu, 2 May 2024 17:13:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68A3F16F90C; Thu, 2 May 2024 17:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="LEaTXK5N" 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 C46F916DEB2 for ; Thu, 2 May 2024 17:13:06 +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=1714669988; cv=none; b=enTyAhB0cE29Dy6wjMS2mratjPgRZC0DoFhweCjSyiKSnqhMRqJWUbTjJd4yqWF8Gys15qU+VPNZTeAVCaRqF2O0VNXI+Fv4iWSguonZb2I0Md70b1VO6b2Grummk9OViqsfmO4kM2xmbYrdB9l5NCvrOim0KDQ7coo3x8JQmA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714669988; c=relaxed/simple; bh=rYjfGhT5ZlDXu29pE1PxpKMs2Ew5St9Y0cbH0LIB5RY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jQJ0CKMrZ1UKH7APGPtZ+3WqPIQL6nYs68/xueWEmAtPW6lSnknsKACFe86uSftfdSPV91V3kT77rgVC3AuAhVOGbqfozgF5bXHZ6j8xCkcweF+L19tSKPQDTQa5hGxnJTdWST/RA0ceAcOl23O/w48btHNUOQJIwCf5L00vGRI= 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=LEaTXK5N; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 442CRTMX003143; Thu, 2 May 2024 17:13:02 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=K8xVd/U 4u50AnhxZsSwFUZGn1XoKcHQlGRW10kowWd8=; b=LEaTXK5NROeEJFjlIemOnGA lNfjl/h2+FbhXkD18h2v4YGofAATM6DCMAX1+mxk5IO0ZLGQ8BzqTx4IIOfmINEi KFFgZt+aOLu+myn1IwBFtPAdQLj9Piq+5o0fsmtTa2L7BO+0Y3y4bo4gYPVg7LmX 3LI6jZhG5bmDdtfLFEsmA3BS2zgozJ8OpXjoPPzZf/1i1c37s3CsUmml0bI9kqs6 8uPUHSPlAfUN4cGw50cUZJlLJwEgOapf6yijp5ervjoMRBM3R0xbYB64yUf5PDmh vQi9TRRA0z821def+0/gNprwBxxBkK+DoAklJGkrL2PlG8VqTbOvvxyY8/G4Ppw= = Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xv8vs8wm3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 May 2024 17:13:02 +0000 (GMT) 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 442HD18e000854 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 2 May 2024 17:13:01 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.1544.9; Thu, 2 May 2024 10:12:59 -0700 From: Rameshkumar Sundaram To: CC: , Sriram R Subject: [PATCH v2 0/3] wifi: ath12k: prepare vif and sta datastructure for MLO handling Date: Thu, 2 May 2024 22:42:37 +0530 Message-ID: <20240502171240.927155-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-ORIG-GUID: ywppCiP7GWTTmTMyxAdP5_n10gjNjeMW X-Proofpoint-GUID: ywppCiP7GWTTmTMyxAdP5_n10gjNjeMW 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-05-02_08,2024-05-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=699 suspectscore=0 priorityscore=1501 mlxscore=0 spamscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405020112 From: Sriram R To prepare the driver for MLO support, split the driver vif and sta data structure to scale for multiple links. This requires changing the use of arvif and arsta to per link and not per hw which can now comprise of multiple links. Also since most configurations from mac80211 are done per link, do refactoring of the driver functions to apply these configurations at link level. Add the required locking changes to synchronize the usage of these per link objects. --- v2: - Rebased PATCH 1/3 on ToT as b0afabc4d7e0 (wifi: ath12k: add support to handle beacon miss for WCN7850) has introduced few APIs that use arvif. Sriram R (3): wifi: ath12k: prepare vif data structure for MLO handling wifi: ath12k: pass ath12k_link_vif instead of vif/ahvif wifi: ath12k: prepare sta data structure for MLO handling drivers/net/wireless/ath/ath12k/core.h | 84 ++- drivers/net/wireless/ath/ath12k/dp.c | 21 +- drivers/net/wireless/ath/ath12k/dp.h | 3 +- drivers/net/wireless/ath/ath12k/dp_mon.c | 14 +- drivers/net/wireless/ath/ath12k/dp_rx.c | 16 +- drivers/net/wireless/ath/ath12k/dp_rx.h | 2 +- drivers/net/wireless/ath/ath12k/dp_tx.c | 9 +- drivers/net/wireless/ath/ath12k/dp_tx.h | 4 +- drivers/net/wireless/ath/ath12k/mac.c | 861 +++++++++++++++-------- drivers/net/wireless/ath/ath12k/mac.h | 9 +- drivers/net/wireless/ath/ath12k/p2p.c | 17 +- drivers/net/wireless/ath/ath12k/p2p.h | 2 +- drivers/net/wireless/ath/ath12k/peer.c | 7 +- drivers/net/wireless/ath/ath12k/peer.h | 4 +- drivers/net/wireless/ath/ath12k/wmi.c | 12 +- 15 files changed, 684 insertions(+), 381 deletions(-) base-commit: 25a42664a2e2587f2582e0717f2a71d0bdcc4be0 -- 2.25.1