Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1915678pxx; Sat, 31 Oct 2020 02:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC/KchtINoqFBFFHWFvnx0KaYQm0s5YE3vWGw/3IbDRwhIXiqJmn5iR+6gy2KC8EzIf+8h X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr5942498ejw.94.1604136533347; Sat, 31 Oct 2020 02:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604136533; cv=none; d=google.com; s=arc-20160816; b=YQKdz4BG8HrH08Yq3MteQWGzES5X4beJLH8AsMGRANGX9vqvMBuN2FV9e2CiqkjTbf V1j7QFV444xwmmDKMslpkVDYOK3om8b312xqB6y0OUZQct6oeqhXXMMPA2rKsR9eXsKO Vt/9+6jyD64dUIxbRbmKzMTNBJud5hf+FoyPFPrX8eF01pnZnLEdj67U+TQTnWVLFL8n FyBGwVCJo9YjmRe6bx83miARBnsLka5bONPflWt70yHYhT9HPlOpb9sLTOxCymNtmYAR WKKUiPgURyT2lKiRuyxH6v06BKciI5YdUC0D3eYUcJJmQPQ9Bswivg3GyKqnhztgrQ8x xZ1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OvuOPTTNBuzvE6VSgAHKvB9UeM82FwMD7hIlgUB7AEg=; b=TopALKG6y+CtO05Jf9f0bc7mQI3l/EpdI+2p6c6LaK0VcK8EbF/oRfFO9HtehcIRl/ OYV1X/B+/1eYJAxJuINZIVFI93n0C/vnYWhgdCbAeq1CtTMWERlB2dIraXZMHS4vm1vH /nKp6lAOewMT0W6sKSLL17Z5Ubga09q0eqhHQ0XxQkIP8jgUYKO7gRMBGBjJjyXAyorW 4YJLZsKRL0zdNqJ/bV0x8FxEV+g16pDHXZuY/2UN4NtR54b8bLiyhJ1b4ZPwXskhdV+j eSjnbklqAbGDXuMrciOehRSYmWmVp9uD4+JbQw5PPT0zOBWC1TMm6HkeMEuzcCfSTI58 KnsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XtbtCa+r; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y98si812648ede.197.2020.10.31.02.28.17; Sat, 31 Oct 2020 02:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XtbtCa+r; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbgJaJ2F (ORCPT + 99 others); Sat, 31 Oct 2020 05:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbgJaJ2E (ORCPT ); Sat, 31 Oct 2020 05:28:04 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3107EC0613D5 for ; Sat, 31 Oct 2020 02:28:03 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id l16so9167572eds.3 for ; Sat, 31 Oct 2020 02:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OvuOPTTNBuzvE6VSgAHKvB9UeM82FwMD7hIlgUB7AEg=; b=XtbtCa+rqz++YljW0lMDjiLiqVjQLC625v1n69pWBOtOqb53H0CdVD+DnsTS4QJCsY 6iKiXQ+JiDyJV5UxkTTCpuJhahrkp8EOTAb/c85Y+kEkhUEvISB5UrhuKVcHiCWQlfmf PArpPyZf/nPkjhvMflTFq6BAa4kgKU+5LTnlyCosLPWhJ4kOd2q6EjUubefXC8lHu+Iz 6uWUkYnjE+eSmaYCyiTlzpaGwQkyOTgFiK2JSLumFmBtjsYyRHnLc32h+CMhNFuYdzI4 NWXDHmWV1Owr/QTvo3+1yBbK+ZJ1c9RdUYPly/2PjLISmM/HvM1ho2LKEi+jiDgkOqHo Q9mQ== 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=OvuOPTTNBuzvE6VSgAHKvB9UeM82FwMD7hIlgUB7AEg=; b=o1swiUzybvv9Orc13rJEmYtUi9DwLS7hrTXnEUqxiWePAsT+t7XqESEn3AnM5pQfEB 0LnTRHSC0z7jKW8+OwSIj7IHGAtZpi3z4ZGvtEgsVnd8iaNVtNxcs8TmT4C2GuejE/xU GqB46FKsFU6/L9CFJQE0YkCsYOv9Zi1vm7ilI+K48C6xwdc1l9r2boGpM3hYdI0oaCPl Hwv3XNlMlF02CwJL2EXiXBMLgTr2I2MJxeMXQvGURj4obWnvC1yMjSyKL+Dfi6GkaeXy VieZ6FZzjugGuZiAHHx6fdZ79BmCb8z++Wf7WDMujjykzZXDOSNmB+8gsiwYMUzxID3R 1XQA== X-Gm-Message-State: AOAM530ii/asw0cgf6GUcfcyJ6j+zjpK8FIY2hwWgXwfQ7ALcZ2b146P itTGWoSv7ppxB0lNBfA8n6rgDS5sQbcAfamQJJGiPw== X-Received: by 2002:a05:6402:287:: with SMTP id l7mr6620065edv.212.1604136481893; Sat, 31 Oct 2020 02:28:01 -0700 (PDT) MIME-Version: 1.0 References: <20201031022311.1677337-1-bryan.odonoghue@linaro.org> <20201031022311.1677337-2-bryan.odonoghue@linaro.org> In-Reply-To: <20201031022311.1677337-2-bryan.odonoghue@linaro.org> From: Loic Poulain Date: Sat, 31 Oct 2020 10:33:57 +0100 Message-ID: Subject: Re: [PATCH 1/3] wcn36xx: Set LINK_FAIL_TX_CNT non zero on wcn3620/wcn3660 To: "Bryan O'Donoghue" Cc: Kalle Valo , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, Shawn Guo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org HI Bryan, On Sat, 31 Oct 2020 at 03:22, Bryan O'Donoghue wrote: > > The firmware parameter LINK_FAIL_TX_CNT maps to the prima configuration > file parameter gLinkFailTxCnt and is described as: > > quote: " If within gLinkFailTimeout period(values is mentioned in msec) if > FW doesn't receive acks for gLinkFailTxCnt number of packets, then > link will be disconnected." > > The downstream description sets a minimum value of 1000 a maximum value of > 60000 and a default value of 6000, however it appears that unless we > actually set this value deliberately firmware defaults it to 0. > > Setting this value to non-zero results in the firmware doing link > monitoring. > > In conjunction with ieee80211_hw_set(wcn->hw, CONNECTION_MONITOR); this > change effects offload of link monitoring to the firmware. > > Tested with: > 'CNSS-PR-2-0-1-2-c1-74-130449-3' wcn3620 > 'CNSS-PR-2-0-1-2-c1-00083' wcn3680 > > Signed-off-by: Bryan O'Donoghue > --- > drivers/net/wireless/ath/wcn36xx/smd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c > index 766400f7b61c..262978371c1f 100644 > --- a/drivers/net/wireless/ath/wcn36xx/smd.c > +++ b/drivers/net/wireless/ath/wcn36xx/smd.c > @@ -78,6 +78,7 @@ static struct wcn36xx_cfg_val wcn36xx_cfg_vals[] = { > WCN36XX_CFG_VAL(MAX_ASSOC_LIMIT, 10), > WCN36XX_CFG_VAL(ENABLE_MCC_ADAPTIVE_SCHEDULER, 0), > WCN36XX_CFG_VAL(ENABLE_DYNAMIC_RA_START_RATE, 133), /* MCS 5 */ > + WCN36XX_CFG_VAL(LINK_FAIL_TX_CNT, 200), Could you set the value to the minimum value described in the downstream driver (i.e 1000)? Not sure a lower value is supported on all wcn36xx firmware versions. So better to align with the recommendations. > }; > > static struct wcn36xx_cfg_val wcn3680_cfg_vals[] = { > -- > 2.28.0 >