Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1664347rwi; Mon, 10 Oct 2022 21:07:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DCkUvTNuYzRDhi20bJDVlZhXElzdhrJlguK6mVKQaSM8qEkBnIysMnbpofc5upI9D+dD7 X-Received: by 2002:a62:4e8e:0:b0:54a:ee65:cde6 with SMTP id c136-20020a624e8e000000b0054aee65cde6mr23134781pfb.42.1665461258783; Mon, 10 Oct 2022 21:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665461258; cv=none; d=google.com; s=arc-20160816; b=FTV/i1EqNZHHoDU6b6IJflVWsz/KtYYlK4jsTQZbVaVVjZDp1EXzqF9TWmcjCvVLEz FTUlwRlGGC8SidEkCR7t1G54W/d3r9buWkBu1XHIEVWtoxZOLs5BRW8/65wMkBJxpuC9 HnFCUk1kJefNjxPlpSDYCvbLg5d9tpgUU3S1Z/SMSqFWgoc+KMFdqgpFO73sVuFtusvq ETlPejsw+S8M77UULss9akmsjIInUuBHhC9F0V6IAbyPFooCfYm+FnfjUu0N3HTrmVN2 pihjnQR8Axz7f0VxOsX6pEqPrfGR2v37ZDjLhk0igoOpI4FlOlsCOA6TsQbMjRmK37JT F7Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=494NNedELfIMNmPVaonTNe1XkmyugotD6Ma+MQntz7g=; b=dcdtxftoYlEUT89bs1VRrTX5cV1aApVtN0tGAXwRLgEqm3ef3Z28FOzExNyEmYITCL j4tnCXEdif2n6riGbqnOSJWV2fbS4ehg9hbQu1VMiDE6sSHH1AgtHSUaJhhbIOWodL+w BHooHIPB5IX6NUYjaoeB5ffvnT8zniFO+uO77ggEWX9DB0ENq/RSV7oZ3Ccw1Izb/Evg kj6EBPQpcQwmJ1HPjbRaBmY6RcCVFP42nch6ourr3KgrMzWFtVak8OwZfQhehbNupo7M XBFMk264QEo/SqU3gH3888QdjFdruQQVewyZ6fa1luj6nY/ArOZ9meaw+v9BBhEC/BdI o7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="R0jMW+/r"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j190-20020a6380c7000000b00462f17e560csi4412016pgd.878.2022.10.10.21.07.26; Mon, 10 Oct 2022 21:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="R0jMW+/r"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbiJKD7N (ORCPT + 61 others); Mon, 10 Oct 2022 23:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiJKD7L (ORCPT ); Mon, 10 Oct 2022 23:59:11 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA2BC7E81B for ; Mon, 10 Oct 2022 20:59:10 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29B0w9NI019604; Tue, 11 Oct 2022 03:59:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=494NNedELfIMNmPVaonTNe1XkmyugotD6Ma+MQntz7g=; b=R0jMW+/rdUpQ3h0o0yavQslsemyQgE/6Aul5werPIctNpOKJmSNZC/xl6qQyW8OYoqos X7NDsMZemPp83TdOWRKcZQWFxwCctoGir7l71UCndloH2Wj4QDAlNuJcheo5PFm7VCfo e8b5kmio97t8az1AVANrLE7UTcy7jA6VeLTMSsxpculr3d5x/LKgz7jFo1Yhf8gg8CVo AXHOIODcmQBiFYgCi/cfgpuTleeT7sE+oQoQ81XPN34hw7UM9KoC8eGsBqOLTYNLOZ6N xnkelqS+5lj/W84W9qf6utJOjcO0ZLs1E/TfGsRFs1ovy6IEOyg4dv6gHo8m1mmjVERC wA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k4rx4h4bb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Oct 2022 03:59:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29B3x2aG023687 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Oct 2022 03:59:02 GMT Received: from [10.253.78.175] (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.986.29; Mon, 10 Oct 2022 20:59:00 -0700 Message-ID: <0526d034-2cb9-527e-b338-f73db0ed005b@quicinc.com> Date: Tue, 11 Oct 2022 11:58:58 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 1/2] wifi: ath11k: change to set 11d state instead of start 11d scan while disconnect Content-Language: en-US From: Wen Gong To: Kalle Valo CC: , References: <20220928081413.27339-2-quic_wgong@quicinc.com> <166542536986.511.1244496445875563981.kvalo@kernel.org> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] 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: SDbHr4xgZWvzsufSngI3VFUnKpwHtzKe X-Proofpoint-GUID: SDbHr4xgZWvzsufSngI3VFUnKpwHtzKe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-11_02,2022-10-10_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 clxscore=1015 phishscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210110021 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 10/11/2022 11:53 AM, Wen Gong wrote: > On 10/11/2022 2:09 AM, Kalle Valo wrote: >> Wen Gong wrote: >> >>> When switch to connect to a new AP for station which is already >>> connected >>> to an AP, the time cost is too long, it arrives 10 seconds. >>> >>> The reason is when switch connection, disconnect operation happened on >>> the 1st AP, then 11d scan start command sent to firmware, and then a >>> new hw scan arrived for the 2nd AP. The 11d scan is running at this >>> moment, so the hw scan can not start immediately, it needs to wait >>> the 11d scan finished, it increased the time cost of switch AP and >>> even happened scan fail as log below after apply the incoming patch. >>> >>> [ 1194.815104] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >>> [ 1196.864157] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >>> [ 1198.911926] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >>> >>> Change to set 11d state while disconnect, and the 11d scan will be >>> started after the new hw scan in ath11k_mac_op_hw_scan(). Then the >>> time cost of switching AP is small and not happened scan fail. >>> >>> Tested-on: WCN6855 hw2.0 PCI >>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 >>> >>> Fixes: 9dcf6808b253 ("ath11k: add 11d scan offload support") >>> Signed-off-by: Wen Gong >>> Signed-off-by: Kalle Valo >> I still see warnings: >> >> [ 3627.691737] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >> [ 3715.435608] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >> [ 3860.333214] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >> [ 4542.000955] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 >> [ 4604.018451] ath11k_pci 0000:06:00.0: failed to start hw scan: -110 > The failed log is now happened frequently as before, I will change it > again to suppress the failed log. change typo. The failed log is NOT happened frequently as before, I will change it again to suppress the failed log. >> 2 patches set to Changes Requested. >> >> 12991768 [v2,1/2] wifi: ath11k: change to set 11d state instead of >> start 11d scan while disconnect >> 12991769 [v2,2/2] wifi: ath11k: reduce the timeout value back for hw >> scan from 10 seconds to 1 second >>