Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3571999pxb; Mon, 24 Jan 2022 12:31:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMItYAgn6QrbshBU34hGvUr5pHK4krhfuz7b9EwGJMD+JF06qhf+ioZfa57O2fpcCaQRQM X-Received: by 2002:a17:90a:2bc8:: with SMTP id n8mr24896pje.224.1643056274743; Mon, 24 Jan 2022 12:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056274; cv=none; d=google.com; s=arc-20160816; b=KIHG2N9wWELPV58NVxv8hemQeKH/dedSTgl2s2RW75uCZ0KyvIfO+0iKybb69RBaji v1xLRZ3i6t3ofXAI50nCuvxRIYSjjSjD+2vU1wIOpSVD43f7V6k/7scR7HyXzFX9xxNZ ZCirK7NIA07HTfMPOj67Ij4yUqDQ95u5TdseQJKQQyaB46c1A4JjY8bHm202KaN7bZgR YbGzhtEGyReV/TVamKU9acqU9vXCtiLaFpsWPBbrtbGF8jX9UrxTZuVoXx8viR8s8Nrw EzsEIjc2+QDsyFDvyQs8RKoEuzNjhC3WbDdvyWIWw2yQOfcBCyJcNpOmefWt1tJ7KM1b wmzg== 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=2QxuGMPwZ64NuA/ha6J6SvU+DH/Z4Gjxq4Wg92DpMWc=; b=cR4XO7GbFDFCsKweYLjYa3F2rAlq+TuOcQaQyuv/cavM62xc5LbPxIvxXSq8Fc3OTe CvLEFwGwjyLF6Llo69fKtDpUtxDGsjB9lfVuXZr0C/dQU9yCaXfKyE73Hr+vxnd5mzW9 nA8Ecz+FKSQwSEZzx/j45dR4GmcQCOU0uAOFYnOK73cWgp07GtayzYRws7oslfW9OG6X RLQpVU/qYcpDcSem+GXNA36DiQPyxbHvStIgX1qya7P/KQ80fCaeubjeijNOV8vXRJaH WFwpAEeT8Cl9UX5a37MiUCjq7MPDoEQNmurvaJTGQYuVsYJ49WfvNSBcIAwRXBIEXSgZ HN7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xesPHjdp; 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 r25si10111493pfg.369.2022.01.24.12.31.02; Mon, 24 Jan 2022 12:31:14 -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=xesPHjdp; 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 S1353560AbiAXTe7 (ORCPT + 99 others); Mon, 24 Jan 2022 14:34:59 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:53936 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351307AbiAXT0V (ORCPT ); Mon, 24 Jan 2022 14:26:21 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B1BD26148F; Mon, 24 Jan 2022 19:26:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CE9AC340E5; Mon, 24 Jan 2022 19:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052380; bh=r6e+fF/5rc9o7aH9xY3L04cGqonlLwRa/MfShbrQAt4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xesPHjdpYC/LqnucsgcwM7KcaNI2KR6AZ9c2kofIIqKt2UvJWJ0LrDodYtqmTHVzr se456peV1cwMQf/QEt6kcKUm+A20rTJ7zpZWv/J/TzTPikJo8rehmbNyteMnu06Pvd TaYl5wSunoujCQTraL5eB8J7fDVO8anXwB48JGxA= 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.4 040/320] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND Date: Mon, 24 Jan 2022 19:40:24 +0100 Message-Id: <20220124183955.120302955@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 a7532028bf9db..74cf173c186ff 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2311,7 +2311,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; } @@ -2326,7 +2326,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