Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp655047pxv; Thu, 15 Jul 2021 12:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb0kRCM7JD3r4FUkUK0GnKj/pzIY19mn5K/V8s6vX29pVGByI4ei/1jki9rorEj+DIfx5T X-Received: by 2002:a50:ee98:: with SMTP id f24mr9341662edr.72.1626377775181; Thu, 15 Jul 2021 12:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377775; cv=none; d=google.com; s=arc-20160816; b=0Q24YC/7xxll7fYp+Xv+ji3mQ+iBdZmYpoo7M+0HeP4AI2cLWvSaEsMjBTnTjWBvfQ dG1aNRP9123OnPj9H4/nEZfGO+uDUpcy8Z06Cqko6EiEkiAbVycDiHX6jRZ59s9VNA3h LnCaSpBRqtxd5T3NMwG/U1/A0Nx4Ey1TmBZ9aspxU3pWsOJ3RYouJ0X5MAHA6eITHe9W s+0xilixbxGWkxhaTTfjxPWn2vfMYdv5aAXrmvRH9LSQd9rBdiUv2j61XvSRcntzpyNr tLLCrKzFd0tUbcy+P3NJguhJPc9QNjHD6XfJffDWpop9UH/y+n2mVjlEGFlKmFO28g7F gMKA== 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=VLMjYGE5NZlexDmtSTA34YxHviYI/q3MH88VgXzJg3o=; b=EZeJV0XX0ecmsBF74mdYNDFp1ScavO7iyx0LZOTwQ2Gl5LFzx5CqiBJd+YREZ1qt4A ez1wsFS9KRS20sUO7bYuQZTPbGeFolxA1ug3pxPjaVyf5MgtNGpoiFAVsTI9a5tvWn2c lueELzQODSqioz+cESGHK4/F2KeBOsOaS515Z60MgQRGiLGUWhyQulLGp+MP88VQzgqo uJ19i9mURLkc8nFyWyA8zkIFVVyWW3AUoxreoI0yF0xcHX6r2eHqrtP4bzgPfI4zhqbg 4MKdrYU+x6DKfEwR3A8gXSUBm6M0Za5kgofFX8EMyFGiGKsHRwZghmWmtQk8+YOWES3X 1Hiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JjxhA1n+; 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 k9si10200134eje.496.2021.07.15.12.35.52; Thu, 15 Jul 2021 12:36:15 -0700 (PDT) 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=JjxhA1n+; 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 S1344516AbhGOTfP (ORCPT + 99 others); Thu, 15 Jul 2021 15:35:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:50134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243656AbhGOTLp (ORCPT ); Thu, 15 Jul 2021 15:11:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F283A60FF4; Thu, 15 Jul 2021 19:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376131; bh=KYy/ZnJwIZOkmYg9gryDdBg5r+MYNCbmlEXTKfQ0oJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JjxhA1n+b+Qgkvr6QK1Ke7zg+ijR0rhppZv7hWTet0P1qHlB/R4rCZ8TJawMSlFwf Ub5WKVNEsOackTZoCOGJyJvSX7LrWqnZ/sSP3XjQhjghEH/HQNGZB6PJ4LzV5amMJV W4SpUCZ+SaApWBM65G18XvthmKejJB5X2d4xFD/0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shaul Triebitz , Luca Coelho , Sasha Levin Subject: [PATCH 5.13 140/266] iwlwifi: mvm: fix error print when session protection ends Date: Thu, 15 Jul 2021 20:38:15 +0200 Message-Id: <20210715182638.385136025@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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: Shaul Triebitz [ Upstream commit 976ac0af7ba2c5424bc305b926c0807d96fdcc83 ] When the session protection ends and the Driver is not associated or a beacon was not heard, the Driver prints "No beacons heard...". That's confusing for the case where not associated. Change the print when not associated to "Not associated...". Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210617100544.41a5a5a894fa.I9eabb76e7a3a7f4abbed8f2ef918f1df8e825726@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/time-event.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c b/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c index 83342a6a6d5b..f19081a6f046 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c @@ -310,6 +310,8 @@ static void iwl_mvm_te_handle_notif(struct iwl_mvm *mvm, * and know the dtim period. */ iwl_mvm_te_check_disconnect(mvm, te_data->vif, + !te_data->vif->bss_conf.assoc ? + "Not associated and the time event is over already..." : "No beacon heard and the time event is over already..."); break; default: @@ -808,6 +810,8 @@ void iwl_mvm_rx_session_protect_notif(struct iwl_mvm *mvm, * and know the dtim period. */ iwl_mvm_te_check_disconnect(mvm, vif, + !vif->bss_conf.assoc ? + "Not associated and the session protection is over already..." : "No beacon heard and the session protection is over already..."); spin_lock_bh(&mvm->time_event_lock); iwl_mvm_te_clear_data(mvm, te_data); -- 2.30.2