Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp294922ybg; Tue, 22 Oct 2019 21:00:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8SBXulbLO9xPmz1p4f42PzaOjJnqEAUVPFTXI/ArvQUv1MzRQnRSqS8Vhf0/EbFiYt/Ah X-Received: by 2002:a05:6402:21c7:: with SMTP id bi7mr35224191edb.205.1571803212936; Tue, 22 Oct 2019 21:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571803212; cv=none; d=google.com; s=arc-20160816; b=k4TjvIpxIeC4C+zSFK8UBnfRY7UhlM/wAuZz+dCptkMq0A+7JrNCNg3yQoeS1iL9DH dp8PfshZzwNIgesC13o+eBPcFTpDGlw/IMbfWRPEknJ3r9hnlkRt0QYoDZHn4oYFT0qX mXHv88HZXkpSgtFFLXyBiLKMe34f1Kl0uXnRjY3QML/7XE4qloqvc7uhuFTwD/3u2Usz XpuEDF2cRF5nsa67KrSj43L1KcnovSnMe/XtaN8lvrqAnUZXLLCD0UQ4MKOUyqL3me2W sj9Fcd0mwHiq2Wld6LWtPP74FRqmM4kjc+BdVU47BeUETxYup6CRfc8h0ghwSEqE/H6T zJdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YARoJvbXa5IVPfrRqD+GG0sdSg3qTNRY0h+SNpOhsUg=; b=iT8jzdMxXzx1Npd6/CUooVKg5vAXHnsbi6VLZQYKRFpOo8GQfxFheonW1dzswoYFVD NsAXP3j+S4xbTUoIotZWcehdEEdnZr6iMVFsww1xkkCvzXAJcEhDITjRbYeFwTify9ML T+1JLsJUKoj+fKLorb/EvbQ4DvftmU3lZb1FsYeCa4Bg1l/Ubv/WfR7fu7Rpt7RRO4f8 MCnqX0ThEvEWcbylUAvS8gt4Ab4X/ASr/e1vyHb9NeRSGPUC9L+GbU8crbLG5vvN7LtF SdSPtzlro+BkzQROVCVfOlcvAbGreC+D1xJlArREwYrCYlfWg58hY/Ym7wr2hTVxMGku LWcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=QhLgKj+e; 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 o12si13973669edc.279.2019.10.22.20.59.42; Tue, 22 Oct 2019 21:00:12 -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=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=QhLgKj+e; 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 S1731979AbfJWDA7 (ORCPT + 99 others); Tue, 22 Oct 2019 23:00:59 -0400 Received: from mail-qt1-f181.google.com ([209.85.160.181]:38327 "EHLO mail-qt1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731951AbfJWDA6 (ORCPT ); Tue, 22 Oct 2019 23:00:58 -0400 Received: by mail-qt1-f181.google.com with SMTP id o25so16785527qtr.5 for ; Tue, 22 Oct 2019 20:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YARoJvbXa5IVPfrRqD+GG0sdSg3qTNRY0h+SNpOhsUg=; b=QhLgKj+eSWs/JcLKgkJWuGzw1JR2I52axOIgdf9UZfrlmlZpuqBMMSFtbv3fMIuYDl CJWC178bpDOYLgb9ysugxKGLGCgjCf3wh4zBu9SMcrFPD3e28mU1WiSL9UdOYRNUj3Lf OmZI3cKacQh1hkfjExqy9T6vIefTp++wygWpOJG+z4GC6OOr2V+pAdOIC0NuNAzdyjd2 wKf+hpEFM8RWt3wG0K6Eak+N5G6p968e+o+bZlrLdTs6CdI1z9g1Hz3TqU9Vj7ydz74+ 2IqrWBrZJifQMgqPoNunKdS/npSy5n4xDQRXEEFs5S8hsxcAuMvYYybhHbMsaQZ5vGiw mtEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YARoJvbXa5IVPfrRqD+GG0sdSg3qTNRY0h+SNpOhsUg=; b=r5/24tHW65sOdiqBIZfrUEK2IDAyIyVCzNqtzgXC+Tp4LnW/YK29C0OpIZN+VA5QtE ZPEdMT3vq6jPLfe99d2fBE5E6AMJone44vEAymDPZMgPucF9F/kCq+GqM8J8y7crhTWE 0EqinTyF8LzYSdjvPO4JhV8TxZm+F/JLxBb4kTCav2EczYRngL/ko9Y2DnzHLNKoEivY Vz++yiiRuTnZ0gYNN1Cj1gI9CJkGopzJM5jDtRpe/W5qyfBxaI/7r3CtV6NXtmS/ZZid djGPhy6pbJsqqU9ST4IFBoThM+4W7VFS+uq0INRBKpjgrKplUDWPfphEarvV0xfwYbXk E+Zg== X-Gm-Message-State: APjAAAUwEBLU1dDqgdsEsUI8a/CTOzlRIfidxB8dNKdCKfM99mIAlQxl p8bx+DPxNpQYJwG2sgvTPdzbuYppklmLiRw5BLCvJw== X-Received: by 2002:ac8:23f0:: with SMTP id r45mr6932997qtr.208.1571799657584; Tue, 22 Oct 2019 20:00:57 -0700 (PDT) MIME-Version: 1.0 References: <20191022100420.25116-1-yhchuang@realtek.com> <20191022100420.25116-3-yhchuang@realtek.com> In-Reply-To: From: Chris Chiu Date: Wed, 23 Oct 2019 11:00:46 +0800 Message-ID: Subject: Re: [PATCH v3 2/5] rtw88: add power tracking support To: Tony Chuang Cc: Kalle Valo , linux-wireless , Brian Norris Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Oct 23, 2019 at 10:23 AM Tony Chuang wrote: > > > > > I don't see any chance that delta_power_index[] will be < 0. Either from > > rtw_phy_pwrtrack_get_pwridx() or swing_table. > > > > Maybe just use u8 instead of s8? > > > > I think "return -delta_swing_table_idx_neg[delta];" should be stored > with s8 ? > Sorry for missing that. I was somehow misled by the naming 'power_index'. > Yan-Hsuan