Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp149243ybl; Wed, 21 Aug 2019 16:32:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5dyiKHWNRHYYuiijJOgPfPxnhVDVq26jyUhExS4viSwB0Z1nacfJHIEPgRf691sAS6bvy X-Received: by 2002:a62:1808:: with SMTP id 8mr38529587pfy.177.1566430342919; Wed, 21 Aug 2019 16:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566430342; cv=none; d=google.com; s=arc-20160816; b=k+TnIuS82E0Dkc46s4VuKJCtQ3B+aa7S/EvZqAPzxSNTLufvEW7+qe8s9ExnTNrSCe 8pJcDuvMfJleyXr6Ipnn9BTChjawRwxUlkFJRn45sUms60pcI3mw6Qv2G/wgXAshNlTZ eLwgH/WlOnRQcI7bkxZwqWcbK1jTyh2SoEVe2Yejw4TIJzy6iZ9m13qMET+WbrLlSWiG 0nHomk54NA2Edh9t9sXm6hZHy2qVUlm40e3d/hKy7JvJxXMe5FHhAgoDVx7Yk+ORrciv 3tlTsil/6RrIbQbHhprVsCGHPO6No5e0uTD52n29u+X4RedWl3U7BRplMQQBR2UxuxMq 8Hzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=FAZ68xQV2e22rQLv0N9Xb0GGw2tdm0QHTRdL6ZRAPlg=; b=IloUZ3miBSupcKbN53bKgyuYAo4iA7HH2chVQOh8Q2TwNK7vPW41nIJnQdLAafsvrV tJbDited2WH/OGMKiXB1afyiYRV7hcKVnu4v18GrgMDeoXjPraNFT0sWfEkfqXK0KPeW HUcZMW8NJYtVYlWsGd8wbdqakyZUM2Ii4cHM4vCqUGXlybYhkO2wa7Gfm/PtRqgE/R2G YSoNw9kSpxxfzzOxPWyCnPX0JK0OknMfiZpTDCHLQYIc30XC4lOwoa5iZIaxw5YiyvfU U8uP8k8FIyoBa+I7IbeBl717eqjRbknLf0gTqFNnWbKm7H/XyaiIQMmGuusR47vCnjz8 PUrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NI3PBqBj; dkim=pass header.i=@codeaurora.org header.s=default header.b=NI3PBqBj; 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 s4si9217382pfe.173.2019.08.21.16.32.08; Wed, 21 Aug 2019 16:32:22 -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=NI3PBqBj; dkim=pass header.i=@codeaurora.org header.s=default header.b=NI3PBqBj; 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 S1730705AbfHUVM2 (ORCPT + 99 others); Wed, 21 Aug 2019 17:12:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45472 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728050AbfHUVM2 (ORCPT ); Wed, 21 Aug 2019 17:12:28 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 88D8260DB6; Wed, 21 Aug 2019 21:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1566421947; bh=PBUYbv9JTZoU/c7AFVuRWv956Nc4PY4ZLwMmETMSG0o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NI3PBqBjEFtdzB19Cycx3NdfY1aQB1XKsiXO+xfeXoepW9xbFSeRXECCUUOe3FO1P 2vfr0inMvsJQlWeI9P2vfaoXj1Kf7sgX2Lw/NKVZqJGYxPmkWCXtXPrJ9qessW4hhH ZHgUg4wNyxQcOOwxmf1gEebkrwkO9Vs5thzojX7w= 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=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 269546030D; Wed, 21 Aug 2019 21:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1566421947; bh=PBUYbv9JTZoU/c7AFVuRWv956Nc4PY4ZLwMmETMSG0o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NI3PBqBjEFtdzB19Cycx3NdfY1aQB1XKsiXO+xfeXoepW9xbFSeRXECCUUOe3FO1P 2vfr0inMvsJQlWeI9P2vfaoXj1Kf7sgX2Lw/NKVZqJGYxPmkWCXtXPrJ9qessW4hhH ZHgUg4wNyxQcOOwxmf1gEebkrwkO9Vs5thzojX7w= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 21 Aug 2019 14:12:27 -0700 From: Rakesh Pillai To: Ben Greear Cc: ath10k , linux-wireless@vger.kernel.org Subject: Re: Regression with commit "ath10k: fill the channel survey results for WCN3990 correctly" In-Reply-To: <5D5DB246.7040402@candelatech.com> References: <5D5DAFE4.6080706@candelatech.com> <5D5DB246.7040402@candelatech.com> Message-ID: X-Sender: pillair@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Ben, Can you please check https://patchwork.kernel.org/patch/10844513/ ? This change fixes the below mentioned regression. A different structure is made for tlv specific event handling. Thanks, Rakesh Pillai. On 2019-08-21 14:06, Ben Greear wrote: > On 08/21/2019 01:56 PM, Ben Greear wrote: >> Hello, >> >> I just noticed in 5.2.7+ kernel than this commit below appears to >> break WMI >> message for my 10.1 firmware, and based on code inspection, 10.2 will >> be broken >> as well. >> >> 10.1 struct ends with cycle_count, and 10.2 ends with one 32-bit >> number >> after that, but which is not chan_tx_pwr_range. >> >> I guess you need to create your own wmi msg for the WCN3990. >> >> The change to 10.4 chan_info event is also wrong for my relatively >> new version of 10.4 code, so likely breaks firmware in use. last >> member >> in that struct in my 10.4 fw src is 'A_UINT32 >> rx_11b_mode_data_duration;' > > Sorry, I mis-read this 10.4 part of the patch, it was not changing the > wmi event > itself, so probably that part is fine. > > Thanks, > Ben > >> >> >> commit 13104929d2ec32aec0552007d55b9e15bc07176b >> Author: Rakesh Pillai >> Date: Wed Oct 17 16:50:03 2018 +0530 >> >> ath10k: fill the channel survey results for WCN3990 correctly >> >> >> >> diff --git a/drivers/net/wireless/ath/ath10k/wmi.h >> b/drivers/net/wireless/ath/ath10k/wmi.h >> index 4971d61..58e33ab 100644 >> --- a/drivers/net/wireless/ath/ath10k/wmi.h >> +++ b/drivers/net/wireless/ath/ath10k/wmi.h >> @@ -6442,6 +6442,14 @@ struct wmi_chan_info_event { >> __le32 noise_floor; >> __le32 rx_clear_count; >> __le32 cycle_count; >> + __le32 chan_tx_pwr_range; >> + __le32 chan_tx_pwr_tp; >> + __le32 rx_frame_count; >> + __le32 my_bss_rx_cycle_count; >> + __le32 rx_11b_mode_data_duration; >> + __le32 tx_frame_cnt; >> + __le32 mac_clk_mhz; >> + >> } __packed; >> >> >> >> Thanks, >> Ben >>