Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp523178ybh; Thu, 12 Mar 2020 06:26:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtSHL1DxXprIgW+/XF1CD8rTmYn0j3q3vmJ4m1pCcJYm1CEzYPfmzf3o0o8pr4gg55JUAcA X-Received: by 2002:a05:6830:12d0:: with SMTP id a16mr5460185otq.218.1584019591107; Thu, 12 Mar 2020 06:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584019591; cv=none; d=google.com; s=arc-20160816; b=dksW2HDi7zRii/gbxdbTn7F456yWJNTOZt3GOPAhnBE58z5iay4kqkftqaJqFUF0Rm mSPDxFv28k2uS2f4aU0EwSbJZ9cvnBpHkACqjMgSxnb4H4jA2b9Y6P10NsBrYA7e/QnA MS+E6YKWJi0ML+atu4AWMSUqnmiRMhtHoymPNbfSZMSHtMcqs2BOtSkQMsMDgZ65A26m enufHEqp0GMoYZL7tLHoyeEuTaqbMqQYCRgCUe67wAwTxry1OvLIhJj9p424syLf2+w7 sNeCnps03MXO197Jv+CNmH3l5SZ3r680wgkO9z4TiLqecmQlecyquLVNNlIRnBgYkb6U /A3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=y2Nrd4GyBfOP/8FCc56U5mNrqRcV/gnnD6px0fRpIBE=; b=WQLbEFfiyOxpkvSJbO68krK0vtUiZK2418TFiDMJROQQGW+Ary9rWS+OrDdu652/Hp o0jU7xGXEecbL41fcd5hunvlq1GsxQJK7RtUAxCxAw34TqW6AEV+V068FOcshf5eGwLn V2z/USS8N2Xa4SWWwXeYFJwOTulYnDBwmosLdM589ZlSmSI7CunEvKpc3Jlaah4Wvsk7 JjpMZwTA2j3oMRw1hnzNPFNWKWQ2Y/hnTQ/IuRHBoYWxv5kRietZ/RnHdqTcfpneyGjs F5ahlgeYXw7j4pzRngHATxYPXHl7O7yk7N7BX4HLfHUtUj9Q8VMhwxODzz04ErjxWdum NB9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=EFUeJklX; 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 m14si2070425otk.177.2020.03.12.06.26.19; Thu, 12 Mar 2020 06:26:31 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=EFUeJklX; 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 S1727461AbgCLNYR (ORCPT + 99 others); Thu, 12 Mar 2020 09:24:17 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:40782 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727411AbgCLNYP (ORCPT ); Thu, 12 Mar 2020 09:24:15 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1584019455; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=y2Nrd4GyBfOP/8FCc56U5mNrqRcV/gnnD6px0fRpIBE=; b=EFUeJklXpu3r/fGcB5kXdH5LraFNj8s3JUwCROEkCxsIJMDT5LOSNEd+X62YFCsWhJWglx8i 0oXG8jkL5fcg2ba2q0guo1k2u5ko+WApDJUldTP8iNQD1+Q6RExfk+1TwgokvT4y9Mx2ZC8I tf/Nj29RwuAK4FjhuuQINCd9W6A= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e6a37f8.7fba80408c38-smtp-out-n01; Thu, 12 Mar 2020 13:24:08 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7BAA8C433CB; Thu, 12 Mar 2020 13:24:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from tynnyri.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id DA1EDC433CB; Thu, 12 Mar 2020 13:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DA1EDC433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Chris Chiu Cc: Tony Chuang , linux-wireless , Brian Norris Subject: Re: [PATCH v2 1/2] rtw88: add a debugfs entry to dump coex's info References: <20200309075852.11454-1-yhchuang@realtek.com> <20200309075852.11454-2-yhchuang@realtek.com> Date: Thu, 12 Mar 2020 15:23:59 +0200 In-Reply-To: (Chris Chiu's message of "Wed, 11 Mar 2020 17:31:48 +0800") Message-ID: <87blp1u2og.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Chris Chiu writes: > On Mon, Mar 9, 2020 at 3:59 PM wrote: >> >> From: Yan-Hsuan Chuang >> >> Add a new entry "coex_info" in debugfs to dump coex's states for >> us to debug on coex's issues. >> >> The basic concept for co-existence (coex, usually for WiFi + BT) >> is to decide a strategy based on the current status of WiFi and >> BT. So, it means the WiFi driver requires to gather information >> from BT side and choose a strategy (TDMA/table/HW settings). >> >> Althrough we can easily check the current status of WiFi, e.g., >> from kernel log or just dump the hardware registers, it is still >> very difficult for us to gather so many different types of WiFi >> states (such as RFE config, antenna, channel/band, TRX, Power >> save). Also we will need BT's information that is stored in >> "struct rtw_coex". So it is necessary for us to have a debugfs >> that can dump all of the WiFi/BT information required. >> >> Note that to debug on coex related issues, we usually need a >> longer period of time of coex_info dump every 2 seconds (for >> example, 30 secs, so we should have 15 times of coex_info's >> dump). >> >> Signed-off-by: Yan-Hsuan Chuang [...] > Looks good to me. But I strongly suggest using scnprintf instead of > snprintf to prevent potential buffer overflow. Yup, please fix that. -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches