Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3947162iob; Mon, 2 May 2022 09:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVH+k+Tyv7KQIw2BEWEzn2hj10HlETdZ/GsHC0iE8LcR+knA0B8CQa2UAkiCddvtXE4tuZ X-Received: by 2002:ac2:48a4:0:b0:471:fc7f:b54d with SMTP id u4-20020ac248a4000000b00471fc7fb54dmr9382296lfg.538.1651508350682; Mon, 02 May 2022 09:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651508350; cv=none; d=google.com; s=arc-20160816; b=iF44C4lOWUUpb7xVT3aztz4uDRN6AvcuKP7EFnojun84acA6impINlGt7343rbzg5C ASkq91bDYOdeycwKsJhZmGyxdxviXKd5dkLQhIGE3aacln5Qspcz+XURZA+rjl8R/Jam 19PSeyyLycUi/OuYL837/2eCRQnoGPkg5ojnx77IRKRM9zYC478JZKoP7TSmHC+XvcJX FW/D+MGWSTA2pv9YFzA1QCrAVViEkBJmTsNuK0lEfAtQDPRqY660kJf7vAdnc/fppHHc +JGcYKPXIsneUb9a4QdyNvD2kiSPgDHPx+U+auLH5q9WQ3yTeCyCAa3dwt5XMcV1rQ/6 2NKg== 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=3DD1/rxF6CpymD5oRs1lrKdjeFLuoPdhAw26n/Wj1kI=; b=dTWAaby9lbNoiGCwHGQCv/c0lgzSvlApO8KP7sQ+/Gve0MpVgFIWiMuhQ2+BQs+huM j9vvosvcG4bAPdgasijNDZ9fkId5RWm8u6y6PpegBrkjNyJHum1Yc04BiSPIBM0UxQUO r89u99mYV6i/bK4ByVqjGn8VeO0tGyDyAFHzlo/dE72MqrNg5+rZKDioI4TFvxvnQ7m9 DfNN235FFhHQFz8ZFHfjRBatdd8yErIb5TxSfKpBT8xeEjH1lgbp3w21J3NA5/dajyr6 QKDO2JbzaP/vLKPBt99wFgh1JlKzYELL0WsJX/y1A6hOFOG5gRVe3+xzQyG18vGGQ/WJ vDzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bthfaf+k; 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 g12-20020a05651222cc00b00473a56bce6csi943318lfu.61.2022.05.02.09.18.45; Mon, 02 May 2022 09:19:10 -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=Bthfaf+k; 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 S236481AbiEBOBP (ORCPT + 68 others); Mon, 2 May 2022 10:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236321AbiEBOBO (ORCPT ); Mon, 2 May 2022 10:01:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F9DCD97 for ; Mon, 2 May 2022 06:57:45 -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 DD8D460B83 for ; Mon, 2 May 2022 13:57:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CD21C385AC; Mon, 2 May 2022 13:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651499864; bh=UsUVrQ8Uf8ZrHtaZGxrQgHbyM/8ZtJmWeyFLUL+cXiY=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Bthfaf+kqA7O5R8dVeo33lK49k7ZoAVrDsHRmNm9jKWx4K8DJOGPu62/WS/qlxldL A+EvwZaWCRKKDKMIiA8pR7YIQko1kMm8fh8uOMp8ilcswxSKYZJHZplfUujPD+qEQT 6J7V2FKHitKGGhiDPYOnIwJ/ZemVqYWFijt6u4CtPKIq7U8hHqEFEuYT+oJ1jS2Zc0 gViZVQ4pX4wTdf3KOjuJIH/DnMF9MrwqRG0M7mJwhqe4Ss5tMaQYaMFlhBGrY8xB8g VqkZ8/jDyGUw7Gpwf1EkOWHlcSv/Yua1OO8VVPOUwfqA6nBrnSkBtMGzqVTME1AfoA Ljy1k+K1ah69g== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath11k: change management tx queue to avoid connection timed out From: Kalle Valo In-Reply-To: <20220428023320.4007-1-quic_wgong@quicinc.com> References: <20220428023320.4007-1-quic_wgong@quicinc.com> To: Wen Gong Cc: , , User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165149986115.16977.2375062909122184081.kvalo@kernel.org> Date: Mon, 2 May 2022 13:57:43 +0000 (UTC) X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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: > In the phase of wlan load, it has hw scan and 11d scan which sent to > firmware by ath11k, then hw scan and 11d scan will use about 14 seconds, > and meanwhile ath11k_reg_update_chan_list() is running in workqueue of > ath11k_base, and wait for 11d scan/hw scan finished. When the hw scan > finished, mac80211 will start to connect and send management packet, > at this moment, ath11k_reg_update_chan_list() is still waiting for 11d > scan finished, so wmi_mgmt_tx_work of ath11k will not run and thus the > tx management packet also not send out and lead authentication timed > out. > > log: > INFO kernel: [ 187.885322] wlan0: authenticate with 72:6c:57:43:9f:90 > INFO kernel: [ 187.937266] wlan0: send auth to 72:6c:57:43:9f:90 (try 1/3) > INFO kernel: [ 188.626944] wlan0: send auth to 72:6c:57:43:9f:90 (try 2/3) > INFO kernel: [ 189.650999] wlan0: send auth to 72:6c:57:43:9f:90 (try 3/3) > INFO kernel: [ 190.651917] wlan0: authentication with 72:6c:57:43:9f:90 timed out > > Change wmi_mgmt_tx_work to another queue workqueue_aux of ath11k_base, > then connection success. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 > > Signed-off-by: Wen Gong > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 3a597f0d425b ath11k: change management tx queue to avoid connection timed out -- https://patchwork.kernel.org/project/linux-wireless/patch/20220428023320.4007-1-quic_wgong@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches