Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1775851rdd; Thu, 11 Jan 2024 08:57:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAW/oqD9uH7H9cg3YVPMFJrYSIyOzu5X5f+g2RoQkF9MQeXgWBbIIQoHQT4xmXelYYj6cR X-Received: by 2002:a17:906:c192:b0:a2b:39a2:8ba1 with SMTP id g18-20020a170906c19200b00a2b39a28ba1mr877890ejz.24.1704992230912; Thu, 11 Jan 2024 08:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704992230; cv=none; d=google.com; s=arc-20160816; b=j2LdHszFje6QNBSG+LWcvAG9WsZvUe8CLfQPy1cRgDe7j9TXni844q4/nnkjkzT7ge L4uTG6tE3Hv5eDDMQGtG4OrMhfiG8KPY1u7XnmvbjZ0eKdGS7IhLVIgJBlqyWrtR/zGv 6nvuXFh0M0X9lKplt234kMvbgF60V5wlTs1cjNu2hJyGPKvmyhPFzypLjz3SklzdXmYU BIxJFhpWR0t+1iHbtZPXUq5I/+6m1cY8Z3iMxHr2DX3LjrWSQ75JkWdJfISLIGKkuJHl Yu3fWik+Vr3d4vi/eBkhZjT9E8hKi5B9aEXDsMTmgixYL0UIWlY5eWZK5BZ+oD4YekCg Imjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=N2sNZB4cSpH6FgygB6WuO8GBPp0dxDrjlQD69HUYZZ0=; fh=5Loe/KMRGg0bDQ6H+AcdyMYQPWeML9wlb3F/FW1zRWY=; b=zhKC3B7VbIsL0BfbVbfiSaMqITk1vTjYYHqJ+3aLnnAoxo9MRQfNqVyEIsdtQdvpuN za7GboZnIYRkQdI2ch/cK8Ca7ed/bW96QPWoDtbFVa3L2HhwQsAP40JyB4/SdEsWetjN uTUAjMbaP35hjVwkbxAQQa/9AWfUh2b0NUQd+a89BFfMcs9bUL9WSkZT0MaRyeCexZsV 8L0JL6Ni9oqXOCU5yNfNwCEGoTIw4U4oLLcUWlO7M2epk/UMbOfTI7zKWOFVk4ZLCAhN /AyTlZRCwg6WCVyU/cLV/zQarZXtO3rGX7KXt2UzDAWSUTEPg9RIO66dFNaeFcxfWTAj inkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KAlwe+tq; spf=pass (google.com: domain of linux-wireless+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f20-20020a1709067f9400b00a26e0209a9esi669425ejr.459.2024.01.11.08.57.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:57:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KAlwe+tq; spf=pass (google.com: domain of linux-wireless+bounces-1741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1741-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A85781F28A11 for ; Thu, 11 Jan 2024 16:56:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2B4D51C27; Thu, 11 Jan 2024 16:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="KAlwe+tq" 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 3E8DF5102C for ; Thu, 11 Jan 2024 16:55:56 +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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40BFnu8T032399; Thu, 11 Jan 2024 16:55:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=N2sNZB4cSpH6FgygB6WuO8GBPp0dxDrjlQD69HUYZZ0=; b=KA lwe+tq0wkTqq1IMELKwFHsexAhn1CTQ5Oegd6Shfo9gmx/xaEdpWvH7n2sNkfaFX fRnHfsrzEo8I6zlb7uWvCqBvvx7qP/b0zhwgei7G4xez79p5f92OOp+8ZijjG3+U 2b5ubk1UxlxqqiGV/opU5fFskL8tYHNhQLlkDNkIokf3WQ+UrPrsjGGpFbteTPfd AbCTzx/KUF8AMt1pdkpcaSIx1b28FCwfUZDunyMkIoRkyNQ6AaRKDkJTNVrgE/u6 CcUP9nq0q7j00aEar4u6Ajx5eaAOu7mVeHPYYvpfcSxCHaaOheTuI6y2sMpOAgRW w1WRFmuEIGrQVSxPHt6g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vjcsk15fx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 16:55:49 +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 40BGtmq8024190 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 16:55:48 GMT Received: from [10.227.110.203] (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; Thu, 11 Jan 2024 08:55:48 -0800 Message-ID: Date: Thu, 11 Jan 2024 08:55:45 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] wifi: ath12k: add processing for TWT enable event Content-Language: en-US To: Kalle Valo , Lingbo Kong CC: , References: <20240103050926.14115-2-quic_lingbok@quicinc.com> <170498978118.916301.14993323516499040896.kvalo@kernel.org> From: Jeff Johnson In-Reply-To: <170498978118.916301.14993323516499040896.kvalo@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-ORIG-GUID: wQH5HAMJSCX9ojm-UYRyW_9_taw2GgzE X-Proofpoint-GUID: wQH5HAMJSCX9ojm-UYRyW_9_taw2GgzE 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 bulkscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 mlxlogscore=859 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401110132 On 1/11/2024 8:16 AM, Kalle Valo wrote: > Lingbo Kong wrote: > >> When ath12k send TWT enable command to firmware, firmware will return a TWT >> enable event to ath12k. Through the analysis of TWT enable event status, we >> can easily obtain the status of TWT enable command. It can be more >> convenient to debug TWT. >> >> This patch works with WCN7850 and QCN9274. >> >> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 >> >> Signed-off-by: Lingbo Kong >> Acked-by: Jeff Johnson > > Fails to compile: > > drivers/net/wireless/ath/ath12k/wmi.c: In function 'ath12k_wmi_twt_enable_event': > drivers/net/wireless/ath/ath12k/wmi.c:6675:48: error: passing argument 2 of 'ath12k_wmi_tlv_parse_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types] > 6675 | tb = ath12k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); > | ~~~^~~~~~ > | | > | unsigned char * > drivers/net/wireless/ath/ath12k/wmi.c:367:44: note: expected 'struct sk_buff *' but argument is of type 'unsigned char *' > 367 | struct sk_buff *skb, gfp_t gfp) > | ~~~~~~~~~~~~~~~~^~~ > drivers/net/wireless/ath/ath12k/wmi.c:6675:14: error: too many arguments to function 'ath12k_wmi_tlv_parse_alloc' > 6675 | tb = ath12k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/wireless/ath/ath12k/wmi.c:366:1: note: declared here > 366 | ath12k_wmi_tlv_parse_alloc(struct ath12k_base *ab, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/wireless/ath/ath12k/wmi.c: In function 'ath12k_wmi_twt_disable_event': > drivers/net/wireless/ath/ath12k/wmi.c:6704:48: error: passing argument 2 of 'ath12k_wmi_tlv_parse_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types] > 6704 | tb = ath12k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); > | ~~~^~~~~~ > | | > | unsigned char * > drivers/net/wireless/ath/ath12k/wmi.c:367:44: note: expected 'struct sk_buff *' but argument is of type 'unsigned char *' > 367 | struct sk_buff *skb, gfp_t gfp) > | ~~~~~~~~~~~~~~~~^~~ > drivers/net/wireless/ath/ath12k/wmi.c:6704:14: error: too many arguments to function 'ath12k_wmi_tlv_parse_alloc' > 6704 | tb = ath12k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/wireless/ath/ath12k/wmi.c:366:1: note: declared here > 366 | ath12k_wmi_tlv_parse_alloc(struct ath12k_base *ab, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > make[7]: *** [scripts/Makefile.build:243: drivers/net/wireless/ath/ath12k/wmi.o] Error 1 > make[7]: *** Waiting for unfinished jobs.... > make[6]: *** [scripts/Makefile.build:480: drivers/net/wireless/ath/ath12k] Error 2 > make[5]: *** [scripts/Makefile.build:480: drivers/net/wireless/ath] Error 2 > make[4]: *** [scripts/Makefile.build:480: drivers/net/wireless] Error 2 > make[3]: *** [scripts/Makefile.build:480: drivers/net] Error 2 > make[2]: *** [scripts/Makefile.build:480: drivers] Error 2 > make[1]: *** [/home/kvalo/projects/atheros/ath10k/src/ath/Makefile:1911: .] Error 2 > make: *** [Makefile:234: __sub-make] Error 2 > > 2 patches set to Changes Requested. > > 13509671 [1/2] wifi: ath12k: add processing for TWT enable event > 13509673 [2/2] wifi: ath12k: add processing for TWT disable event > This became a victim of the interface change in: wifi: ath12k: refactor ath12k_wmi_tlv_parse_alloc()