Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3600071pxb; Mon, 24 Jan 2022 13:13:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcCHjpmn/V6JjM/a6DIOUBGyk4qRu8RMNC72+Rdmlxhn9wd+5zHAFnFMkCAk+gOaNmZYtf X-Received: by 2002:a17:90a:c301:: with SMTP id g1mr173664pjt.132.1643058795678; Mon, 24 Jan 2022 13:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058795; cv=none; d=google.com; s=arc-20160816; b=PYV8T9KIWEm+2EM1dGIEVA1na2rprJatDyel1QoGOiVaL2kDF7U6tvmBhripdPx0TG bzamYzR00TIrR6TxKPJceotMvM8lb+EX3hYLzy3AjmU5XY9pbzOdVyk60c7ST5YidFeq 6Em8FPHpM3W0kyhjZ0zNXnzneKD/dNFSww+C2HBjRtyLnRdK35LgIUzNpqo7mUNrmzV6 Lj8Z+WIwvq1zrbkVf+TtA1rzeZ2td6Qz+Auu8oeGpzSLkNxv/0awvuABQ7+q+Io5dO3T 22iYnldQTOrPHPNJs7bqLT8Jvt7buBxEBFQMx8+2xjdqpRH4hJIii04xnL38fUiugWT1 VkZw== 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=xFJmO0XVKDT5gSjCUTKBDmroQpOffF9IcQUFJAfSwQQ=; b=YbW/+v/uFMPRXnFfYan3r61PpDWAsp1hB4GthZvSRx62J1bfECPyuW+9yt8GpoJBLU 9ZzPCklrqsVkL33BgE1iZtytV2cqoq4yoO8KUcrCn3kfsTSCu9feF82mpGDUfnswZ5Cx qWI1AUjYW8nlQ1p57ce3PbGpMYmRdaBXyYrk/evKYuyBcqKuXO5WmYWVK/It/qIe1oqE cqrtU4aHkvkQms8JYNNB764aTvauQJTYsuXlfditubqj4toWUWMjOEGGiaNTMq84KWpS yo4OXihHQgmEkAdyYPwf3h3GQFcgVrCG0Yl5iBihF9111P7Qrn7VsZetw8QAb2PCF7bB CSyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xyl8Hxsu; 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 20si13454716pll.0.2022.01.24.13.13.02; Mon, 24 Jan 2022 13:13:15 -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=xyl8Hxsu; 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 S1387573AbiAXUg5 (ORCPT + 99 others); Mon, 24 Jan 2022 15:36:57 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:55276 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352027AbiAXUOd (ORCPT ); Mon, 24 Jan 2022 15:14:33 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id D7B9AB811F9; Mon, 24 Jan 2022 20:14:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04373C340E5; Mon, 24 Jan 2022 20:14:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055270; bh=N+Vw4ppJrAbq8nBfE+avYXFA3Ij5CFYg7nd/2ztO8ks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xyl8HxsuSdNqaOmyLcn8Q8L9OIYrD5Fu2ReG5msilLuV2JZDViAMWQlKY73XeYzx2 7oDbXEzqm+3QFKHYUPTzfxEwaUMKikSb8OrhrUnV4mzQik5LHMrILf8Ni7AZWf2/Ar OB40TSa7xgLgOGopyWvrmOjU6aDWQz5iKk9Zgw+g= 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 5.15 096/846] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND Date: Mon, 24 Jan 2022 19:33:33 +0100 Message-Id: <20220124184104.302583562@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 6ac770d8271eb..0ebef42feb695 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2679,7 +2679,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; } @@ -2694,7 +2694,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