Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2648576rdd; Fri, 12 Jan 2024 17:30:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfKcKi2TpkQ+zASyZ0RFRQq09Ke2asBdoWAUDO+6LE1rrHxVdcrtro+izHSGEkgqccGEJ8 X-Received: by 2002:a17:90a:fe8a:b0:28d:fdab:dde2 with SMTP id co10-20020a17090afe8a00b0028dfdabdde2mr1944592pjb.94.1705109432396; Fri, 12 Jan 2024 17:30:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705109432; cv=none; d=google.com; s=arc-20160816; b=ZDFhqmHTclNvCi8Q1JUHE2G/tWTtmJQNdYrjYrjiLP8rjwLIb9kQd9dlBT3LWqFeYd MpYmI8qmKtG4W+EIww5WPbGg1oQKUTcO56QVGiRR2XKM/07sH5UOt6ub9up21OAi9+5y FpMs4y55BegUWTZBjwsLN55mpiiFq73XpejKi12JIOYh9/s0rWctb+PK9t4AIIO5/zgg dS2MNVqcSMOeY5/dY2r/xiJEziwWRj3yz3wbrAIfpMXtq3kZmGj3mB4oBXNeYN8AHab6 k7C9caxFsxfFYx26cKd+kgcc3WBL5dsIRfih+MTFTzPgks2FHAIYym8WV/IRsxs8r60I motg== 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=Zwo3xPgxETfWvugTHwtecBLkVTqbG7wnc2NQwFCTSLc=; fh=Ahzw9WpusEFEYnVn567yjdM3oQ5tWKzSXN4GqjStBc4=; b=vwVlljBQmTAvssBiDZRoRB9QFd55j2I0N0HMQ/Et/z3uzgAPOeKQh1UzdLuIgikybT KTzmmv1eLMswNJjoU+eA+ET8w+YDCAVw/Ez7ukTUOqWeD6vJeGzIxqjNgp8oRNFCRt3R k3+xY6//qW6zfl8e+S4gZQSPPipjGm2GsmXUShtsfAleytJQ/OOdZ9VPvXDuHKCv18Ai 6pFH109wqlXdxgYwqV+ZuP0Qc8snUCTHAHoIQtY1/ScQGpj8l4uKiVP6OCWSGD/jeVux EbdnoBecLWP2agcsWsTkHwHoL/8b3lOBaEHBMcuL322mIRXWKyfWmzHIb+DiOAh75fzE uu0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fOc+f+b3; spf=pass (google.com: domain of linux-wireless+bounces-1860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f8-20020a17090ab94800b0028caf24a3cbsi7004422pjw.100.2024.01.12.17.30.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 17:30:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fOc+f+b3; spf=pass (google.com: domain of linux-wireless+bounces-1860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1860-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C3EAB282DAE for ; Sat, 13 Jan 2024 01:30:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D190712E64; Sat, 13 Jan 2024 01:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fOc+f+b3" 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 561E512B79 for ; Sat, 13 Jan 2024 01:30:27 +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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40D1TY54011779; Sat, 13 Jan 2024 01:30:23 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=Zwo3xPgxETfWvugTHwtecBLkVTqbG7wnc2NQwFCTSLc=; b=fO c+f+b3FyKjqIBNaktIQdkU7ocmV0V4IBxZoOCt9g1guWJpc8rdkdv5KjaAZvoQbf AMypsIZkWLVRVWDe+Ltbph/Qv2O1tRjRldmpuvl5GHNk+1G55ZkDfVVKzKezOh13 IidrC1jJE4rb2SSBYXWTdyYb6CZKfTSpP+VE2qdV82rcmzDGb6DoxoGUnnL28vvt BxdlDXQnNsMugel3jo85R7qqh+s1edaqenFyhZeofqpvNaHm5SaCo2V02DQKdXdV aIqqoDwy7/BO+Ytb/x0HxhkoBdezv6THHS/MdZcVwNy0FBxwkV2v0Oi4JJJMz3xv rebO1Utea4PwlgmmoxAw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vjymnak81-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Jan 2024 01:30:23 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40D1UMYo006644 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Jan 2024 01:30:22 GMT Received: from [10.110.118.97] (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; Fri, 12 Jan 2024 17:30:21 -0800 Message-ID: Date: Fri, 12 Jan 2024 17:30:21 -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 v2 08/10] wifi: ath12k: move peer delete after vdev stop of station for WCN7850 Content-Language: en-US To: Kang Yang , CC: References: <20240112092824.7664-1-quic_kangyang@quicinc.com> <20240112092824.7664-9-quic_kangyang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240112092824.7664-9-quic_kangyang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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: vAF0UFV1EwnZNbsxoTUF2pIRhM4hYe5e X-Proofpoint-GUID: vAF0UFV1EwnZNbsxoTUF2pIRhM4hYe5e 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_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 impostorscore=0 spamscore=0 mlxscore=0 malwarescore=0 mlxlogscore=888 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401130010 On 1/12/2024 1:28 AM, Kang Yang wrote: > In current code, when STA/P2P Client connect to AP/P2P GO, the WMI > command sequence is: > > peer_create->vdev_start->vdev_up > > And sequence of STA/P2P Client disconnect from AP/P2P GO is: > > peer_delete->vdev_down->vdev_stop > > This sequence of disconnect is not opposite of connect. For STA or P2P > GO, bss peer is not needed by firmware during handling vdev stop > command. So with this sequence, STA and P2P GO can work normally. > > But for P2P Client, firmware needs bss peer in some functions during > handling vdev stop command. The opposite sequence of disconnect should > be: > > vdev_down->vdev_stop->peer_delete > > So change the sequence of disconnect as above opposite sequence for > WCN7850. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Kang Yang Acked-by: Jeff Johnson