Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1753401rdd; Thu, 11 Jan 2024 08:16:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0/48NonMnW6o+8AzEDX3zZvt6BHaRGNHbIMH93fPjcKYwj1z7VHY/4JcQI7D2RApoDZX0 X-Received: by 2002:ae9:e316:0:b0:783:2d02:7692 with SMTP id v22-20020ae9e316000000b007832d027692mr3344qkf.103.1704989788268; Thu, 11 Jan 2024 08:16:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704989788; cv=none; d=google.com; s=arc-20160816; b=kKTYwT0KXCLsx7HlK7qTF+lLFeFOoSvwPqfZH1HFwAEZCPmqscTKj0R+SSMfnIG8uZ Jhq6J1A4q/d/Osjr3C+V0R8F6HWEGBGU7rrTXAUe3+jRsILl/sr4rVUXFA+aL1PpjYdg RbK3oye6Cxx+sx1Gd/yltlM7mrn/rRedd2eCsd0vbHPf0jNYnyjCQFeeCywFDjR5nCgi iknJJL769+md6U33a+sx1U0uCRXLi7A7m+hZWkfFGSa7kStPP16Eja/XvLb0jpciwYGw CfLL2XsJohXRo5Pg7aJMZZIsAqRrg4Wg0G5a1KN37UvVgJnKmt0DiLFnHGsZGGIkZEIC qWgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=bIXfCdl40NOifOF/knJco4CrrkhkptGFhIRvkrGI6aE=; fh=KJluyo8GkdQ0PKVYci8ap2SDXDaX7tsW4mnPNVybQI0=; b=YfOBvx95bZxzvq5JgrTLJWcY61LzKniFR4c7pJ+IzEjuIRvfA9wo1p0Q8U1nAEhKnd rQudewQMT0YM90EbFTiuW6g8LQZesgiZHG4fER0LZ3cMwLbWjwygHlgvACJt/6/98mAd RmAdEEOLAtOQVaDOxagSbx70ua4zhIEKPMFglv8+BFK8s7oGgForWJfmf78o+iPgT8OL B5kDUvfQpUmXMH+qGXG3uo8aFCqOG6/Z/eN8gbPGHwCw5hBSEc+5JwdIJlPC5V1DIvxu YCYuqBP4l62vzkXPCOo250PXX1PUSsuAqbHHXEjivqQT/M7UzRlCTFgazDxqvcNK8Iwz MD6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lmjGXbOK; spf=pass (google.com: domain of linux-wireless+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j3-20020a05620a000300b007833b422ee3si1141106qki.669.2024.01.11.08.16.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:16:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lmjGXbOK; spf=pass (google.com: domain of linux-wireless+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 0C0CC1C225F5 for ; Thu, 11 Jan 2024 16:16:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F4B44CE09; Thu, 11 Jan 2024 16:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lmjGXbOK" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 73F354CB3C for ; Thu, 11 Jan 2024 16:16:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3879DC433F1; Thu, 11 Jan 2024 16:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704989784; bh=586IbbjpftFDYfmI3BMiCS90jeVviDYs5I9sZzMsMyc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=lmjGXbOK+8pKz6/XdJ0Nh46R9sVv4Wqjy8w7QFxuFZDhZ7vub6lcmTnYN3SxHkPu8 N6G/3lM6cAl4YRdJz7UmUxxIBUqlpHgOgrX8cIPw5mrbOcDNCAj3gK4lN3BEQVmiNi XaNx1FkBf6PAEC+wYpyanX27WhtyYqg0y6oUT/Wf0wSApf9cch5E/DNo0hy7bJvnZh gYkSWkw2Cg+rNCY//OrQBid3a3ltJD+lIy++HqxHFoj+SMLJ92Zt1CxbZjUaIi9XDb p+/M0MiSURqZk3C1+Cg70W78aeQBebofzLV2F8CC5imXIhstBNdXkQdgUv+Xi1iobP 7ZXJl3DcqnGog== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/2] wifi: ath12k: add processing for TWT enable event From: Kalle Valo In-Reply-To: <20240103050926.14115-2-quic_lingbok@quicinc.com> References: <20240103050926.14115-2-quic_lingbok@quicinc.com> To: Lingbo Kong Cc: , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170498978118.916301.14993323516499040896.kvalo@kernel.org> Date: Thu, 11 Jan 2024 16:16:23 +0000 (UTC) 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 -- https://patchwork.kernel.org/project/linux-wireless/patch/20240103050926.14115-2-quic_lingbok@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches