Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1753777pxx; Fri, 30 Oct 2020 19:25:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv0aqMMFmzkPzVhQINqD/YbBI49MIu5hcYoN0KXBMFVhPt4uSDHfrdDvMkmI80RadX26OA X-Received: by 2002:a17:906:2b83:: with SMTP id m3mr5358082ejg.456.1604111108104; Fri, 30 Oct 2020 19:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604111108; cv=none; d=google.com; s=arc-20160816; b=BPHbv9I6RV4g+MTaYC/DCNrswOUqSzKmLKUAxPgAuEuYuj1sqmjj6gIdO9wdPVIPUM xXwKcJyWHM6WKM1Hqx536KkCbRRr6NKfX2B63miWcZ42P46L7l6y3H1dvATyaoYp2SCK l2seTDhj3QpaalphtBVhR5nNsYdNgGR5xy+2e10r+imoh1Kaq9/p5EW7BJk7PRSMDZHY bV+JXeM8LsP1Bq2dNzsi/rJ8w7Auy74ZfDbsiGJ71QqBR6SkXbAWk1A/QxLR1Yod2FKf aTeb5bwpDdVDirjXkK2U7jSw+VTrjRR0lhw0wdUc7XyeF0l6DS9LQuQvgvz0yzl2W8pg mQRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y1pIiv6a1ZuCdegA7YtbhikD3yvgauY5vKag7uzOqxg=; b=zZ4xuCfzENhZbmUKKWTE2tflVVf6gRUvr42/oSGCAMvlNEwwyMPp6axgFxlBNnN8Sj x0bg23Ujz7I3ilxx4c52h2uUDkJam3/vFcv2e3HTo1hpwoF+qQuRk2Mp0uwsVdgO9Eq/ aopsn7YajfXG8QYwE+oVr5xQYvIqbzvPGg0asfnp//Qfj/3MVOWEABByEYxzgVVSrJHO CGgGHkZ1F9sBiB5fPlJC7f3QLCS1SlxjIxV0uTKaA8jJmJlXNeeFOvdSxRCI5RwEjmXw J7id4kMT/7UZ2r/z93N4hst4VUHz1bxm4hAfka+eOnxlng6UjOMV3dqu42c7QlsKfc7V WpEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=znIKUbm6; 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 x8si5926456edq.532.2020.10.30.19.24.44; Fri, 30 Oct 2020 19:25:08 -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=znIKUbm6; 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 S1726227AbgJaCWY (ORCPT + 99 others); Fri, 30 Oct 2020 22:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbgJaCWY (ORCPT ); Fri, 30 Oct 2020 22:22:24 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E13E4C0613D7 for ; Fri, 30 Oct 2020 19:22:23 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id 13so4459376wmf.0 for ; Fri, 30 Oct 2020 19:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y1pIiv6a1ZuCdegA7YtbhikD3yvgauY5vKag7uzOqxg=; b=znIKUbm6pcsh2kvWlrQPUiMw2DCdvdI2MuX112P9jBzTsR+WTiUVTnjxUVFHj8DHBP HZFwsMgpG8vKAzIG29IPz+DxG0eBklr6++ob5qjN9GfSqOpAV78DxYUyjBe1WgIYXdit ZD1ngwGN+ggSBHgWpwK1BdWizTT/seY2eii8bJCoJC5hKHf4F9po7eBF83sszNtqYova ziS2oSqf8g2IryAPqjvo4v81ze0ZQUWPEp1hLEsdOcPOxZA7fCjR2IwWRTQak+5/kcCP DigTyvR8RYPlpWeFcNCxTunO/sfFmPa5Sg+rBEc1QdeCFs1K8ZBEqm3m9YxA9hlaxvl6 J9Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y1pIiv6a1ZuCdegA7YtbhikD3yvgauY5vKag7uzOqxg=; b=OmY1UiYbSEEF5DOVuJ3uF8kYRYkW8+OCecnpMwcztgVgrdQGYg3maVJN5QUNTGC06p DUFFRh2LzNQMMOfYHxfP0H9X+qXVG1JzUrmQFJlC3j4VHptDDFQZRhwceL33TG0xDQ/1 c7vGNuGXq4V0Ey5VsF9bPcYwTgRTLtIEg09fPzWb7msGsmRCrBSxjeTRyNIK69bAd46e mlD6ZSsBxS0PER5GXaRxib0JFgvqBjJjQmEY+BVq5klZkwiOrYniKqRGRODnObVbAhrG VqnkGTTWG1cl6yO2CFS6nj4DnzIsGW0tIkTh0qxsLTub1Lhw2fBjE6WNmQDNrkWB9fQV ujtA== X-Gm-Message-State: AOAM5315VTFvPz56VPjiktiTKbYj0b3KjazJoJDHSpijrzQ7OcUYugzg PobhguahVjvUYRrtWOlLA6J2PQ== X-Received: by 2002:a1c:99d3:: with SMTP id b202mr5751760wme.0.1604110942525; Fri, 30 Oct 2020 19:22:22 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id g4sm6663817wmh.13.2020.10.30.19.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Oct 2020 19:22:22 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Subject: [PATCH 3/3] wcn36xx: Enable firmware offloaded keepalive Date: Sat, 31 Oct 2020 02:23:11 +0000 Message-Id: <20201031022311.1677337-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031022311.1677337-1-bryan.odonoghue@linaro.org> References: <20201031022311.1677337-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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); } else { wcn36xx_dbg(WCN36XX_DBG_MAC, "disassociated bss %pM vif %pM AID=%d\n", -- 2.28.0