Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2343367ybe; Thu, 12 Sep 2019 08:08:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwQj1KOeezcwRLUTkKEgyLGmsvQB3orsEKfCJPFw9LgnsSrepTfIeifUZ23nyttrOmQgOl X-Received: by 2002:a17:906:3644:: with SMTP id r4mr13023086ejb.92.1568300886354; Thu, 12 Sep 2019 08:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568300886; cv=none; d=google.com; s=arc-20160816; b=1HC8MiIlP/TPfLhYRx6pKwxMO6gQFsI8yKjTMvwe5drGy8yXqIBsoNLum2+UHJlMKF ntEczuw63P0Y3pCMPpnw0GFXKI/ixmI13yQihm0SZltDLYTVWR8KdqjF9S2nf1/vzdeJ X0220JGA1eqYgMBEhbRgg6I78O5J4zA0q2ze71hkj4BxhECbjYl9v3p50JAJ4++J2IvW y0HtwlG6sYFq2lY0WQK7Wp5L+UWtVW17i3JI3/KKqurubpV6tBr34phQ22bbnLN7TISl ZLn7s/psQZk/v4gfQOP3N/STF8txUuNehV51K5a/MjBo4GF5qw6FJo9rko2gB/vwvH9t TH0A== 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=G+hbnOKwesiTvp+vvtTomHls0LPbCdND1dMYqFebEW8=; b=BvyjPLgfTs2qij/lLNeIb/1c6/t1hRhhPVC367IceEOrvzZqg6/5HuFoUevPnH4iXe YfRWiVSjz2eshG/ggJsi5aSCjU/MCfJTCrk83R1S4aZY8rC0JFPbO71pjx+e5EfEQOq+ FV95YFiKqCC6yC2aJP/mQJGAcdKf660VirsxQleC4xXxu3yWWUGvKncu/2Rzcw6QQlYz 137Gu+spyrGu9ONaYPEge+gejsODvlvS60SIzG1xYwyLdzG0bPXn+S/H+p23kj4is26y JVv3mWocpRdvt/J/WZzgCVu1XUTX5QVzbThSHXLatyXIhSmlrxflOYNGXPJumRp9gP1j 9msQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Gk9qmOWm; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZkvtTvmh; 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 pk26si12947304ejb.134.2019.09.12.08.07.37; Thu, 12 Sep 2019 08:08:06 -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=Gk9qmOWm; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZkvtTvmh; 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 S1732937AbfILPFw (ORCPT + 99 others); Thu, 12 Sep 2019 11:05:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37726 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732708AbfILPFw (ORCPT ); Thu, 12 Sep 2019 11:05:52 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 65A3460721; Thu, 12 Sep 2019 15:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568300751; bh=EmDled5B767UpjqGHQ2Kmli4JyKcmNLHLbVUhgKHFbM=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Gk9qmOWmMdqBCTnVGJAKm2Yhd5GQLd/DzrTXhzbiRf4QZ4A7bDZd2rHPQREqxiFQu sdH9LI2t6dkRbEfpEvGRbvXIs1MVXj04ZnIf1m/A4Oi5G2rSkQL+X/5L5DbUNLBVVZ SLIBBJJ2uZ7XsSWBYA7MQZQRMKfRqJh9fXpcCogE= 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 CCCD9602BC; Thu, 12 Sep 2019 15:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568300750; bh=EmDled5B767UpjqGHQ2Kmli4JyKcmNLHLbVUhgKHFbM=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=ZkvtTvmhf58ifQ9AkbSehRQJnlg5FXwSz1SvPAElZW/kM5kDpjRARd5TjYCx55fS3 1vq0DaPq5ZA32UjabOfKRg2Z2SPIMgwYsZVXP6amHZ1AGr6/zlkC321nCAfy7XkfAD 4WiNwNzS8IbfKhE8gp2LHHzTWW05cgCne5Ns5jzI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CCCD9602BC 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 channel info parsing for non tlv target From: Kalle Valo In-Reply-To: <1552044366-9186-1-git-send-email-pillair@codeaurora.org> References: <1552044366-9186-1-git-send-email-pillair@codeaurora.org> To: Rakesh Pillai Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Rakesh Pillai User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20190912150551.65A3460721@smtp.codeaurora.org> Date: Thu, 12 Sep 2019 15:05:51 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Rakesh Pillai wrote: > The tlv targets such as WCN3990 send more data in the chan info event, which is > not sent by the non tlv targets. There is a minimum size check in the wmi event > for non-tlv targets and hence we cannot update the common channel info > structure as it was done in commit 13104929d2ec ("ath10k: fill the channel > survey results for WCN3990 correctly"). This broke channel survey results on > 10.x firmware versions. > > If the common channel info structure is updated, the size check for chan info > event for non-tlv targets will fail and return -EPROTO and we see the below > error messages > > ath10k_pci 0000:01:00.0: failed to parse chan info event: -71 > > Add tlv specific channel info structure and restore the original size of the > common channel info structure to mitigate this issue. > > Tested HW: WCN3990 > QCA9887 > Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 > 10.2.4-1.0-00037 > > Fixes: 13104929d2ec ("ath10k: fill the channel survey results for WCN3990 correctly") > Cc: stable@vger.kernel.org # 5.0 > Signed-off-by: Rakesh Pillai > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 6be6c04bcc2e ath10k: fix channel info parsing for non tlv target -- https://patchwork.kernel.org/patch/10844513/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches