From patchwork Mon Jun 24 09:53:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaradhana Sahu X-Patchwork-Id: 808682 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 C4A6A130AD7 for ; Mon, 24 Jun 2024 09:53:28 +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=1719222810; cv=none; b=ExTLOILAc+ILJfzYwAJSeUX+ohkevTnkiA1C39K3m2cSk4rnInTHpHIPQ6FGI9jj0bnK/+ulHDo7ok76Zyqr+TE4KqHulomwEJ/jsOPNTGyVgXvOYJjR2PIbXUIY6cjZG9gnAEjDGuhN+uZxTNn/UDsQDxUyJCo1SezfceEbLFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719222810; c=relaxed/simple; bh=2eXd1fHZGZtX8qaSYC1g3c5/B6oQ6uQXMTUG0B61lJU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SC8uGC95rxaiH/fljJ1b+pSQ0fbRYdL+ZqGm0sFf3KuAPsEKVHRFn6Inh2nUnWppk6hfDNydLvWYAVaJp2uy7sdejTde+vPg9c9601aWVSG502Lr//8JLQREEJ+rRyZMQy114JGnbis2DfrTWcvzExrLFAQvX6Jrklu19hgsvS0= 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=nosQvpb6; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="nosQvpb6" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45O8YncW018381; Mon, 24 Jun 2024 09:53:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=u2iUs7cOy3MCP42L5GjQ8g ig46tLtGOpJZ8AI3mIq8g=; b=nosQvpb6gNdbwkUqY2qa5tj6wgPqMqD9pvNltb 4SDO6WRcPpEHLVeT19ATjHraqZi0YF5rvKTn9+0bLB0jA42a2Sc116MY1rFUGXLi QcZ7Ui1ZrX1PlnyY1gUiaWD97skoEnuj/QzOuB7+cWSRKlgFfmtWm+MI5+6A0jxZ Xk/tJYkT6EV20y4zFbxUVWgpLtabw5LFRRZ8W4rJbJ7E81fIdgWsf/D1Y3wO1JOh w4Si6iXOldZtU+HGR4FAM1h1xTysJ5s0iSc2QXnSQtAJM+mqUFSsDs4e6GOi1J69 AXeWOy5IY1SwkwdLgU53LTl4XX91Kr3b7HyjgyAkszQgfQ3w== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ywkyn3br7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 09:53:24 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45O9rNd2023204 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 09:53:23 GMT Received: from hu-aarasahu-blr.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 24 Jun 2024 02:53:21 -0700 From: Aaradhana Sahu To: CC: , Aaradhana Sahu Subject: [PATCH v5 0/4] wifi: ath12k: Factory test mode support Date: Mon, 24 Jun 2024 15:23:01 +0530 Message-ID: <20240624095305.37189-1-quic_aarasahu@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 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: MOrUO7li-96x60VMXE0UzA3lVXcUw7hm X-Proofpoint-GUID: MOrUO7li-96x60VMXE0UzA3lVXcUw7hm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 mlxscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 spamscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406240079 Device is booted in factory test mode for calibration. The commands are sent from userspace application, which is sent to firmware using wmi commands. Firmware sends the response to driver as wmi events and driver sends these events to the application via netlink message. Also added changes related to correct pdev id access for fw test cmd. Aaradhana Sahu (3): wifi: ath: create common testmode_i.h file for ath drivers wifi: ath12k: export ath12k_wmi_tlv_hdr for testmode wifi: ath12k: add factory test mode support Rajat Soni (1): wifi: ath12k: Fill pdev id for fw test cmd --- v5: -Updated copyright -Fixed line length within 90 char v4: -Rebased on latest ToT v3: -Rebased on latest ToT -Updated Tested-on Tag -Removed second parameter of ath12k_core_start() -Updated copyright v2: -Rebased on latest ath ToT --- drivers/net/wireless/ath/ath11k/testmode.c | 78 ++-- drivers/net/wireless/ath/ath12k/Makefile | 1 + drivers/net/wireless/ath/ath12k/core.c | 22 +- drivers/net/wireless/ath/ath12k/core.h | 13 + drivers/net/wireless/ath/ath12k/debug.h | 1 + drivers/net/wireless/ath/ath12k/dp.c | 3 + drivers/net/wireless/ath/ath12k/mac.c | 15 +- drivers/net/wireless/ath/ath12k/pci.c | 1 + drivers/net/wireless/ath/ath12k/testmode.c | 423 ++++++++++++++++++ drivers/net/wireless/ath/ath12k/testmode.h | 40 ++ drivers/net/wireless/ath/ath12k/wmi.c | 39 +- drivers/net/wireless/ath/ath12k/wmi.h | 21 + .../wireless/ath/{ath11k => }/testmode_i.h | 54 +-- 13 files changed, 636 insertions(+), 75 deletions(-) create mode 100644 drivers/net/wireless/ath/ath12k/testmode.c create mode 100644 drivers/net/wireless/ath/ath12k/testmode.h rename drivers/net/wireless/ath/{ath11k => }/testmode_i.h (50%) base-commit: cac9bfd02678adbcca9a7dce770609b9f7434d37