Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3694116pxb; Mon, 24 Jan 2022 15:34:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2ZogmfnPFWUnFDPo/JqEi4SWfKWcBFB5U4EfK/BLMRTwxB/4TQEVysrQHHoUsqK8gdIBG X-Received: by 2002:a17:902:b10d:b0:14b:4e8c:4859 with SMTP id q13-20020a170902b10d00b0014b4e8c4859mr6656676plr.95.1643067239860; Mon, 24 Jan 2022 15:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067239; cv=none; d=google.com; s=arc-20160816; b=yixvW4MPL7L65deyncbvj2OvRSoxJZu0k57wzA3fgfbkQS9DpIy8xnYqiN0d1tzGky 0TdemlA6REejj/vEMJKh64FFOj+3YtILl3P55D3F/ffw1P7dwRiS5rry2A84HbSD1wYR HKdQzyCBiYoTL5FpuywPpd2OFnAfSPhQ6Jqk5fTAJGSdY4fzoC7dcjb7TafrTGYz93rK SA2r7nN75aq0279BC9L8PPMrS8/NJL/7MIfD62okNHWtYir+pzp/7/CLdK7W4SPisBoF s2JgEaTF671T2r2iVXoT+2mJRIk2noe4DXXqFR3eRCo5oeR+WFUYerGjxkBOJZcE4GrZ WUOQ== 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=eFtmS+PyXgc64n0g9k2Is0dd1jIMag2ph2prkB+TKzI=; b=gFPh3hMfZQiAdfvKOgJBNVtgbgUYoOBvPGOlVRQ7nQqHF5iOMAdLaNqyh6BWhNItg0 2ZYxpLZDoFfYBSHzaSOxzI9gJhdCRAYevot1Qn9CpbKKGrl+MMcdyBn3//Sj/Xi/hpMe ygC1dkNkK3WQ9/RVmp81Ui6chUToZ8o+COGyD7eHKFjtAtkpAoB6nmqCByNdNh73SD6t S0i5tOR0/jO0nUjALLTIfVs2cwjWdjncw66PlFuXBOMShHO9P66yHdzM3Ng4vMWL4hTq K6Z1O7ehV6I3UPO7IFOv6bbiYl75f+beCGU44Pz1S+Putj2d9g0YPGPUfPi5uVX1jFxy cjug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pHKNadLO; 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 pj2si684931pjb.87.2022.01.24.15.33.33; Mon, 24 Jan 2022 15:33:59 -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=pHKNadLO; 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 S1849855AbiAXX0t (ORCPT + 99 others); Mon, 24 Jan 2022 18:26:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1588673AbiAXWdl (ORCPT ); Mon, 24 Jan 2022 17:33:41 -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 EA300C0E5334; Mon, 24 Jan 2022 12:57:52 -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 8A68061320; Mon, 24 Jan 2022 20:57:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92AEDC340E5; Mon, 24 Jan 2022 20:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057872; bh=lQxGW83yomj9stvgKpFbQglETKhTfrUyMk/dbOUFkic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pHKNadLO+OgNAU3qy/JxwZS/6XIU8tAf9mcaPnMcU+ZjM6Ubdia6Tc0IpYm3LGSh5 z0svoJorj0NxFH7iSQa2zxAQ3E0alAVSh85VZuDGgjPhXKCKAYn19WwUJSaaPpLDwn w3XF3ffKIQEmvDM/eWmLatKkyBmrLS4Q77r9TmTo= 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.16 0106/1039] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND Date: Mon, 24 Jan 2022 19:31:35 +0100 Message-Id: <20220124184128.711635787@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 e44506e4f1d5f..d3285a504429d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2736,7 +2736,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; } @@ -2751,7 +2751,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