From patchwork Sat Oct 31 02:23:10 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: 320050 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1929000ilc; Fri, 30 Oct 2020 19:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxll33AIsjP6AtLILgmiYbod8u5+TChwyRfJAAZeNezhj93/rQwJA/WSuD8W1zxfALCHxzD X-Received: by 2002:a17:906:a250:: with SMTP id bi16mr5065356ejb.265.1604110948033; Fri, 30 Oct 2020 19:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604110948; cv=none; d=google.com; s=arc-20160816; b=QiUF8RvpHm5eAN8eF0rSFDPoCTY8+NarnkHMmxXzPuJLSXaQa+jRsHzpMZNydd91VH EK+vx+PMUzD04D0bdk9KXNbyjEnPF0vu7POoB5RwFaNZlhvn32ujdrH3Z/o9UI/mODTe cjlWrvkYBZsFegwuhJs/tSWYpiXKhSWmSQqnmvBWWL7n2mJtp6B6fSeR4Qhy6crOBln4 BzdgX9waVKRAznmymneCq+hMb1FASqAyZUwVYzgQLJgjLzmuE2Bt7+Oq4J7eIoKIKqpN jzQHjgzwqIbEJO0LKe9wrC9wYSvNq4wsHTwpsAcgmYXHsF26ylNA2s813sor1MjSvh/D 19UQ== 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=mUI8uokniosnGztMd9PbWb2rTsWcY9hIhJbHnpPnoa20UrNlnyZLMiB9fiRQfIp7oN 9HL9Kj9MpQDqKN0sODRkzXq7he0KvLSNqXmekofThaJYdTA6tQR7GYYzWepQcPNkNLhS WP9kf344wfPREaU5WqKZWcD9ZlrXOJs52w7nNLwzTE2SepkdDJxhnKo/6/l4uF7Smmt7 0yYGpIC8n9zHR7MO1KlZC4I/1v7UZgiMZA4wlgDoYGeFeUfx6OIu9E/bMZWe6k0WVnbh 9IlWBnjj/kXJ152DLAVlMHqgZRG/1ZvaJQzCiMm4Dsfxi/vpxV4bFLZMszp49u6Murkv raRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dAfcW65M; 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 sa7si6246758ejb.618.2020.10.30.19.22.27; Fri, 30 Oct 2020 19:22:28 -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=dAfcW65M; 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 S1726220AbgJaCWY (ORCPT + 2 others); Fri, 30 Oct 2020 22:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgJaCWY (ORCPT ); Fri, 30 Oct 2020 22:22:24 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD44AC0613D5 for ; Fri, 30 Oct 2020 19:22:23 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id i16so2967547wrv.1 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=AtYobGQeIsOA41x9xn4O9D84Sqas95KTsM7EDwW2NZ8=; b=dAfcW65M3JWCQ89qzDq35zvSwoCEf7TBBXpiI1U+E0xvze7LbWUsAynF2RlanhZx9r FMYZ7Rv97zBH3OywmDwZUtBWvKh120hB+icIr3RdjNOCBiTnlAaaydlUR2BTyiUo4rLT w+n5Vq5JTC8yUdBaMRxYluz61eenZmO61Dp6eHe1zUDd0UJUhajE90oglYZ1gEXf7ODN TnaJU1IvVOyoOr1/zXQYZZMZR8VnGFzJIsZD3xoT6np7h0Iq566aauq60vhPlP1x4z4u voAHot+nQv3mHANXgRwXxL65iEgl0R/Rm8sCCQ4WEBcVAdz2gKX32vQnxtP8Z773Izcp bxoQ== 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=JrERhnNrHROWO8MfCoplVcxeyVTixQFbCD5M+sf8jniu+MylDPYtKGdAp5hkjtUNM5 6TzvOLmh2MCJsMZ/WUECOA50I1QJyl+AgRXd+s3jL9P6hZLjlaD8yTkoMswDoQNPNk7l CYnGmqI3P6kAgxdhjImOl/lAZt/uACuO0ib9G1VemxervGc2Bx/p9u4+RPWA5tyQyrFQ go1j6ko3ppWPxmUXr/BIst1x4FV4fqPY65lAwg8+qiDq7VROL6NP7JmaAscKj8/Ppo0f pNjthEaU4tPqWfn1C4KamvFZsKL1C90dZ8lhlszCT0CUBMcGQD6Q+Oa5OB7HICVeRZFU UP8g== X-Gm-Message-State: AOAM530Ruryi9ifgRWsi7gS6s1MVkBtyp08SB/0/OdT/wjNayihmhBVA vgk0Lf1exWvmio5wfODWFQpdarZu/3USYQ== X-Received: by 2002:adf:dc4b:: with SMTP id m11mr6377266wrj.47.1604110941550; Fri, 30 Oct 2020 19:22:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Oct 2020 19:22:21 -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 2/3] wcn36xx: Enable firmware link monitoring Date: Sat, 31 Oct 2020 02:23:10 +0000 Message-Id: <20201031022311.1677337-3-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 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) |