From patchwork Tue Nov 3 12:17:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 320408 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp4533552ilc; Tue, 3 Nov 2020 04:16:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5CSHIE6PUeL0R5Lsdk6R1BIaejzt80f+TW/k4A2V5dEmlnX7CI1oWOeTLzImkiTJt0UjF X-Received: by 2002:a50:d2c5:: with SMTP id q5mr11463864edg.158.1604405804448; Tue, 03 Nov 2020 04:16:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604405804; cv=none; d=google.com; s=arc-20160816; b=kvyXHvaYpybgpCNGn6/KAOXvzyrMtYKRel9J0PD1rSE/TqAV3UJu1gzob9O6V/w5Jm C8JfcoQJbhDphlfCIwsoCXgEJZHIn9uakrbMn8YNHcdfMxgWewl8vK0YAgPdFNYf4RLX x+J4CgYwsqbH0YJn4NxTAz2dELlmVw1DHF8Dg8jvgDH9d2uAW5lCr9/I+bfBAWMW1deo 6kVoeLSyY96p2Dgjm0JpuUENaWx/8L28jf6yjtF99UNK4xfsl1h2wNvHKLPM5O1ZXfRH o3i9I1kt8q32T2O+j9EMQJIPqvNvxG8+Kxo9mGtSORX3MV1fnh1idlRQaa52NUc9fEBa AkxA== 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=AtYobGQeIsOA41x9xn4O9D84Sqas95KTsM7EDwW2NZ8=; b=l6QtgvQ3qug3HKSX26djuDhqElmXOV2eIL4CuRIJ1x2F/v85Rvs/5FjkKHJ2GTiQGl uBVzN4YNkuhRk+8YLSdMybcqilijZi5c1QAuVtnPpSznbzEWAno4b4qFzQBBEXqvFcCB uvvb2aBcs0M65nEvt3YMvELfhefOPDZD9h8nY4bETKUUQ2aHnfkj/pv9L0NzjwhSAxNs MosRP2gpdQmoJgt3AKei+j3LpU00wWKRyA8xkYqSYl0yMrIFGHdAw8yteTr38bLUcwLc lrd/6yoIx4gWUuv9kbKunK1rgYQiF2+accan8eXoesVSnnfwImTsaWj7aZu8MrO3OkrW MHPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bqSQSaSz; 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 t2si13601854edj.427.2020.11.03.04.16.44; Tue, 03 Nov 2020 04:16:44 -0800 (PST) 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=bqSQSaSz; 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 S1729030AbgKCMQn (ORCPT + 2 others); Tue, 3 Nov 2020 07:16:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728168AbgKCMQm (ORCPT ); Tue, 3 Nov 2020 07:16:42 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04134C0613D1 for ; Tue, 3 Nov 2020 04:16:42 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id a9so18281169wrg.12 for ; Tue, 03 Nov 2020 04:16:41 -0800 (PST) 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=AtYobGQeIsOA41x9xn4O9D84Sqas95KTsM7EDwW2NZ8=; b=bqSQSaSzFf2lIASC3v6o/0ubrIkOy+WrVQu6Zj5VP3mjYYKf6qsyFAIHwbqDtzTIPl q2eCzOTTPup91Qg/J6h/fcn585CWG4TgI3bbPzKUL7rWWpd21TayPVv7kX4tS8Id5/26 1AWAOnRcq/jwRRkvqrQ91703Adf6LYsbmIFSDwmigCeaFA60DSdD32LU25EhdeDElmf4 n0nTV4BIGYnwngGCRsJiE6gYp56wFSNsrgzDiVizpsHP4/DzKPaK0xbss0k4KEMVEknD Z0ORxG8eFHKkCHUvqWI5PhD5ZQdf0XDEAFosaius6KQbc+31s60CE6wZhOAf3JSQKv85 V+zQ== 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=AtYobGQeIsOA41x9xn4O9D84Sqas95KTsM7EDwW2NZ8=; b=eePNvyQhv+8v8twdJtkbneuWW1/KrKsKRHt+9dV4ckdQezY5Y2t7CTrWoAGNV7wEfl YQLSqasWcrX6u3XZqmgPSKf8Fc3UBtdc7ljWfxFx7LPpvz0T0VgRq+9m/F1UH4nlB46I RusIWD1f8Be1yS3Fe44OVNrTlvTMbdiz0fbhqRKO/yk9rdoRABoUmpG6Z/uxD9QvOk2N NTpySSHJeWralxsasBBhSi04iI+WH+xyUWCVipOX/zI06uRzz3chQ7kNKjeU6MYtH4oS mWs85B1WX53SPmYKEZNk2gHFC9eFYXvPzPf/Ux7oBJGqsBE2X5diNknTNA9jc02lswLn 1pzw== X-Gm-Message-State: AOAM531b4F00kuuU6F79tWeisVjujCCGJxBBpFznxIyCPIkC+YTorEAD dMX7tEVZt9bGNBYGb2yQc+83Ag== X-Received: by 2002:a5d:5261:: with SMTP id l1mr27881738wrc.105.1604405800755; Tue, 03 Nov 2020 04:16:40 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id z6sm2678210wmi.1.2020.11.03.04.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 04:16:40 -0800 (PST) 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 v2 2/3] wcn36xx: Enable firmware link monitoring Date: Tue, 3 Nov 2020 12:17:34 +0000 Message-Id: <20201103121735.291324-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201103121735.291324-1-bryan.odonoghue@linaro.org> References: <20201103121735.291324-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch switches on CONNECTION_MONITOR. Once done it is up to the firmware to send keep alive and to monitor the link state. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 1 + 1 file changed, 1 insertion(+) -- 2.28.0 diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 706728fba72d..e924cc4acde0 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1246,6 +1246,7 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn) ieee80211_hw_set(wcn->hw, HAS_RATE_CONTROL); ieee80211_hw_set(wcn->hw, SINGLE_SCAN_ON_ALL_BANDS); ieee80211_hw_set(wcn->hw, REPORTS_TX_ACK_STATUS); + ieee80211_hw_set(wcn->hw, CONNECTION_MONITOR); wcn->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP) |