Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1120277rwi; Mon, 10 Oct 2022 11:28:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hw5CDrlfofqsGz3WzMXc/j8Rzpzj/OdZswhwcMzwI5DP0pbdlsXvHN8PgbojTBShrb9hm X-Received: by 2002:a63:194b:0:b0:457:7295:8de0 with SMTP id 11-20020a63194b000000b0045772958de0mr17983147pgz.612.1665426503251; Mon, 10 Oct 2022 11:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665426503; cv=none; d=google.com; s=arc-20160816; b=HRTFyTR0ieGSMjOgtJRbCtrASuV+at0FhH4UVdz10FlwVDZx6gXp9Su9df5YqfsvEF Mq+Ki+3tDVqjzq0Zs1gqw7JqgiWaoYUtploEGOyM8AWjL0vRF2iKLk2aUMaP2aVvlfGm YF7SZs7DrDdq/dm2jeMUWKVkzx93yXqTFwQ8xGJik4Bsfv9VchbdvVsP/tLkt7eGXwTm oHCEnS0p9KCCS5b4i4hT3LkETW0q2B9hwRNeoufq1NkBlm7wHHAMGm9rUl1k85RsqgN4 sW+wP5NIDthTZXrfSc+WQGJhGzVwmMPJvMX+RfZgdz0hZiuYPw7K6zNAALIjxD64o+M1 G9bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=qCvOOhnciPJVDTGv89XriqzWDSDZygWN31HjWneYHVs=; b=UV+H3vCtY14Uj1in/X9nUAGlKlbyGBcKpbLImMbsjKNDEnNiuMhTQ8Am4SsMo/UOE8 eQMAy974QiG8Ktd1tvJFB4pyxZicNMf6nM3ZWAlw9xJXZKBXcqogit5JHE5XXmwHESms 4NyGmzV+61oXui0K4NDMbnM110BLYteLv7DdOkVi5ygzB1rnRDJ2+jkla/xajClIgBGa 2uQHdKBQxmSfbr8D1DiDamRuqtsoHDfCp99rHV826/pfSdE66xk0r3gr2m8lUsVXRaMd IXhLswySlW/rVa3nWwxnXWFd3oNyGIYS23lTeEGFx7ghLGasxaBZc1IyqaoAVMFvWyHJ 6RfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kNOxzz4W; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om11-20020a17090b3a8b00b00202a519f846si18913325pjb.173.2022.10.10.11.28.10; Mon, 10 Oct 2022 11:28:23 -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=@kernel.org header.s=k20201202 header.b=kNOxzz4W; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiJJSJl (ORCPT + 61 others); Mon, 10 Oct 2022 14:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiJJSJk (ORCPT ); Mon, 10 Oct 2022 14:09:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7BC82F7 for ; Mon, 10 Oct 2022 11:09:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 39AC660BCC for ; Mon, 10 Oct 2022 18:09:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E186C433B5; Mon, 10 Oct 2022 18:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665425374; bh=RKRZiw0NyczwHRdkeUVJ3EXEp69C4Pd8hlq2i0tQgjs=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=kNOxzz4WOuJ+CdKRPbUq4cdn2GCElTBzISphZnEXTh+QOiuvh/E9Aeen5tDB2PRPv kRd2wJbVfjQCSXX0q0mrkIQS+ehvsJJIy7pXuLv6cr1EWeGKUvb368PkMOaTMZHmUI rlOWiszLc+dA5eD91gJUm8D2KMJEx1mqGyPGEY/GpU5ViP63ukrB91ZdHNTqY1ERve k78ZH5tq5RAp9b4A4djiWfCJKtASMaSyWfhmREO0OaYwiLKhLECWly2JuaD2ekSa4o 2YaF1zJQHnIpH+ZcRy5/S8Uw9oTgDAK2+DpK4OikmcfgYAAtcXZYpmFjPq6tgKKvDS Mw8Pj9K8EV1zw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/2] wifi: ath11k: change to set 11d state instead of start 11d scan while disconnect From: Kalle Valo In-Reply-To: <20220928081413.27339-2-quic_wgong@quicinc.com> References: <20220928081413.27339-2-quic_wgong@quicinc.com> To: Wen Gong Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <166542536986.511.1244496445875563981.kvalo@kernel.org> Date: Mon, 10 Oct 2022 18:09:33 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 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 -- https://patchwork.kernel.org/project/linux-wireless/patch/20220928081413.27339-2-quic_wgong@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches