Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3308927rdh; Thu, 28 Sep 2023 08:11:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPsuybesdfNFy0V0gDQnoIAGn9eara8/HCII8irwSJ4ZppNDs1M5gD4S+LU0LNTlmC6QX/ X-Received: by 2002:a17:902:ecd0:b0:1c0:c86a:5425 with SMTP id a16-20020a170902ecd000b001c0c86a5425mr1726619plh.19.1695913865796; Thu, 28 Sep 2023 08:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695913865; cv=none; d=google.com; s=arc-20160816; b=tsp4BpDDT+J1AlrIiGpHCWVWjKRQx0ct+17aPQV2CFONS45XQpk25RkakK7Qz419f7 tcn3+FqVnwBCrZxmEdDsYU/kDxiFERhB35dFwuSkKivtY3A3E5/qp2KPAgw+3tY376Jp NpUQEmc5835RxBr0ZzAU7RQeyauxojMOgXU6Sm21M/pIRCFRXjUT5QimRw6hP1m0Vm9q Ohde3RD0l6uioYeogp5WHFvsAeSV/z8m0TER8yHPuq58h5VixX2Mm/gzbqwY72X3+Y8e 5eXiLg8sNMFOqNP76PF5zyenPuQ2qrXEr7gjMM+9cgXuIbVk5z4vxCYljUpEsKUSL++r K8uw== 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=V1wYg40QtEXv7vmbAK18MDTPrkniKQV7xsaRb3Xbl4s=; fh=pFUMRLcs2CxJLfynOFPNNsxKPxj2wYRvMQW6PkoiSbA=; b=kZpTgN6BK9+lLKJW+7qdKw5g46W0HFIR1sci0fN5jOkMq2CjKDg7r0hptQ9cAFWuX8 tf/anPqfLhEKdyXoBZG8tSfWYPMBirsjW0ZWxefK24zqGfZ/ZknyhESpFVsP0WlERcev 2n7EdGj9Tk8vPiGR5EwkZYswgdQRN/sQxoIc9bdG3e4xApiRxhm/7wrsidT5zAYTxCZ8 lXNDtv9lTAUO8nrpbMHLuUTbfSVP9PhsCFhlp0js0QFsxAcW2RVqAfGcJhiZ5DZ6oSy6 c8A30E7lxnrZFsfTylGgY5PpYDKLtdb5q1R4OH04Ec4tM94KXW0rpU6oR2YwaQfHbAMT 0QCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VL2s/o0b"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id lb14-20020a170902fa4e00b001b9c1821f6bsi18028656plb.98.2023.09.28.08.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:11:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VL2s/o0b"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4C79B82A8379; Thu, 28 Sep 2023 08:05:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbjI1PFI (ORCPT + 54 others); Thu, 28 Sep 2023 11:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbjI1PFI (ORCPT ); Thu, 28 Sep 2023 11:05:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9E51A7 for ; Thu, 28 Sep 2023 08:05:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 083D4C433C8; Thu, 28 Sep 2023 15:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695913505; bh=70kQOEUrDVTP7ywr5KzsufrCQtknfZXRqKz7L88PkyY=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=VL2s/o0bK6r4lu2bu8vm/ROSWfrWcitdFUtt3v1R9J/xU6Uqa4J2iCjaIYEc1x4xv y5QtZKaCap0zBqouiLid5wubswI1owrrsajKdCpL6VY9/4sfxbS1SN6ixxELmpwHtR HRqEA1Al7EyWrMz0GcCWKE7YRc5NZCFTm1GNTEqvR5bj+/vq4n3I7K8md8WTIrSS3J APu9F6kRa5+QYmuB7sse7ils6g6/N2hflyB3DkDC30T9jLSefaMGhKq2YD1x/W4hpn vcP7aHvvME5QHkcW09GcUgHkpIk5wTDqH5BaQf8vTf+8/lu+okYUudvakoGSSPl+wJ v/jJC6HycK2Bw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: indicate scan complete for scan canceled when scan running From: Kalle Valo In-Reply-To: <20230906085746.18968-1-quic_wgong@quicinc.com> References: <20230906085746.18968-1-quic_wgong@quicinc.com> To: Wen Gong Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169591350295.3019228.15462824983218170799.kvalo@kernel.org> Date: Thu, 28 Sep 2023 15:05:04 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:05:09 -0700 (PDT) Wen Gong wrote: > ath12k prints "Received scan event for unknown vdev" when doing the > following test: > 1. trigger scan > 2. wait 0.2 second > 3. iw reg set is issued or 11d scan complete event is sent from firmware > > Reason is: > When iw reg set is issues or the 11d scan complete event is received, the > new country code will be set to the firmware, and the new regdomain info > indicated to ath12k, then the new channel list will be sent to the firmware. > The firmware will cancel the current scan after receiving WMI_SCAN_CHAN_LIST_CMDID > which is used for the new channel list, and the state of ath12k is > ATH12K_SCAN_RUNNING, then ath12k_get_ar_on_scan_abort() returns NULL and > ath12k_scan_event() returns at this point and does not indicate scan > completion to mac80211. > > Indicate scan completion to mac80211 and get rid of the "Received scan > event for unknown vdev" print for the above case. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Wen Gong > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 870c6a72739c wifi: ath12k: indicate scan complete for scan canceled when scan running -- https://patchwork.kernel.org/project/linux-wireless/patch/20230906085746.18968-1-quic_wgong@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches