Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1918072pxx; Sat, 31 Oct 2020 02:34:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxNL7DFLUABYlw2k79umFzETQT+XbSJGrHSEUdTPptoPJxsOCkHh79htEfeA5ReW+5ELoB X-Received: by 2002:a50:e041:: with SMTP id g1mr6935464edl.385.1604136870982; Sat, 31 Oct 2020 02:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604136870; cv=none; d=google.com; s=arc-20160816; b=cH2opHK4SmkkQhxUDVuSyhb00QjkbaYcTsBjtYxh3gVwOinFVwtRtxoiEMk16YCrYX 3uIW7Hs5+jQkZGh4A2ZPvBOs9Z7RkiI76jjZcvYsoqjDJM3H+pVQdEUwK//kT39m5RTV PfEM2BBctNBRhQkNgw3rnV9wFQ1SeEnBCndW/gUf3O9P+bibSYNvAqeOtQZqOvV4svzM R1RiURPItDb6dJHc9VsBndvDMB6ZfmZdvUkQwkTcXKP7NniwzDN8ATlTxwdxH+nPI74p lUVg9M5x4L5RQcPN4b8U0xfgW30DzOc6lqZS6sN7M1Isk/V3wmjMMFj4wgPPndpGE/s2 fKQQ== 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=vCM2e3iv/W0Mv/aI2ozgygl+TGhRSA93U6OS9gBPIUE=; b=yyq6VcicR5S+xoCAa9ggwssmQNl3uIi/zmHfLm9+AQo1qjbXe6V0LaYAfEe6qYjXB4 1GMnOf2iSzrBNjX58Ehr4jO2XI7GjPvhvSDQehriRm9vf9zCegMxcjAwfaCM77BH9IWL kirSRBUeBQ0zmFVipPf96DGRR/D+A1sA23MLGv9JDYowUlcre/wwJsJloLtQRj+P0p+h 54XU+WssxyRQHUtIMeIXgJya8LHn+DX3kzE7Rbd2/BSDMDawXctpWF9NTdXPRo2YJ6Mk ankOdpqmRU2xUBB1sO7ArJaahDjndjs6sT1tzKAeAXrOE2nutrrPchyeLft7CtVGv/gW XA0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pb5CwuuH; 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 l13si7216862ejg.735.2020.10.31.02.34.06; Sat, 31 Oct 2020 02:34:30 -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=Pb5CwuuH; 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 S1726528AbgJaJd5 (ORCPT + 99 others); Sat, 31 Oct 2020 05:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbgJaJd4 (ORCPT ); Sat, 31 Oct 2020 05:33:56 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79D3AC0613D5 for ; Sat, 31 Oct 2020 02:33:56 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id o21so4858565ejb.3 for ; Sat, 31 Oct 2020 02:33:56 -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=vCM2e3iv/W0Mv/aI2ozgygl+TGhRSA93U6OS9gBPIUE=; b=Pb5CwuuH/MVEKL+8pAt+/hzPBkCLISzg9k2lXwqZczOqTxdMLg6wSm5ELjTTwzREeh TyO3PPpOXg/a+Lap/TOo+iQpso8K+7PBaJpF5d4BRMv+wjKJr8cyHj0UrY+hvpIMXGRq hOJ372BDe/YttqbSGKu9CRv/ocRolgRw6Ykd59Yzv3ipE0RxVzydEOpbLYVfgz8NDEId aRqWfJHgPl4BDko1QKBegfFnySW/7+3N3vn98ZH63iyne0OVOTz955uYMGHBaG31hKOi X9K2EokehrPPq6zVSisMmWZO22zOp6rpUiGkfBwq5ruNfse58FMsjDEpXtnS+bK8RXca F6Ew== 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=vCM2e3iv/W0Mv/aI2ozgygl+TGhRSA93U6OS9gBPIUE=; b=DWIJRD8ZfOPzUOQKPPpvdiS5/41IO0cFPqZCb0OncduZhXonLLve8TsMvOlPgnbGyY rT4sDh9CO/hBxO3TzHbppREzyuO9S7N0gmmTwanpdZtZbXk4FcQ7YIHmYkMmJMI3VsLK YXYzaaIS0wfYTOgRkGmRpr/5VEv4GYukz/M7jO9KOUG12KLmMiIlE+GfIQAOX2bgTMhw 3TqdUsUa3/P5dRlsKjOxZ73usjnp+kp2Wu6gACuRFbgXj0teAoOztaM4Wh5zXAQ9Ep2o r3lA+40Yt/Qrqp2BQri1m3b4/IaxTZCFsTt/tVLmSR5oIonfdc+5oagrq7SShnq87x1e sYng== X-Gm-Message-State: AOAM531zII2/Jsuys9A3ysAoY01vUCVm4iWjP9SLi0mpo7ZnWt6R7iOl TB8LLbs2rOAVP775ubJPMb2WoXjKYyzYr/Jv5W4ZIA== X-Received: by 2002:a17:906:e88:: with SMTP id p8mr6356717ejf.466.1604136835020; Sat, 31 Oct 2020 02:33:55 -0700 (PDT) MIME-Version: 1.0 References: <20201031022311.1677337-1-bryan.odonoghue@linaro.org> <20201031022311.1677337-4-bryan.odonoghue@linaro.org> In-Reply-To: <20201031022311.1677337-4-bryan.odonoghue@linaro.org> From: Loic Poulain Date: Sat, 31 Oct 2020 10:39:50 +0100 Message-ID: Subject: Re: [PATCH 3/3] wcn36xx: Enable firmware offloaded keepalive 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 On Sat, 31 Oct 2020 at 03:22, Bryan O'Donoghue wrote: > > This patch calls wcn36xx_smd_keep_alive_req() on the STA patch immediately > after associating with an AP. > > This will cause the firmware to send a NULL packet out to the AP every 30 > seconds, thus offloading keep-alive processing from the SoC to the > firmware. > > Signed-off-by: Bryan O'Donoghue > --- > drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c > index e924cc4acde0..b514a7b952df 100644 > --- a/drivers/net/wireless/ath/wcn36xx/main.c > +++ b/drivers/net/wireless/ath/wcn36xx/main.c > @@ -910,6 +910,8 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, > * place where AID is available. > */ > wcn36xx_smd_config_sta(wcn, vif, sta); > + wcn36xx_smd_keep_alive_req(wcn, vif, > + WCN36XX_HAL_KEEP_ALIVE_NULL_PKT); There is the wcn36xx_enable_keep_alive_null_packet function (from pmc.c) that you can use. > } else { > wcn36xx_dbg(WCN36XX_DBG_MAC, > "disassociated bss %pM vif %pM AID=%d\n", > -- > 2.28.0 >