Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1066525ybn; Wed, 2 Oct 2019 10:19:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRH7QYEYhJugTUdHZ4HE4RfkvH9Ig2LciCKDyTiAez1Ooe6tJth/Dm7R+gh5sJGijavgF+ X-Received: by 2002:aa7:d295:: with SMTP id w21mr5115416edq.302.1570036744865; Wed, 02 Oct 2019 10:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570036744; cv=none; d=google.com; s=arc-20160816; b=q09by1bmaifX+0ZbpjeLqwKcJxtMt41UXC6C5Dej6auzROV3zcOGc0KNT1b5nznQzC GMg2YuziwYAKG8KxizvBmxxqFwB88vJYQxbjh6eUPcieb3zpsW6gn0hMn/oeQH5r0WaT MOrEnvu7ncTQdWEYhQZ7Z8ejYoJ4EbcRSln66N4kcpP5o8ue8DvVRvC1IqsvkDcOiymb 8E/WfBU/MO54NO67kIwsF7PcQ+r8klNkHjIfbFMeEl/HuiS9W+sqhOyGOjmOkWvvRlT4 jrcbcZ2F9q7b8I4DcTj9FCAZfS6DFb38tDiJa/QehXotc/6iqlKthF4qhqVsRXajfeRX whvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=SUw48g2+IU3Arg8wgWedP2P/dg/AtOjpg4pOXobUcKU=; b=VDBdP5/aukyMrxBliuyr8XngKyqkSPssN8ME2nlsHAQBqRyV8Vp8vgfAQLqZyhP4yg PaA8sd4IPEZF3eYkIJqMQ+sfOunv66d/xIQIwuFdStGMsP/jgZhh+Tka0nMZ2b4S29Vc jWNATqdbWRzqcLl0az1d2SEDf2wnu/sOTdQvBB1ZsE7ZRy9Nbsw7POaVc+ZpVz8hgfx8 +6wTd55j9B6A+zQkP76sZ2SkTq2PnaDoA1L8oDB0ZJEeBxv7yleT9HHNx4wlSP1SMczt S/OjP/gCEmghghNWWI5xgTbBOZjLKguirYoRnak7zY+L41h7rsReaBNTZtyK5Wx5Uv2P 2Rcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="l/zZEd+B"; dkim=pass header.i=@codeaurora.org header.s=default header.b=QJbT69z8; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u18si10921327ejk.105.2019.10.02.10.18.21; Wed, 02 Oct 2019 10:19:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="l/zZEd+B"; dkim=pass header.i=@codeaurora.org header.s=default header.b=QJbT69z8; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbfJBRR7 (ORCPT + 99 others); Wed, 2 Oct 2019 13:17:59 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59012 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbfJBRR7 (ORCPT ); Wed, 2 Oct 2019 13:17:59 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 441DF60A37; Wed, 2 Oct 2019 17:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570036678; bh=wWnOggerler6dJ9pkdG54S8RTXnBrTKOSC+ryeyS81A=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=l/zZEd+BDAkk14UBfITwUVeodzPqnVjCEpzmt3HsOoOKdzu4v0TZYa5QU9wLLwTbf xJw1aYPwAZwOPwR2OUEjPJJN1pIZ62pMGkf93ie+3gDVfq9q9AyvXgsyyK7Fd45/DQ 1Oi3OBimjM4QD8NA9ceg4H5FlImQmzUvHjiphHBw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 644C860790; Wed, 2 Oct 2019 17:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570036677; bh=wWnOggerler6dJ9pkdG54S8RTXnBrTKOSC+ryeyS81A=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=QJbT69z8rrlt2f7T8EDGK271yboIJayzLAbdot5ZmyyNDT/R+my8NHsSNYL0yBsxv kBGMhxd1eUs88eEJ0IP12/AEoKJ7H+m3t7yArcAyOnReZZgzmbuLQFDPFhdBE7tj/f XQBmWTAgibPF2Nk3M3BPHdHNL0bFISl7o/f0nViw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 644C860790 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath10k: Fix offchannel tx failure when noath10k_mac_tx_frm_has_freq From: Kalle Valo In-Reply-To: <1508284992-3574-1-git-send-email-greearb@candelatech.com> References: <1508284992-3574-1-git-send-email-greearb@candelatech.com> To: greearb@candelatech.com Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, Ben Greear User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20191002171758.441DF60A37@smtp.codeaurora.org> Date: Wed, 2 Oct 2019 17:17:58 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org greearb@candelatech.com wrote: > Offchannel management frames were failing: > > [18099.253732] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e3780 > [18102.293686] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e3780 > [18105.333653] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e3780 > [18108.373712] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e3780 > [18111.413687] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e36c0 > [18114.453726] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e3f00 > [18117.493773] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e36c0 > [18120.533631] ath10k_pci 0000:01:00.0: timed out waiting for offchannel skb cf0e3f00 > > This bug appears to have been added between 4.0 (which works for us), > and 4.4, which does not work. > > I think this is because the tx-offchannel logic gets in a loop when > ath10k_mac_tx_frm_has_freq(ar) is false, so pkt is never actually > sent to the firmware for transmit. > > This patch fixes the problem on 4.9 for me, and now HS20 clients > can work again with my firmware. > > Antonio: tested with 10.4-3.5.3-00057 on QCA4019 and QCA9888 > > Signed-off-by: Ben Greear > Tested-by: Antonio Quartulli > [kvalo@codeaurora.org: improve commit log, remove unneeded parenthesis] > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. cc6df017e557 ath10k: fix offchannel tx failure when no ath10k_mac_tx_frm_has_freq -- https://patchwork.kernel.org/patch/10013117/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches