Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3564330pxb; Mon, 24 Jan 2022 12:19:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCH/3T69UMrLsaGJ7owMXNbzxu9C3mMchSclSsxDmOj7ZzWPj3b1yBPpLd77YpmWrb+bS4 X-Received: by 2002:a63:3604:: with SMTP id d4mr13201317pga.93.1643055473535; Mon, 24 Jan 2022 12:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055473; cv=none; d=google.com; s=arc-20160816; b=1JMoO8IZVkSe4N5viGfv1pbLfh9XCvC9JO/U+Fh2XqmjnvzJK3slSLG2guZECWxRpo W9YmcQMSAuy2Y4RJWpEq3ri8zw9CPpRX+7xRKAPMTFEtYMpcvpkkRZbUqi9fBA2kbpf7 8B3lOaZn0hMk59agkZ6pRDY6Dy2K/7JBZsvsZvjSfwZOGERGhO4M2p/Ee0UJIcGFvCGj 3RES4OY02vs4EtljQJC0R3cIYLLJEWIFggITgAb06KuI/WyyE3fbX28dO8zBXsJhUZl9 0uLCSkQ+zKf+G3B//p3CE2pUabX+vF9eium7Y0GH4VvcIJHG+rlrXcaXEMjiFPFVVdfF SMCA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0N+xRxpvTAjYNGc0cNv9VP9DcFaEdtKyBUmnIPD88y4=; b=B6fpP0ayAwPdCuxBVxg2p9ZTfAQpCPlNc/By1A1pgr/x2ia+bD2OdnD2KCIP0uIFPW 7r+8GaqqpW7YR2NT1BPWEIPDWjbgJTuJpNd/bp0FHVedLndIWxjIujfbc+ZXdX0Vbhes diLEgU1EkK9JZ/GmEeJgGd9rDFSvXMa+xQsWKxXd4c/av2I6asQereRLghwotQUhNU0J Y2a7a/otfhpTGZZG1Snp/EPSI2DIUTpH6ja5DhFvblQyzc7ENU9CowOvAqZMJ4SQHh0h /uZrWDfDgsFcvp1tTDcWzT0CSLI+whUkR+EN6C0FOmawTRjHEv+P1x7nXVD9kdTGbxfq Zwnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cfeHxaDC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si16087450plh.555.2022.01.24.12.17.41; Mon, 24 Jan 2022 12:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=cfeHxaDC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349666AbiAXTVI (ORCPT + 99 others); Mon, 24 Jan 2022 14:21:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241800AbiAXTNO (ORCPT ); Mon, 24 Jan 2022 14:13:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3456CC08EA44; Mon, 24 Jan 2022 11:04:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C4F9860010; Mon, 24 Jan 2022 19:04:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0800C340E5; Mon, 24 Jan 2022 19:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051066; bh=+yHQkpZqkv1wHMW7qRo2WHGJBgSOI2MtONsWBWU49Z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cfeHxaDCPPAKrSf4VbLSG3GUDSZL7K1Z3u1gAhVEXbPW5NNVgyMG69aZEme72ZF/a 9lm05van6ZupGLRrOpEdqfIO0aZPfQwxQNAEkzCqcYsZK3YM27P8Q7usWTqmvOd5dd HHWpl5Xo321czefxFT8MRkDlB8l0tWLbjHyf2gCY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bryan ODonoghue , Kalle Valo , Sasha Levin Subject: [PATCH 4.14 036/186] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND Date: Mon, 24 Jan 2022 19:41:51 +0100 Message-Id: <20220124183938.288430717@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bryan O'Donoghue [ Upstream commit 588b45c88ae130fe373a8c50edaf54735c3f4fe3 ] Firmware can trigger a missed beacon indication, this is not the same as a lost signal. Flag to Linux the missed beacon and let the WiFi stack decide for itself if the link is up or down by sending its own probe to determine this. We should only be signalling the link is lost when the firmware indicates Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware") Signed-off-by: Bryan O'Donoghue Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20211027232529.657764-1-bryan.odonoghue@linaro.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/wcn36xx/smd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index c5b5fbcd2066c..3073c5af7dae8 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2053,7 +2053,7 @@ static int wcn36xx_smd_missed_beacon_ind(struct wcn36xx *wcn, wcn36xx_dbg(WCN36XX_DBG_HAL, "beacon missed bss_index %d\n", tmp->bss_index); vif = wcn36xx_priv_to_vif(tmp); - ieee80211_connection_loss(vif); + ieee80211_beacon_loss(vif); } return 0; } @@ -2068,7 +2068,7 @@ static int wcn36xx_smd_missed_beacon_ind(struct wcn36xx *wcn, wcn36xx_dbg(WCN36XX_DBG_HAL, "beacon missed bss_index %d\n", rsp->bss_index); vif = wcn36xx_priv_to_vif(tmp); - ieee80211_connection_loss(vif); + ieee80211_beacon_loss(vif); return 0; } } -- 2.34.1