Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5544535yba; Mon, 13 May 2019 12:46:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyuJNRsWPBKeLucbCxMJX1u03Ac3YsFU/icTCOcKLDM9HR11+H7oFumqJ8393Kt7ghstXm X-Received: by 2002:a63:4422:: with SMTP id r34mr32486370pga.362.1557776762958; Mon, 13 May 2019 12:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557776762; cv=none; d=google.com; s=arc-20160816; b=BOcZLKlalYAGNeWLHNX7pXAQKJMPiwGaoHXCdkXMINAnLRM1wUoY0Fl7ul4bqTHZHq p/jxohN6q7DSb2MOKJ9WRgKVYGQA7NtZzqD9XKYXsonXiohFrNoVP5Dq/yVBJJWDzG5j dBCORaXtrxlbBolCG8HgmAP0r/rAKlQlKLbHkZBGkhGaH7aFzu2v81C/FlvrO0y8PKxa gOS83GZdDsnDvJRJlBCBFQnORvH45kDVRVRKgrlCrYyEeTKttXW55kGIjDacEy15lkz7 XOXc05KDGC+uyMkuyE16GcG5m/Q0Nmxu8u0O8hfC299w9AG6mU4wKFxQA9zJ7gOqJECY Yvbw== 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=BObiVry8yefM7ymfGOnJCtHq8UUuSOFqMeSG2qy+408=; b=oExvA7QJ3OhbjZ645ELaxnWxke+azWyrci/xv16YELwMYgwPaKrQ5QmWdDccdOA82j Hs+5yDAYz5oGyfXCp9wOWixy9U1RlI0mO6/+5R0cYcQvdg54q62RcjmXyEXkSmHGYzqc 0UW+WZ95V0zErqtwnVtxEJ7g1HQFg8dr8IDjNQdcBLmOuLrii868lYKMBext86jTox7Z +2i46TCs/BvN/7zf8F655y4E39ZD3Y4aV7aG70/LVKOR4eG1dBckIkTyvep598lxBKQE Bh38ho/oERaf4QFH1SGcwZQUMcFXIM9sBBrhrFv5oZsC2420g9fbDaQmxwy6f7G71c67 8yvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NyEkSBNI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d125si4229368pgc.414.2019.05.13.12.45.41; Mon, 13 May 2019 12:46:02 -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=@gmail.com header.s=20161025 header.b=NyEkSBNI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726135AbfEMSKk (ORCPT + 99 others); Mon, 13 May 2019 14:10:40 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40085 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726122AbfEMSKk (ORCPT ); Mon, 13 May 2019 14:10:40 -0400 Received: by mail-pf1-f196.google.com with SMTP id u17so7609366pfn.7 for ; Mon, 13 May 2019 11:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BObiVry8yefM7ymfGOnJCtHq8UUuSOFqMeSG2qy+408=; b=NyEkSBNITLSzueKfwB4/+a4efwvAtTZcR5V+ibCfRaZ58aGb/YzhorxM9QyRZT5myE Sa8qBEEv0I5/4S4gd/FYDC2uXY0FrLdnyUNsaYmrOtUUBCWEkjLulYNvBcZyZfL8NrLC vxflF4rY5HkU2Yg0H4IelDWA9b7Ds+zyWal2xbx+yiTLGX8FzoNMwPGt6LVXTj28XX8c zil8yamOcM4yEGzJMWBNLY+81ouChIBBAcnfIxb5yx1csFaZSWUKGRMAvGSUxwUbEZ5O Rn0WGmMQQ2RUhoad14/CU3LSuoixE6+cOeVG/6DdBxs9JjZHyQXmm16NkGHV/NKlTFiV NGVw== 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=BObiVry8yefM7ymfGOnJCtHq8UUuSOFqMeSG2qy+408=; b=dqJzP6cajbpK2/kwjliTl6f4Fdm+Oxtq7TQjBpMa4oNFtNuQzj3zjvun9gHGMDwVBx JoLLi7SW4ZStQ97mUc5hZk4wpg1k2suRSdKTjwTB3+Ps9BHWyAOPe/EBfVqKuimr7GPI STaVvjLU6HA9ZsnfioG4OA3h82T8pKm6zz3opQVOGms0vJCKbVo926+s6k1RTqzlbYsU E/W//PUf0rZIjFRAbynqrYd/L2OlJytN57po3yXvOXKmxZ5MOWeoGrWG864PDYgpzpiL sVdGl84gmDPdK0B2oHuV142Gs/ge1LX/p5cqnuUaGY09IY8YA6t/5EyKWfLM39QuqXFn LuDw== X-Gm-Message-State: APjAAAXqdSp98uX7Acdn2y7qJpUbeSPJQ7mG2zYYwgSCR0gacPrmkz4J m2MWdB2TMWPIJURh0bmdNxeLtUCYeoLNjOHj2KPMJDLtYw== X-Received: by 2002:a65:6255:: with SMTP id q21mr21919160pgv.211.1557771039009; Mon, 13 May 2019 11:10:39 -0700 (PDT) MIME-Version: 1.0 References: <79695018-5ac9-d7c8-a386-c6dd3f9ed474@candelatech.com> In-Reply-To: From: Sam Samy Date: Mon, 13 May 2019 11:10:27 -0700 Message-ID: Subject: Re: ath10k 5Ghz RSSI low To: Ben Greear Cc: linux-wireless@vger.kernel.org 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 hi Ben, I also looked at the TPC on the stock firmware on the AP. There is a difference. Here is the snippet from stock firmware: TPC Config for channel 5765 mode 10 ************************************************** CTL = 0x10 Reg. Domain = 20 Antenna Gain = 0 Reg. Max Antenna Gain = 12 Power Limit = 63 Reg. Max Power = 60 Num tx chains = 2 Num Supported Rates = 109 ************************************************** **************** CDD POWER TABLE **************** ************************************************** Where as in openwrt it is: ************************************* TPC config for channel 5765 mode 10 ************************************* CTL = 0x10 Reg. Domain = 58 Antenna Gain = 0 Reg. Max Antenna Gain = 0 Power Limit = 60 Reg. Max Power = 30 Num tx chains = 2 Num supported rates = 109 ******************************** So looks like reg ,domain is different even though both are US. (Although I didnt set anything on stock firmware. The countrycode from iwpriv get_countrycode says its 841.) Also, the antenna gain seems different between stock and openwrt firmware.. How to change the reg. domain like in stock firmware in openwrt although I set to US in the uci. root@OpenWrt:/sys# uci show | grep country uhttpd.defaults.country='ZZ' wireless.radio0.country='US' wireless.radio1.country='US' wireless.radio2.country='US' root@OpenWrt:/sys# Thanks On Mon, May 13, 2019 at 10:36 AM Sam Samy wrote: > > > Probably it is a board-file and/or calibration data issue then. > > > > The debugfs 'ath10k/tpc_stats' file may show very low values? > > I am not sure if the values are right. Here is one of the 5Ghz radio stats: > > root@OpenWrt:/sys# cat ./kernel/debug/ieee80211/phy0/ath10k/tpc_stats > > ************************************* > TPC config for channel 5320 mode 10 > ************************************* > CTL = 0x10 Reg. Domain = 58 > Antenna Gain = 0 Reg. Max Antenna Gain = 0 > Power Limit = 46 Reg. Max Power = 46 > Num tx chains = 2 Num supported rates = 129 > ******************************** > ******************* CDD POWER TABLE **************** > ******************************** > No. Preamble Rate_code tpc_value0 tpc_value1 tpc_value2 tpc_value3 > 0 CCK 0x40 0 0 > 1 CCK 0x41 0 0 > 2 CCK 0x42 0 0 > 3 CCK 0x43 0 0 > 4 OFDM 0x 0 36 34 > 5 OFDM 0x 1 38 34 > 6 OFDM 0x 2 38 34 > 7 OFDM 0x 3 38 34 > 8 OFDM 0x 4 34 34 > 9 OFDM 0x 5 38 34 > 10 OFDM 0x 6 38 34 > 11 OFDM 0x 7 38 34 > 12 HT20 0x80 38 34 > 13 HT20 0x81 38 34 > 14 HT20 0x82 38 34 > 15 HT20 0x83 38 34 > 16 HT20 0x84 38 34 > 17 HT20 0x85 36 34 > 18 HT20 0x86 34 34 > 19 HT20 0x87 32 32 > 20 HT20 0x90 38 38 > 21 HT20 0x91 38 38 > 22 HT20 0x92 38 38 > 23 HT20 0x93 38 38 > 24 HT20 0x94 38 38 > 25 HT20 0x95 36 36 > 26 HT20 0x96 34 34 > 27 HT20 0x97 32 32 > 28 HT40 0x80 37 34 > 29 HT40 0x81 37 34 > 30 HT40 0x82 37 34 > 31 HT40 0x83 37 34 > 32 HT40 0x84 37 34 > 33 HT40 0x85 35 34 > 34 HT40 0x86 33 33 > 35 HT40 0x87 31 31 > 36 HT40 0x90 37 37 > 37 HT40 0x91 37 37 > 38 HT40 0x92 37 37 > 39 HT40 0x93 37 37 > 40 HT40 0x94 37 37 > 41 HT40 0x95 35 35 > 42 HT40 0x96 33 33 > 43 HT40 0x97 31 31 > 44 VHT20 0xc0 38 34 > 45 VHT20 0xc1 38 34 > 46 VHT20 0xc2 38 34 > 47 VHT20 0xc3 38 34 > 48 VHT20 0xc4 38 34 > 49 VHT20 0xc5 36 34 > 50 VHT20 0xc6 34 34 > 51 VHT20 0xc7 32 32 > 52 VHT20 0xc8 31 31 > 53 VHT20 0xc9 30 30 > 54 VHT20 0xd0 38 38 > 55 VHT20 0xd1 38 38 > 56 VHT20 0xd2 38 38 > 57 VHT20 0xd3 38 38 > 58 VHT20 0xd4 38 38 > 59 VHT20 0xd5 36 36 > 60 VHT20 0xd6 34 34 > 61 VHT20 0xd7 32 32 > 62 VHT20 0xd8 31 31 > 63 VHT20 0xd9 30 30 > 64 VHT40 0xc0 37 34 > 65 VHT40 0xc1 37 34 > 66 VHT40 0xc2 37 34 > 67 VHT40 0xc3 37 34 > 68 VHT40 0xc4 37 34 > 69 VHT40 0xc5 35 34 > 70 VHT40 0xc6 33 33 > 71 VHT40 0xc7 31 31 > 72 VHT40 0xc8 30 30 > 73 VHT40 0xc9 29 29 > 74 VHT40 0xd0 37 37 > 75 VHT40 0xd1 37 37 > 76 VHT40 0xd2 37 37 > 77 VHT40 0xd3 37 37 > 78 VHT40 0xd4 37 37 > 79 VHT40 0xd5 35 35 > 80 VHT40 0xd6 33 33 > 81 VHT40 0xd7 31 31 > 82 VHT40 0xd8 30 30 > 83 VHT40 0xd9 29 29 > 84 VHT80 0xc0 36 34 > 85 VHT80 0xc1 36 34 > 86 VHT80 0xc2 36 34 > 87 VHT80 0xc3 36 34 > 88 VHT80 0xc4 36 34 > 89 VHT80 0xc5 34 34 > 90 VHT80 0xc6 32 32 > 91 VHT80 0xc7 30 30 > 92 VHT80 0xc8 29 29 > 93 VHT80 0xc9 28 28 > 94 VHT80 0xd0 36 36 > 95 VHT80 0xd1 36 36 > 96 VHT80 0xd2 36 36 > 97 VHT80 0xd3 36 36 > 98 VHT80 0xd4 36 36 > 99 VHT80 0xd5 34 34 > 100 VHT80 0xd6 32 32 > 101 VHT80 0xd7 30 30 > 102 VHT80 0xd8 29 29 > 103 VHT80 0xd9 28 28 > 104 HTCUP 0x40 36 36 > 105 HTCUP 0x 0 36 34 > 106 HTCUP 0x40 36 36 > 107 HTCUP 0x 0 36 34 > 108 HTCUP 0x 0 36 34 > 109 HTCUP 0x7a 34 34 > 110 HTCUP 0x8a 32 32 > 111 HTCUP 0x a 30 30 > 112 HTCUP 0xee 27 27 > 113 HTCUP 0xa6 26 26 > 114 HTCUP 0x90 36 36 > 115 HTCUP 0x1d 36 36 > 116 HTCUP 0x80 36 34 > 117 HTCUP 0x41 36 36 > 118 HTCUP 0xd9 36 36 > 119 HTCUP 0x64 34 34 > 120 HTCUP 0xf9 32 32 > 121 HTCUP 0x 0 30 30 > 122 HTCUP 0x 0 27 27 > 123 HTCUP 0x 0 26 26 > 124 HTCUP 0x64 0 0 > 125 HTCUP 0x 0 37 34 > 126 HTCUP 0x31 0 0 > 127 HTCUP 0x 4 37 34 > 128 HTCUP 0x 0 38 34 > *********************************** > ******************************** > ******************* STBC POWER TABLE **************** > ******************************** > No. Preamble Rate_code tpc_value0 tpc_value1 tpc_value2 tpc_value3 > 0 CCK 0x40 0 0 > 1 CCK 0x41 0 0 > 2 CCK 0x42 0 0 > 3 CCK 0x43 0 0 > 4 OFDM 0x 0 36 36 > 5 OFDM 0x 1 38 38 > 6 OFDM 0x 2 38 38 > 7 OFDM 0x 3 38 38 > 8 OFDM 0x 4 34 34 > 9 OFDM 0x 5 38 38 > 10 OFDM 0x 6 38 38 > 11 OFDM 0x 7 38 38 > 12 HT20 0x80 38 38 > 13 HT20 0x81 38 38 > 14 HT20 0x82 38 38 > 15 HT20 0x83 38 38 > 16 HT20 0x84 38 38 > 17 HT20 0x85 36 36 > 18 HT20 0x86 34 34 > 19 HT20 0x87 32 32 > 20 HT20 0x90 38 38 > 21 HT20 0x91 38 38 > 22 HT20 0x92 38 38 > 23 HT20 0x93 38 38 > 24 HT20 0x94 38 38 > 25 HT20 0x95 36 36 > 26 HT20 0x96 34 34 > 27 HT20 0x97 32 32 > 28 HT40 0x80 37 37 > 29 HT40 0x81 37 37 > 30 HT40 0x82 37 37 > 31 HT40 0x83 37 37 > 32 HT40 0x84 37 37 > 33 HT40 0x85 35 35 > 34 HT40 0x86 33 33 > 35 HT40 0x87 31 31 > 36 HT40 0x90 37 37 > 37 HT40 0x91 37 37 > 38 HT40 0x92 37 37 > 39 HT40 0x93 37 37 > 40 HT40 0x94 37 37 > 41 HT40 0x95 35 35 > 42 HT40 0x96 33 33 > 43 HT40 0x97 31 31 > 44 VHT20 0xc0 38 38 > 45 VHT20 0xc1 38 38 > 46 VHT20 0xc2 38 38 > 47 VHT20 0xc3 38 38 > 48 VHT20 0xc4 38 38 > 49 VHT20 0xc5 36 36 > 50 VHT20 0xc6 34 34 > 51 VHT20 0xc7 32 32 > 52 VHT20 0xc8 31 31 > 53 VHT20 0xc9 30 30 > 54 VHT20 0xd0 38 38 > 55 VHT20 0xd1 38 38 > 56 VHT20 0xd2 38 38 > 57 VHT20 0xd3 38 38 > 58 VHT20 0xd4 38 38 > 59 VHT20 0xd5 36 36 > 60 VHT20 0xd6 34 34 > 61 VHT20 0xd7 32 32 > 62 VHT20 0xd8 31 31 > 63 VHT20 0xd9 30 30 > 64 VHT40 0xc0 37 37 > 65 VHT40 0xc1 37 37 > 66 VHT40 0xc2 37 37 > 67 VHT40 0xc3 37 37 > 68 VHT40 0xc4 37 37 > 69 VHT40 0xc5 35 35 > 70 VHT40 0xc6 33 33 > 71 VHT40 0xc7 31 31 > 72 VHT40 0xc8 30 30 > 73 VHT40 0xc9 29 29 > 74 VHT40 0xd0 37 37 > 75 VHT40 0xd1 37 37 > 76 VHT40 0xd2 37 37 > 77 VHT40 0xd3 37 37 > 78 VHT40 0xd4 37 37 > 79 VHT40 0xd5 35 35 > 80 VHT40 0xd6 33 33 > 81 VHT40 0xd7 31 31 > 82 VHT40 0xd8 30 30 > 83 VHT40 0xd9 29 29 > 84 VHT80 0xc0 36 36 > 85 VHT80 0xc1 36 36 > 86 VHT80 0xc2 36 36 > 87 VHT80 0xc3 36 36 > 88 VHT80 0xc4 36 36 > 89 VHT80 0xc5 34 34 > 90 VHT80 0xc6 32 32 > 91 VHT80 0xc7 30 30 > 92 VHT80 0xc8 29 29 > 93 VHT80 0xc9 28 28 > 94 VHT80 0xd0 36 36 > 95 VHT80 0xd1 36 36 > 96 VHT80 0xd2 36 36 > 97 VHT80 0xd3 36 36 > 98 VHT80 0xd4 36 36 > 99 VHT80 0xd5 34 34 > 100 VHT80 0xd6 32 32 > 101 VHT80 0xd7 30 30 > 102 VHT80 0xd8 29 29 > 103 VHT80 0xd9 28 28 > 104 HTCUP 0x40 36 36 > 105 HTCUP 0x 0 36 36 > 106 HTCUP 0x40 36 36 > 107 HTCUP 0x 0 36 36 > 108 HTCUP 0x 0 36 36 > 109 HTCUP 0x7a 34 34 > 110 HTCUP 0x8a 32 32 > 111 HTCUP 0x a 30 30 > 112 HTCUP 0xee 27 27 > 113 HTCUP 0xa6 26 26 > 114 HTCUP 0x90 36 36 > 115 HTCUP 0x1d 36 36 > 116 HTCUP 0x80 36 36 > 117 HTCUP 0x41 36 36 > 118 HTCUP 0xd9 36 36 > 119 HTCUP 0x64 34 34 > 120 HTCUP 0xf9 32 32 > 121 HTCUP 0x 0 30 30 > 122 HTCUP 0x 0 27 27 > 123 HTCUP 0x 0 26 26 > 124 HTCUP 0x64 0 0 > 125 HTCUP 0x 0 37 37 > 126 HTCUP 0x31 0 0 > 127 HTCUP 0x 4 37 37 > 128 HTCUP 0x 0 38 38 > *********************************** > TXBF not supported > *************************** > root@OpenWrt:/sys# > > > Thanks > > On Mon, May 13, 2019 at 10:27 AM Ben Greear wrote: > > > > On 5/13/19 10:26 AM, Sam Samy wrote: > > > hi Ben, > > > > > >> Hello, what firmware are you using (ath10k-ct, or QCA?) If using -ct firmware, > > >> please try QCA firmware and let me know if that fixes the problem. > > >> > > > I tried both. Both have the same problem. I tried various versions > > > of the both(-ct and QCA) firmware as well. All have the same problem. > > > > Probably it is a board-file and/or calibration data issue then. > > > > The debugfs 'ath10k/tpc_stats' file may show very low values? > > > > Thanks, > > Ben > > > > > > > > Thanks > > > > > > On Mon, May 13, 2019 at 10:00 AM Ben Greear wrote: > > >> > > >> On 5/13/19 9:56 AM, Sam Samy wrote: > > >>> Hi, > > >>> I installed master branch openwrt onto Asus MAP-AC2200 AP. It has tri > > >>> band. Its based on IPQ4019 DK04 QCA reference platform. 2 radios > > >>> (2Ghz/5Ghz) on AHB bus and one 5GHZ on PCIe bus. Its generally working > > >>> fine except one problem in 5Ghz. On both the 5Ghz radios the RSSI is > > >>> pretty low on any channel I put it in. In one feet range I see -60dB > > >>> RSSI, where as the stock firmware that came with the AP gives an RSSI > > >>> of -36dB at one foot distance.The downstream transmit rates are MCS8/9 > > >>> for most part. The 2Ghz is working fine. Its using the cal data from > > >>> the flash that came with the AP. > > >>> > > >>> Can you please suggest anyway to debug this or improve the RSSI? > > >>> > > >>> Thanks you! > > >>> > > >> > > >> Hello, what firmware are you using (ath10k-ct, or QCA?) If using -ct firmware, > > >> please try QCA firmware and let me know if that fixes the problem. > > >> > > >> Thanks, > > >> Ben > > >> > > >> -- > > >> Ben Greear > > >> Candela Technologies Inc http://www.candelatech.com > > >> > > > > > > > > > -- > > Ben Greear > > Candela Technologies Inc http://www.candelatech.com > >